/* Account (/account/): sign in with an email code, see Orbit Plus, pick a
   plan. Phone-first, one column of white cards on paper, lilac for what is
   chosen or active. Light only, like the site. */

.account { background: var(--paper); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------- Frame */
.a-main { width: min(560px, 100% - 32px); margin-inline: auto; padding: 16px 0 72px; min-height: 70vh; }
.a-state[hidden], .a-card [hidden], .a-signed-in [hidden] { display: none; }
.a-state { animation: a-in 0.28s ease both; }
@keyframes a-in { from { opacity: 0; transform: translateY(6px); } }

.a-card {
  background: var(--card);
  border-radius: 28px;
  padding: 26px 22px 24px;
  box-shadow: 0 1px 0 rgba(36, 26, 61, 0.04), 0 14px 40px rgba(36, 26, 61, 0.08);
}
.a-noscript { margin: 0 0 16px; color: var(--ink-2); }

/* ---------------------------------------------------------------- Type */
.a-eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lilac-deep); }
.a-title {
  margin: 0;
  font-weight: 900; font-stretch: 112%; letter-spacing: -0.035em; line-height: 0.98;
  font-size: clamp(34px, 10vw, 48px);
}
.a-title-sm { font-size: clamp(28px, 8.4vw, 38px); line-height: 1.04; }
.a-h2 { margin: 0; font-weight: 850; font-stretch: 108%; letter-spacing: -0.03em; line-height: 1.05; font-size: clamp(26px, 7vw, 34px); }
.a-sub { margin: 10px 0 0; color: var(--ink-2); font-size: 16px; }
.a-sub strong { color: var(--ink); overflow-wrap: anywhere; }
.a-muted { margin: 0; color: var(--ink-3); font-size: 15px; }
.a-fine { margin: 18px 0 0; font-size: 14px; color: var(--ink-3); }
.a-fine a, .a-faq a, .a-plan a { color: var(--lilac-deep); font-weight: 650; }

/* ---------------------------------------------------------------- Forms */
.a-form { display: grid; margin-top: 22px; }
.a-label { font-weight: 750; font-size: 15px; margin-bottom: 8px; }
.a-input {
  width: 100%; height: 58px; padding: 0 18px;
  font: inherit; font-size: 18px; font-weight: 600; color: var(--ink);
  background: var(--paper); border: 2px solid var(--line); border-radius: 16px;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none; appearance: none;
}
.a-input::placeholder { color: #b9b6b0; font-weight: 500; }
.a-input:focus { outline: none; border-color: var(--lilac-deep); background: #fff; box-shadow: 0 0 0 4px var(--lilac-soft); }
.a-input[aria-invalid="true"] { border-color: #d0463b; background: #fff; box-shadow: 0 0 0 4px #fbe3e0; }
.a-input:disabled { opacity: 0.6; }
.a-code { height: 64px; font-size: 28px; font-weight: 800; letter-spacing: 0.42em; text-align: center; padding-left: calc(18px + 0.42em); }
.a-code::placeholder { letter-spacing: 0.42em; }

.a-error {
  display: block;
  margin: 10px 0 0; padding: 11px 14px; border-radius: 12px;
  background: #fdecea; color: #a1281e; font-size: 15px; font-weight: 600; line-height: 1.4;
}
.a-error[hidden] { display: none; }
.a-error a { color: inherit; }

.a-submit { width: 100%; height: 58px; margin-top: 16px; }
.a-submit:disabled { cursor: progress; opacity: 0.85; }
.spinner {
  display: none; width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.35); border-top-color: #fff;
  animation: a-spin 0.7s linear infinite;
}
.is-busy .spinner { display: inline-block; }
@keyframes a-spin { to { transform: rotate(360deg); } }

.a-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 16px; }
.a-link {
  padding: 6px 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 700; color: var(--lilac-deep);
}
.a-link:disabled { color: var(--ink-3); cursor: default; font-weight: 600; }

/* ---------------------------------------------------------------- Signed in */
.a-hello { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 8px 4px 20px; }
.a-hello > div { min-width: 0; }
.a-hello .a-title { overflow-wrap: anywhere; }
.a-who { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; }
.a-signout { flex: none; height: 44px; padding: 0 18px; font-size: 15px; }

/* Your plan */
.a-plan-body { display: grid; gap: 6px; }
.a-plan-name { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0; font-size: 26px; font-weight: 850; letter-spacing: -0.025em; line-height: 1.1; }
.a-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 750; letter-spacing: 0;
  background: var(--lilac-soft); color: var(--on-lilac);
}
.a-pill-on { background: var(--lilac); }
.a-pill-on::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2f9e5b; }
.a-plan-line { margin: 0; color: var(--ink-2); font-size: 16px; }
.a-plan-line strong { color: var(--ink); }
.a-source {
  margin: 12px 0 0; padding: 14px 16px; border-radius: 16px;
  background: var(--paper); font-size: 15px; color: var(--ink-2); line-height: 1.45;
}
.a-source strong { color: var(--ink); }
.a-plan-free .a-plan-name { color: var(--charcoal); }

/* Plans: shown to everyone. The web price is the big number; the app's
   price sits under it, struck through. */
.a-plans { margin-top: 40px; scroll-margin-top: 104px; }
.a-state { scroll-margin-top: 88px; }
.a-plans-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.a-deal {
  display: inline-block; padding: 7px 13px; border-radius: 999px; rotate: -3deg;
  background: var(--charcoal); color: #fff; font-size: 14px; font-weight: 750; letter-spacing: -0.01em; white-space: nowrap;
  box-shadow: 0 10px 24px rgba(20, 20, 20, 0.16);
}
.a-deal[hidden], .a-why[hidden], .a-pay-btn[hidden] { display: none; }
.a-why { margin: 6px 0 0; color: var(--ink-3); font-size: 15px; max-width: 46ch; }
.a-plan-list { display: grid; gap: 14px; margin-top: 22px; }
.a-option {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2px 14px;
  padding: 18px 18px; border-radius: 20px; background: var(--card); cursor: pointer;
  box-shadow: inset 0 0 0 2px var(--line);
  transition: box-shadow 0.15s ease, background 0.15s ease;
  text-align: left; font: inherit; color: inherit; border: 0; width: 100%;
}
.a-option:hover { box-shadow: inset 0 0 0 2px #d6cfe6; }
.a-option[aria-checked="true"] { background: #fbf8ff; box-shadow: inset 0 0 0 2.5px var(--lilac-deep); }
.a-radio { grid-row: 1 / 3; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px #c9c4d4; transition: box-shadow 0.15s ease; }
.a-option[aria-checked="true"] .a-radio { box-shadow: inset 0 0 0 7px var(--lilac-deep); }
.a-option-name { grid-column: 2; align-self: end; font-weight: 800; font-size: 19px; letter-spacing: -0.015em; line-height: 1.2; }
.a-option-sub { grid-column: 2; align-self: start; font-size: 14px; color: var(--ink-3); }
.a-save { font-weight: 750; color: #2b7a4b; }
.a-option-price { grid-column: 3; grid-row: 1 / 3; text-align: right; }
.a-option-price strong { display: block; font-size: 22px; font-weight: 850; letter-spacing: -0.02em; line-height: 1.15; }
.a-was { display: block; font-size: 13px; color: var(--ink-3); }
.a-was s { text-decoration-thickness: 1.5px; }
.a-badge {
  position: absolute; top: -10px; right: 16px;
  padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: 0.02em;
  background: var(--lilac); color: var(--on-lilac);
}

.a-pay { margin-top: 20px; }
.a-pay-summary { margin: 0 0 12px; font-size: 15px; color: var(--ink-2); text-align: center; min-height: 1.5em; }
.a-pay-summary strong { color: var(--ink); }
.a-pay-btn { width: 100%; height: 58px; }
.a-pay-btn:disabled { cursor: not-allowed; background: #d9d6de; color: #6d6b74; }
.a-pay-btn:disabled:active { transform: none; }
.a-pay-note { margin: 12px 0 0; text-align: center; font-size: 14px; color: var(--ink-2); }

/* FAQ: three lines, no accordion */
.a-faq { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.a-faq p { margin: 0; font-size: 15px; color: var(--ink-2); }
.a-faq strong { color: var(--ink); }

/* ---------------------------------------------------------------- Loading */
.a-skeleton { display: grid; gap: 14px; }
.sk { display: block; border-radius: 10px; background: linear-gradient(90deg, #f1eee9 25%, #f8f6f3 50%, #f1eee9 75%) 0 0 / 300% 100%; animation: a-shimmer 1.3s ease-in-out infinite; }
.sk-title { width: 70%; height: 42px; }
.sk-line { width: 52%; height: 18px; }
.sk-block { height: 120px; border-radius: 18px; margin-top: 6px; }
@keyframes a-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

.shake { animation: a-shake 0.36s ease; }
@keyframes a-shake {
  20% { transform: translateX(-7px); } 40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); } 80% { transform: translateX(2px); }
}

@media (prefers-reduced-motion: reduce) {
  .a-state, .sk, .shake { animation: none; }
  .spinner { animation-duration: 1.6s; }
  .a-input, .a-option, .a-radio { transition: none; }
}

@media (min-width: 700px) {
  .a-main { padding-top: 48px; }
  .a-card { padding: 34px 32px 30px; }
  .a-auth .a-card { padding: 40px 40px 34px; }
  .a-plan-list { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .a-option { grid-template-columns: 1fr; align-content: start; gap: 4px; padding: 24px 20px 20px; }
  .a-radio { position: absolute; top: 22px; right: 20px; }
  .a-option-name, .a-option-sub, .a-option-price { grid-column: 1; grid-row: auto; }
  .a-option-name { align-self: start; }
  .a-option-price { order: 1; text-align: left; margin-top: 8px; }
  .a-option-price strong { font-size: 34px; letter-spacing: -0.035em; }
  .a-was { font-size: 14px; }
  .a-option-sub { order: 2; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
  .a-badge { right: auto; left: 18px; }
}
@media (min-width: 1000px) {
  .a-main { width: min(760px, 100% - 40px); }
}
