/* The workspace (/app/). Same language as the landing page: ivory paper, gold hairlines, serif text, values that
   glow where they are held. Builds on the site.css variables; light only. */
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.btn.small { padding: 9px 16px; font-size: 13.5px; box-shadow: none; }
.btn.ghost.small { box-shadow: inset 0 0 0 1px var(--line-2); }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* header */
body.app .site-header { padding: 14px 0; background: rgba(251, 248, 241, .82); box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); }
.who { display: flex; align-items: center; gap: 14px; font-size: 13.5px; color: var(--ink-2); }
.who-email { color: var(--muted); }
.engine-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px;
  font: 500 12.5px/1 var(--sans); color: var(--ink-2); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.engine-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.engine-pill[data-state="starting"] i { background: var(--gold); animation: pulse 1.4s ease-in-out infinite; }
.engine-pill[data-state="ready"] i { background: var(--ok); box-shadow: 0 0 0 4px rgba(63, 122, 82, .14); }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(201, 165, 78, .25); } }

/* the stage: the landing page's warm light and turning yantra behind everything */
.app-stage { position: relative; min-height: 100vh; padding: 132px 0 90px; overflow: hidden; overflow: clip; }   /* clip: the stage can never be scrolled sideways by a focus (18 Nov 2026) */
.app-stage::before { content: ""; position: absolute; width: 1200px; height: 1200px; right: -360px; top: -300px;
  background: radial-gradient(closest-side, rgba(201, 165, 78, .18), rgba(201, 165, 78, .05) 55%, transparent 70%);
  pointer-events: none; }
.app-stage .yantra { right: -220px; top: 60px; opacity: .4; }
.app-stage > .wrap { position: relative; }

/* ---------- signed out: the gate ---------- */
.gate { display: grid; grid-template-columns: 1.08fr .92fr; gap: 72px; align-items: center; min-height: calc(100vh - 260px); }
.gate h1 { font-size: clamp(40px, 5vw, 66px); line-height: 1.04; margin: 20px 0 22px; }
.gate h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.gate h1 .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.gate h1 .line:nth-child(2) > span { animation-delay: .1s; }
.gate h1 .line:nth-child(3) > span { animation-delay: .2s; }
.gate .lede { animation: fade-up 1.1s var(--ease) .3s both; }
.locks { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 18px; max-width: 520px; }
.locks li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; animation: fade-up 1.1s var(--ease) both; }
.locks li:nth-child(1) { animation-delay: .45s; }
.locks li:nth-child(2) { animation-delay: .55s; }
.locks li:nth-child(3) { animation-delay: .65s; }
.lock-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 500 13px/1 var(--serif);
  color: var(--gold-deep); background: var(--gold-soft); box-shadow: inset 0 0 0 1px rgba(168, 134, 47, .28); }
.locks b { display: block; font: 500 16px/1.3 var(--sans); color: var(--ink); margin: 2px 0 3px; }
.locks span { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }

.gate-card, .editor { position: relative; background: var(--paper); border-radius: 22px; box-shadow: var(--shadow-lg); }
.gate-card::before, .editor::before {       /* the landing card's gold hairline, travelling round */
  content: ""; position: absolute; inset: -1px; border-radius: 23px; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--a, 0deg), transparent 0 70%, var(--gold-2) 82%, transparent 94%), var(--line);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; animation: orbit 7s linear infinite;
}
.gate-card { padding: 40px 38px 30px; text-align: center; animation: fade-up 1.3s var(--ease) .25s both; }
.gate-orb { margin: 0 auto 6px; }
.gate-card h2 { font-size: 34px; line-height: 1.1; margin: 4px 0 6px; }
.gate-card > .muted { margin: 0 0 22px; font-size: 14.5px; }
.btn.google { width: 100%; justify-content: center; --bg: #fff; --fg: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2), 0 8px 24px -14px rgba(22, 23, 27, .35); }
.btn.google:hover { box-shadow: inset 0 0 0 1px var(--gold), 0 14px 30px -14px rgba(22, 23, 27, .4); }
.btn.google .g { font: 700 17px/1 var(--sans); color: var(--gold-deep); }
.or { display: flex; align-items: center; gap: 14px; margin: 24px 0 18px; color: var(--muted); font-size: 12.5px; letter-spacing: .02em; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.field { text-align: left; margin-top: 4px; }
.field label { display: block; font: 600 11.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 9px 4px; }
.field + .field { margin-top: 16px; }
.row { display: flex; gap: 10px; }
.row input { flex: 1; min-width: 0; }
input, textarea { font: inherit; color: var(--ink); background: #fff; border: 0; border-radius: 14px; padding: 14px 16px;
  box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .3s var(--ease); }
input:focus, textarea:focus { outline: 0; box-shadow: inset 0 0 0 1.5px var(--gold), 0 0 0 5px rgba(201, 165, 78, .14); }
#code { font: 500 22px/1 var(--serif); letter-spacing: .42em; text-align: center; padding: 12px 10px; }
.note { min-height: 1.5em; margin: 18px 0 0; font-size: 13.5px; color: var(--ink-2); }

/* ---------- signed in: the studio, one editor with the draft and the result side by side ---------- */
.studio-head { margin-bottom: 26px; }
.studio-head h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; margin-top: 14px; animation: fade-up 1s var(--ease) both; }
.editor { animation: fade-up 1.1s var(--ease) .15s both; }
.editor-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 22px;
  border-bottom: 1px solid var(--line); border-radius: 22px 22px 0 0; background: linear-gradient(180deg, #fffdf8, #fbf8f0); }
.locked-badge { display: inline-flex; align-items: center; gap: 8px; font: 500 12.5px/1 var(--sans); color: var(--ok); white-space: nowrap; }
.locked-badge i { font-style: normal; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(63, 122, 82, .1); box-shadow: inset 0 0 0 1px rgba(63, 122, 82, .28); font-size: 11px; }
.editor-body { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.side { display: flex; flex-direction: column; min-width: 0; }
.side.in { border-right: 1px solid var(--line); }
.side.out { background: linear-gradient(180deg, rgba(244, 236, 214, .22), rgba(251, 248, 241, .5)); border-radius: 0 0 22px 0; }
.side-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 24px 6px; }
.pane-label { display: inline-flex; align-items: center; gap: 9px; font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.pane-label i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.pane-label.gold { color: var(--gold-deep); }
.pane-label.gold i { background: var(--gold); box-shadow: 0 0 0 5px rgba(201, 165, 78, .18); }
.pane-meta { font: 500 12px/1 var(--sans); color: var(--muted); }
.side-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px 16px 24px;
  margin-top: auto; border-top: 1px dashed var(--line-2); }
.side-foot .count { font: 500 12.5px/1 ui-monospace, "SFMono-Regular", Consolas, monospace; color: var(--muted); letter-spacing: .02em; }
.actions { display: flex; gap: 10px; align-items: center; }
.btn.go { padding: 13px 24px; }

.sections { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sections legend { float: left; font: 600 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 10px 0 0; padding: 9px 0; }
.sections label { cursor: pointer; }
.sections input { position: absolute; opacity: 0; pointer-events: none; }
.sections span { display: inline-block; padding: 8px 14px; border-radius: 999px; font: 500 13.5px/1 var(--sans); color: var(--ink-2);
  background: transparent; box-shadow: inset 0 0 0 1px var(--line); transition: all .3s var(--ease); }
.sections label:hover span { box-shadow: inset 0 0 0 1px var(--gold-2); color: var(--ink); }
.sections input:checked + span { color: var(--paper); background: var(--ink); box-shadow: 0 8px 20px -12px rgba(22, 23, 27, .6); }
.sections input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.input-wrap { position: relative; flex: 1; display: flex; }
#source { flex: 1; width: 100%; min-height: 440px; resize: none; border-radius: 0; font: 400 16.5px/1.8 var(--serif);
  padding: 10px 24px 20px; background: transparent; box-shadow: none; }
#source:focus { box-shadow: none; }
#source::placeholder { color: var(--muted); font-style: italic; }
.starters { position: absolute; left: 24px; right: 24px; top: 46%; transform: translateY(-50%); display: flex; justify-content: center; gap: 14px; pointer-events: none; }
.starter { pointer-events: auto; display: grid; justify-items: center; gap: 4px; width: 172px; padding: 18px 14px 16px; border: 0; border-radius: 16px; cursor: pointer;
  background: var(--paper); color: var(--ink); font: inherit; box-shadow: inset 0 0 0 1px var(--line-2), 0 10px 30px -18px rgba(60, 45, 10, .35);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.starter:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--gold-2), 0 16px 36px -18px rgba(60, 45, 10, .45); }
.starter .s-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; margin-bottom: 6px;
  background: var(--gold-soft); color: var(--gold-deep); font-size: 17px; }
.starter b { font: 600 14.5px/1.2 var(--sans); }
.starter span:last-child { font-size: 12.5px; color: var(--muted); }
.studio-note { margin: 20px 0 0; text-align: center; font-size: 13px; color: var(--muted); }

.out-scroll { flex: 1; padding: 10px 24px 20px; overflow: auto; max-height: 640px; }
.empty { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 80px 20px 60px; }
.empty canvas { margin-bottom: 14px; opacity: .9; }
.empty p { margin: 0; font: 400 18px/1.5 var(--serif); color: var(--ink); max-width: 30ch; }
.empty p.muted { font: 400 14px/1.6 var(--sans); color: var(--muted); max-width: 36ch; margin-top: 6px; }

.engine { display: flex; gap: 16px; align-items: center; padding: 16px 18px; margin-bottom: 16px; border-radius: 16px;
  background: var(--gold-soft); box-shadow: inset 0 0 0 1px rgba(168, 134, 47, .22); }
.engine-copy { display: grid; gap: 4px; flex: 1; font-size: 14px; }
.engine-copy b { font: 500 16px/1.3 var(--serif); }
.bar { display: block; height: 3px; border-radius: 3px; background: rgba(168, 134, 47, .18); overflow: hidden; margin-top: 6px; }
.bar span { display: block; height: 100%; width: 4%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transition: width 1s var(--ease); }
/* 18 Nov 2026: the wait shows the engine's real steps and a few true facts, never a clock */
.engine { align-items: flex-start; }
.engine canvas { margin-top: 2px; }
.engine-steps { list-style: none; margin: 8px 0 2px; padding: 0; display: grid; gap: 7px; font-size: 14px; color: var(--muted); }
.engine-steps li { display: flex; align-items: center; gap: 10px; transition: color .4s var(--ease); }
.engine-steps li::before { content: ""; flex: none; box-sizing: border-box; width: 15px; height: 15px; border-radius: 50%;
  border: 1.5px solid rgba(168, 134, 47, .35); display: grid; place-items: center; font: 700 9px/1 var(--sans); color: #fff; }
.engine-steps li[data-s="now"] { color: var(--ink); }
.engine-steps li[data-s="now"]::before { border-color: var(--gold); border-right-color: transparent; animation: spin .9s linear infinite; }
.engine-steps li[data-s="done"] { color: var(--ink-2); }
.engine-steps li[data-s="done"]::before { content: "\2713"; background: var(--gold); border-color: var(--gold); }
.engine-tip { margin: 8px 0 0; min-height: 3em; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); transition: opacity .45s var(--ease); }
.engine-tip.out { opacity: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .engine-steps li[data-s="now"]::before { animation: none; } }

.paras { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.para { padding: 18px 20px; border-radius: 16px; background: var(--ivory); box-shadow: inset 0 0 0 1px var(--line); animation: fade-up .8s var(--ease) both; }
.para-run { display: flex; gap: 16px; align-items: center; }
.para.finished .para-run { display: none; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 14px; color: var(--muted); }
.steps li { position: relative; padding-left: 22px; transition: color .35s var(--ease); }
.steps li::before { content: ""; position: absolute; left: 3px; top: .5em; width: 7px; height: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); }
.steps li b { font-weight: 600; }
.steps li.now { color: var(--ink); }
.steps li.now::before { background: var(--gold); box-shadow: 0 0 0 4px rgba(201, 165, 78, .22); animation: pulse 1.2s ease-in-out infinite; }
.steps li.done { color: var(--ink-2); }
.steps li.done::before { content: "✓"; left: 0; top: 0; width: auto; height: auto; box-shadow: none; color: var(--ok); font-size: 13px; }
.para-text { margin: 0; font: 400 16.5px/1.78 var(--serif); color: var(--ink); white-space: pre-wrap; }
.para:not(.finished) .para-text { display: none; }
.para.finished .para-text { animation: word-in .7s var(--ease) both; }
.t.lock { color: var(--gold-deep); font-weight: 500; background: linear-gradient(transparent 62%, rgba(201, 165, 78, .22) 62%); border-radius: 2px; }
.para-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.para:not(.finished) .para-foot { display: none; }
.held { display: flex; flex-wrap: wrap; gap: 7px; }
.held .chip { opacity: 1; color: var(--ok); box-shadow: inset 0 0 0 1px rgba(63, 122, 82, .3); background: var(--paper); }
.held .note-text { font-size: 13px; color: var(--gold-deep); }
.para.marked { background: #fffbef; box-shadow: inset 0 0 0 1px rgba(168, 134, 47, .4); }
.para.failed .para-text { color: var(--ink-2); }

/* ---------- small screens ---------- */
@media (max-width: 980px) {
  .gate { grid-template-columns: 1fr; gap: 40px; min-height: 0; }
  .gate-card { max-width: 480px; width: 100%; margin: 0 auto; }
  .editor-body { grid-template-columns: 1fr; min-height: 0; }
  .side.in { border-right: 0; border-bottom: 1px solid var(--line); }
  .side.out { border-radius: 0 0 22px 22px; }
  #source { min-height: 300px; }
  .out-scroll { max-height: none; }
  .empty { padding: 44px 16px 36px; }
}
@media (max-width: 640px) {
  .app-stage { padding: 104px 0 64px; }
  .gate-card { padding: 30px 20px 24px; }
  .editor-bar { padding: 14px 16px; flex-direction: column; align-items: flex-start; }
  .side-head, .side-foot, .out-scroll { padding-left: 16px; padding-right: 16px; }
  #source { padding: 10px 16px 18px; min-height: 260px; }
  .starters { left: 16px; right: 16px; gap: 10px; top: auto; bottom: 18px; transform: none; }
  .sections { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; scrollbar-width: none; }
  .sections::-webkit-scrollbar { display: none; }
  .sections label { flex: none; }
  .starter { width: auto; flex: 1; padding: 14px 10px; }
  .row { flex-direction: column; }
  .who-email, .engine-pill span { display: none; }
  .locks { margin-top: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .gate h1 .line > span { transform: none; animation: none; }
  .gate-card::before, .editor::before { animation: none; }
}

/* ---------- 15 Nov 2026: the plan bar, buying a plan, and the return from the payment page ---------- */
.plan-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px;
  padding: 14px 18px; background: var(--paper); border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
.plan-text b { font-weight: 600; }
.plan-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.plan-invoices a { color: var(--gold-deep); font-size: 13px; text-decoration: none; margin-right: 10px; }
/* 18 Nov 2026: checkout is a page of its own: steps, the plan and details on the left, the order summary on the right */
.checkout { padding: 26px 0 40px; animation: fade-up .8s var(--ease) both; }
.co-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 14px; margin: 0 0 30px; padding: 0; font: 500 13.5px/1 var(--sans); color: var(--muted); }
.co-steps li { display: flex; align-items: center; gap: 9px; }
.co-steps li + li::before { content: ""; width: 26px; height: 1px; background: var(--line-2); margin-right: 4px; }
.co-steps i { font-style: normal; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 12px;
  box-shadow: inset 0 0 0 1px var(--line-2); background: var(--paper); }
.co-steps li[data-s="now"] { color: var(--ink); }
.co-steps li[data-s="now"] i { background: var(--ink); color: #fff; box-shadow: none; }
.co-steps li[data-s="done"] { color: var(--ink-2); }
.co-steps li[data-s="done"] i { background: var(--gold); color: #fff; box-shadow: none; font-size: 0; }
.co-steps li[data-s="done"] i::after { content: "\2713"; font-size: 12px; }
.checkout-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.checkout-head h2 { font: 400 clamp(32px, 4vw, 46px)/1.06 var(--serif); margin: 14px 0 8px; }
.checkout-sub { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.buy-card { background: var(--paper); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 28px 30px 30px; }
.buy-step { display: flex; align-items: center; gap: 10px; margin: 0; font: 500 18px/1.3 var(--serif); }
.buy-step span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font: 600 12px/1 var(--sans);
  color: var(--gold-deep); box-shadow: inset 0 0 0 1px var(--gold); }
.buy-plans + .buy-step { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.summary { position: sticky; top: 96px; background: var(--paper); border-radius: 22px;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(168, 134, 47, .28); padding: 26px 26px 22px; display: grid; gap: 14px; }
.summary h2 { margin: 0; font: 500 18px/1.3 var(--serif); }
.sum-rows { margin: 0; display: grid; gap: 9px; font-size: 14px; }
.sum-rows > div { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-2); }
.sum-rows dt, .sum-rows dd { margin: 0; }
.sum-rows .sum-main { color: var(--ink); font-weight: 600; font-size: 15px; padding-bottom: 4px; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; border-top: 1px solid var(--line); }
.sum-total span { font-size: 14px; color: var(--ink-2); }
.sum-total b { font: 400 30px/1 var(--serif); }
.summary .btn.go { width: 100%; justify-content: center; }
.summary .note { margin: 0; }
.summary .note:empty { display: none; }
.trust { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 7px; font-size: 13px; color: var(--ink-2); }
.trust li { display: flex; gap: 8px; align-items: baseline; }
.trust li::before { content: "\2713"; color: var(--gold); font-weight: 700; }
.paid { padding: 60px 0; }
.paid-card { max-width: 560px; margin: 0 auto; text-align: center; background: var(--paper); border-radius: 22px; box-shadow: var(--shadow-lg);
  padding: 40px 34px 34px; display: grid; justify-items: center; gap: 10px; animation: fade-up .8s var(--ease) both; }
.paid-card h2 { font: 400 30px/1.15 var(--serif); margin: 8px 0 0; }
.paid-card p { margin: 0; color: var(--ink-2); font-size: 15px; max-width: 42ch; }
.paid-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 14px; }
.buy-toggles { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 16px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); background: #fff; }
.seg button { font: 500 13.5px/1 var(--sans); border: 0; background: none; color: var(--ink-2); padding: 9px 14px; border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.seg .save { font-size: 11px; color: var(--gold); margin-left: 4px; }
.seg button[aria-pressed="true"] .save { color: #e8d39c; }
.buy-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.buy-plan { text-align: left; font: inherit; color: var(--ink); background: #fff; border: 0; border-radius: 16px; padding: 16px 16px 14px;
  box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.buy-plan[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--gold), 0 10px 26px -18px rgba(168, 134, 47, .8); }
.buy-plan b { font: 600 15px/1.2 var(--sans); }
.buy-plan .price { font: 400 24px/1.2 var(--serif); }
.buy-plan small { color: var(--muted); font-size: 12.5px; }
.buy-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; margin-top: 20px; }
.buy-form .field { margin: 0; }
.buy-form .field + .field { margin-top: 0; }
.buy-form input, .buy-form select { width: 100%; box-sizing: border-box; }
select { font: inherit; color: var(--ink); background: #fff; border: 0; border-radius: 14px; padding: 14px 16px;
  box-shadow: inset 0 0 0 1px var(--line-2); appearance: auto; }
select:focus { outline: 0; box-shadow: inset 0 0 0 1.5px var(--gold), 0 0 0 5px rgba(201, 165, 78, .14); }
.field .opt { text-transform: none; letter-spacing: 0; font-weight: 400; }
.fine { font-size: 12.5px; color: var(--muted); margin: 0; }
.fine a { color: var(--gold-deep); }
@media (max-width: 960px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 760px) {
  .buy-plans, .buy-form { grid-template-columns: 1fr; }
  .buy-card, .summary { padding: 22px 18px; }
  .checkout-head { flex-direction: column; align-items: flex-start; }
  .steps li + li::before { width: 10px; }
  .paid-card { padding: 30px 20px 26px; }
}
.paid-card .btn { white-space: nowrap; }

/* 18 Nov 2026: the policy links under every app screen */
.app-foot { position: relative; padding: 22px 16px 30px; text-align: center; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.app-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-bottom: 8px; }
.app-foot a { color: var(--ink-2); text-decoration: none; }
.app-foot a:hover { color: var(--gold-deep); }
.app-foot p { margin: 0; }

/* 18 Nov 2026: the robot check under the email field */
.robot { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 12px; padding: 12px 14px; border: 0;
  border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); font: inherit; color: var(--ink);
  cursor: pointer; text-align: left; transition: box-shadow .3s var(--ease); }
.robot:hover { box-shadow: inset 0 0 0 1px var(--gold); }
.robot:focus-visible { outline: 0; box-shadow: inset 0 0 0 1.5px var(--gold), 0 0 0 5px rgba(201, 165, 78, .14); }
.robot-box { flex: none; box-sizing: border-box; width: 24px; height: 24px; border-radius: 6px; border: 2px solid var(--line-2);
  display: grid; place-items: center; font: 700 13px/1 var(--sans); color: #fff; }
.robot[data-state="checking"] { cursor: progress; }
.robot[data-state="checking"] .robot-box { border-radius: 50%; border-color: var(--gold); border-right-color: transparent; animation: spin .8s linear infinite; }
.robot[data-state="done"] { cursor: default; }
.robot[data-state="done"] .robot-box { background: var(--gold); border-color: var(--gold); }
.robot[data-state="done"] .robot-box::after { content: "\2713"; }
.robot-text { flex: 1; font-size: 14.5px; font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .robot[data-state="checking"] .robot-box { animation: none; } }
