/* Murvio: quiet surfaces, a violet action, the existing personal orbit.
   Design review guided by Unslop by Damir Sokolovsky (@heydamir), CC BY 4.0. */
:root {
  --surface: #1d1d24;
  --raised: #292930;
  --soft: #33333c;
  --line: #ffffff14;
  --text: #f3f1f8;
  --muted: #c0bccb;
  --quiet: #aaa5b8;
  --accent: #c8adff;
  --accent-soft: #342847;
  --hero: #c8adff;
  --hero-text: var(--text);
  --hero-muted: var(--muted);
  --hero-gradient: #1d1d24;
  --primary-gradient: #c8adff;
  --button-text: #25153d;
  --ui-ease: cubic-bezier(.22, 1, .36, 1);
  font-family: "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
:root[data-theme="light"] {
  --surface: #ffffff;
  --raised: #f0edf6;
  --soft: #e8e4ef;
  --line: #26222f1a;
  --text: #26222f;
  --muted: #5f576a;
  --quiet: #70677b;
  --accent: #6734bc;
  --accent-soft: #eee6fa;
  --hero: #6734bc;
  --hero-text: var(--text);
  --hero-muted: var(--muted);
  --hero-gradient: #ffffff;
  --primary-gradient: #6734bc;
  --button-text: #ffffff;
}
body { font-size: 16px; line-height: 1.5; }
h1, h2, h3, strong { font-weight: 600; }
h1 { font-size: 28px; letter-spacing: -.02em; }
.header-inner { height: 64px; padding-inline: 20px; }
.brand { gap: 12px; font-size: 16px; font-weight: 600; }
.icon-button, .refresh-button { width: 44px; height: 44px; min-height: 44px; }
.header-actions .avatar { width: 44px; height: 44px; min-height: 44px; }
.page-heading { margin: 8px 0 20px; }
.app-shell { padding: 8px 20px calc(104px + var(--safe-bottom)); }
.button { min-height: 48px; padding: 12px 20px; border-radius: 12px; font-size: 15px; font-weight: 600; }
.button, .icon-button, .text-button {
  transition: background-color 160ms var(--ui-ease), color 160ms var(--ui-ease), transform 160ms var(--ui-ease);
}
.button-on-hero { background: var(--raised); color: var(--text); }
.feature-card .button-primary,
:root[data-theme="light"] .feature-card .button-primary {
  background: var(--primary-gradient);
  color: var(--button-text);
}
.content-card, .feature-card { padding: 20px; border: 1px solid var(--line); border-radius: 20px; }
.feature-card { background: var(--surface); }
.section-heading { gap: 12px; margin-bottom: 16px; }
.section-heading h2, .content-card h2 { font-size: 16px; gap: 8px; }
.field-help { font-size: 13px; }
.access-label { color: var(--muted); font-size: 13px; letter-spacing: 0; }
.access-label .icon { width: 16px; height: 16px; color: var(--accent); }
#screen-home .card-heading,
#screen-home[data-access="active"] .card-heading { margin-bottom: 16px; }
.access-hero h2, #screen-home[data-access="active"] .access-hero h2 {
  font-size: 24px; font-weight: 600; line-height: 1.3;
}
.access-hero > p { font-size: 15px; margin-top: 16px; }
.account-summary {
  padding: 12px; gap: 12px; margin-top: 16px;
  border-radius: 16px; border-color: var(--line);
  background: var(--raised); color: var(--text);
}
.dashboard-identity h3 { font-size: 16px; font-weight: 600; }
.dashboard-identity > span { margin-top: 4px; color: var(--muted); }
.account-id-copy { min-height: 44px; padding: 4px 8px; color: var(--muted); background: transparent; border-radius: 8px; }
.hero-countdown { gap: 8px; margin: 24px 0 16px; flex-wrap: wrap; }
.remaining-number { font-size: 56px; font-weight: 600; letter-spacing: -.03em; color: var(--accent); }
.remaining-unit { font-size: 24px; font-weight: 500; }
.remaining-detail { font-size: 14px; }
.hero-chips { gap: 8px 16px; margin-bottom: 20px; }
.hero-chips > span { min-height: 24px; padding: 0; border-radius: 0; background: transparent; font-size: 13px; }
.hero-chips .icon { width: 16px; height: 16px; }
.hero-benefits { gap: 8px; margin-block: 16px; }
.hero-benefits li { padding: 0; background: transparent; font-size: 13px; min-height: 24px; }
.hero-benefits li:last-child { grid-column: auto; }
.hero-actions, #screen-home[data-access="active"] .hero-actions { gap: 8px; margin-top: 20px; }
.hero-actions .button { min-height: 48px; padding: 12px 16px; font-size: 15px; }
.hero-note { font-size: 13px; }
.subscription-details { margin-top: 12px; }
.subscription-details > summary,
.plan-device-choices > summary {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; min-height: 48px; margin: -12px 0; padding: 8px 0;
  cursor: pointer; list-style: none; font-size: 15px; font-weight: 500;
}
summary::-webkit-details-marker { display: none; }
.subscription-details > summary::marker,
.plan-device-choices > summary::marker { content: ""; }
.subscription-details[open] > summary { margin-bottom: 16px; }
.subscription-details .chevron, .plan-device-choices .chevron { width: 16px; height: 16px; transition: transform 180ms var(--ui-ease); }
.subscription-details[open] > summary .chevron,
.plan-device-choices[open] > summary .chevron { transform: rotate(90deg); }
.usage-overview { padding: 0; gap: 16px; background: transparent; border-radius: 0; }
.usage-gauge { width: 80px; height: 80px; }
.usage-gauge > strong { font-size: 22px; }
.overview-two { gap: 16px; margin-top: 20px; }
.metric-tile { border: 0; border-radius: 0; padding: 0; background: transparent; }
.metric-tile .icon { display: none; }
.metric-tile > span { font-size: 13px; }
.metric-tile > strong { font-size: 15px; line-height: 1.5; }
.bonus-overview {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px; padding: 16px 20px; margin-top: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
}
.bonus-overview .section-heading { margin: 0; font-size: 14px; }
.bonus-overview .section-heading > span { gap: 8px; }
.bonus-overview .round-arrow { display: none; }
.bonus-overview > strong { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin: 0; font-size: 20px; color: var(--accent); }
.bonus-overview > p { margin: 0; font-size: 12px; }
.profile-access .personal-url, #profile-access-url { font-size: 13px; background: var(--raised); border-radius: 12px; }
.profile-access > p { font-size: 13px; }
.profile-access .text-button { min-height: 44px; font-size: 14px; }
.capacity-heading { margin-top: 16px; }
.device-caption, #device-capacity-note { font-size: 13px; }
#screen-home .quick-actions > a[href="#plans"] { display: none; }
.quick-actions { margin-top: 12px; }
.account-settings { margin-top: 12px; }
.period-tabs { gap: 8px; margin-bottom: 20px; }
.period-tab { min-height: 96px; padding: 12px 8px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.period-tab[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); }
.period-tab .plan-name { font-size: 14px; font-weight: 500; }
.period-tab .plan-tab-title { margin-top: 4px; font-size: 12px; color: var(--muted); }
.period-tab .plan-tab-price { margin-top: 8px; font-size: 18px; font-weight: 600; color: var(--text); }
.period-tabs .plan-card[aria-pressed="true"] .plan-tab-price { color: var(--accent); }
.selected-plan-top { align-items: baseline; gap: 12px; }
.selected-plan-top h2 { font-size: 24px; font-weight: 600; }
.plan-period { font-size: 14px; }
.plan-price-row { margin-top: 24px; gap: 16px; }
.selected-plan-card .featured-price strong,
.plan-price-row .featured-price strong { font-size: clamp(36px, 10vw, 52px); font-weight: 600; min-height: 0; letter-spacing: -.03em; }
.plan-value { border-color: var(--line); padding-left: 16px; gap: 8px; }
.plan-value > span:first-child { font-size: 13px; }
.plan-saving { padding: 4px 8px; min-height: 44px; background: var(--accent-soft); color: var(--accent); border-radius: 6px; font-size: 13px; font-weight: 500; }
.plan-saving:focus-visible { outline-color: var(--accent); }
.plan-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
.plan-benefits li { padding: 0; min-height: 24px; gap: 8px; background: transparent; border-radius: 0; font-size: 13px; flex-direction: row; align-items: center; }
.plan-benefits .icon { width: 16px; height: 16px; color: var(--muted); }
.plan-device-picker { padding-top: 20px; margin-top: 0; border-color: var(--line); }
.plan-device-heading { margin-bottom: 12px; font-size: 14px; }
.plan-device-stepper {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center; gap: 8px; padding: 4px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--raised);
}
.plan-device-stepper > button {
  display: grid; place-items: center; width: 48px; min-height: 48px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--text);
  transition: background-color 160ms var(--ui-ease), transform 160ms var(--ui-ease);
}
.plan-device-stepper > button:active { transform: scale(.97); }
.plan-device-stepper > button:disabled { opacity: .4; }
.plan-device-stepper > strong { text-align: center; font-size: 16px; font-weight: 500; }
.plan-device-picker > p { margin-top: 12px; font-size: 13px; line-height: 1.5; }
.plan-device-choices > summary { min-height: 44px; margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.plan-device-options { gap: 8px; margin-top: 8px; }
.plan-device-option { min-height: 44px; border-color: var(--line); border-radius: 10px; background: var(--raised); color: var(--text); font-size: 15px; }
.plan-device-option[aria-pressed="true"] { border-color: var(--accent); color: var(--button-text); background: var(--primary-gradient); }
.selected-plan-card #choose-plan { margin-top: 20px; min-height: 52px; font-size: 16px; }
.selected-plan-card #choose-bonus-plan { margin-top: 8px; }
.payment-info { padding: 20px; }
.payment-info > p { font-size: 14px; }
.payment-info > summary { min-height: 32px; }
.bottom-nav { padding: 0 12px calc(12px + var(--safe-bottom)); }
.bottom-nav-inner { padding: 4px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: none; }
.bottom-nav a { gap: 4px; min-height: 60px; padding: 8px 0; border-radius: 16px; font-size: 12px; font-weight: 500; }
.bottom-nav a::before { inset: 0; width: auto; height: auto; border-radius: 16px; }
.bottom-nav .icon { width: 20px; height: 20px; }
.bottom-nav a[aria-current="page"] .icon { animation: none; }
.bottom-nav a[aria-current="page"] { color: var(--accent); font-weight: 500; }
.app-footer { padding-top: 24px; }
.checkout-promo { margin: 20px 0; padding: 16px; border: 1px solid var(--line); border-radius: 16px; }
.checkout-promo-label { display: block; margin-bottom: 8px; color: var(--text); font-size: 14px; font-weight: 600; }
.checkout-promo-input-row { display: flex; gap: 8px; }
.checkout-promo-input { min-width: 0; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--raised); color: var(--text); font: inherit; text-transform: uppercase; }
.checkout-promo-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.checkout-promo-input[aria-invalid="true"] { border-color: #d96f7c; }
.checkout-promo-input-row > button { flex-shrink: 0; width: auto; min-height: 44px; margin: 0; padding: 10px 12px; font-size: 14px; }
.checkout-promo-result { margin: 10px 0 0; color: var(--accent); line-height: 1.5; }
.checkout-promo-result:empty { display: none; }
.checkout-promo-result.form-error { color: #e6959f; }
:root[data-theme="light"] .checkout-promo-result.form-error { color: #a12c43; }
.checkout-promo-remove { min-height: 44px; margin-top: 4px; color: var(--muted); }
#checkout-promo-amount { color: var(--accent); }
@media (hover: hover) {
  .plan-device-stepper > button:not(:disabled):hover { background: var(--accent-soft); }
  .subscription-details > summary:hover, .plan-device-choices > summary:hover { color: var(--accent); }
}
@media (max-width: 360px) {
  .app-shell { padding-inline: 16px; }
  .header-inner { padding-inline: 16px; }
  .content-card, .feature-card { padding: 16px; }
  .plan-benefits { gap: 8px; }
  .plan-benefits li { font-size: 12px; }
  .plan-price-row { gap: 12px; }
  .plan-value { padding-left: 12px; }
  .bottom-nav { padding-inline: 8px; }
  .bottom-nav a { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .button, .icon-button, .text-button, .plan-device-stepper > button,
  .subscription-details .chevron, .plan-device-choices .chevron { transition: none; }
}
