/* pay.somicai.app — the landing's paper, ink and clay; the app's raised choices. */
:root {
  --paper: #F6F3ED; --cream: #FCFAF6; --sand: #EDE5D8;
  --ink: #211E29; --soft: #5C5768; --muted: #8E8577;
  --clay: #C9814F; --clay-deep: #B86A36; --teal: #4E8C82; --teal-deep: #3A6E66;
  --line: rgba(33, 30, 41, .12); --danger: #B4443A;
  --display: 'Space Grotesk', system-ui, sans-serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
/* `hidden` must win over the display a component class sets (.btn is flex). */
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body {
  font-family: var(--display); -webkit-font-smoothing: antialiased;
  min-height: 100dvh; display: flex; flex-direction: column;
}
a { color: var(--teal-deep); }
.ser { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -.01em; }

.page { width: 100%; max-width: 460px; margin: 0 auto; padding: 18px 20px 28px; flex: 1; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.logo {
  display: block; width: 92px; height: 32px;
  -webkit-mask: url(logo.png) left center / contain no-repeat; mask: url(logo.png) left center / contain no-repeat;
  background: linear-gradient(96deg, var(--ink) 0%, var(--ink) 40%, var(--teal) 55%, var(--clay) 70%, var(--ink) 90%);
}
.top-links { display: flex; gap: 18px; }
.link-button { text-decoration: none; background: none; border: 0; padding: 8px 0; font: 500 14px var(--display); color: var(--soft); cursor: pointer; }

.screen { flex: 1; display: flex; flex-direction: column; }
.screen[hidden] { display: none; }
.center { justify-content: center; text-align: center; }
.kicker { font: 500 11.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
h1 { font-size: clamp(34px, 9vw, 42px); line-height: 1; letter-spacing: -.04em; margin: 0 0 14px; font-weight: 700; text-wrap: balance; }
.screen:not(.center) h1 { margin-top: 18px; }
.lead { font-size: 17px; line-height: 1.45; color: var(--soft); margin: 0 0 28px; text-wrap: pretty; }
.spacer { flex: 1; min-height: 24px; }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  height: 56px; border: 0; border-radius: 999px; cursor: pointer;
  font: 700 17px var(--display); letter-spacing: -.01em;
  transition: transform .2s cubic-bezier(.2, .8, .2, 1), opacity .2s;
}
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .45; cursor: default; transform: none; }
.btn-forward { background: linear-gradient(180deg, #D88E5A, var(--clay-deep)); color: #fff; box-shadow: 0 10px 24px -10px rgba(184, 106, 54, .7); }
.btn-apple { background: #000; color: #fff; }
.btn-apple svg { width: 18px; height: 22px; fill: currentColor; margin-top: -3px; }
.btn-quiet { background: transparent; color: var(--danger); height: 48px; font-weight: 600; font-size: 15px; }

.plans { display: grid; gap: 12px; margin: 0 0 22px; }
.plan {
  position: relative; text-align: left; width: 100%; border: 0; cursor: pointer; color: var(--ink);
  border-radius: 22px; padding: 18px 20px; background: rgba(255, 255, 255, .45);
  box-shadow: inset 0 0 0 1px var(--line); font-family: var(--display);
  transition: background .2s, box-shadow .2s, transform .2s;
}
/* Selected is fill and depth, never an outline (the app's rule). */
.plan[aria-checked="true"] {
  background: var(--cream);
  box-shadow: 0 12px 30px -16px rgba(33, 30, 41, .45), inset 0 0 0 1px rgba(255, 255, 255, .9);
  transform: translateY(-1px);
}
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font: 600 15px var(--display); color: var(--soft); }
.plan[aria-checked="true"] .plan-head { color: var(--ink); }
.badge { font: 600 11.5px var(--mono); letter-spacing: .04em; color: #fff; background: var(--teal); border-radius: 999px; padding: 4px 9px; }
.price { font-size: 34px; font-weight: 700; letter-spacing: -.04em; margin: 8px 0 2px; }
.price small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.plan-note { font-size: 14px; color: var(--soft); }

.field { display: grid; gap: 8px; margin: 0 0 16px; }
.field label { font: 600 13px var(--display); color: var(--soft); }
.field input {
  height: 52px; border-radius: 16px; border: 0; padding: 0 16px; background: rgba(255, 255, 255, .6);
  box-shadow: inset 0 0 0 1px var(--line); font: 500 16px var(--display); color: var(--ink); outline: none;
}
.field input:focus { box-shadow: inset 0 0 0 2px var(--teal); background: #fff; }
.hint { font-size: 13px; color: var(--muted); line-height: 1.4; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--soft); margin: 0 0 20px; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 0; accent-color: var(--teal); flex: none; }

.error { color: var(--danger); font-size: 14.5px; line-height: 1.45; margin: 0 0 16px; }
.error:empty { display: none; }
.fine { font-size: 13px; line-height: 1.5; color: var(--muted); text-align: center; margin: 14px 0 0; }

.card { border-radius: 22px; padding: 18px 20px; background: var(--cream); box-shadow: 0 12px 30px -18px rgba(33, 30, 41, .4); margin: 0 0 16px; }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 15px; }
.row span:first-child { color: var(--soft); }
.row + .row { border-top: 1px solid var(--line); }
.history-title { font: 600 13px var(--display); color: var(--soft); margin: 8px 0 6px; }

.done-mark {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 22px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--teal), var(--clay)); color: #fff; font-size: 36px;
  box-shadow: 0 16px 40px -18px rgba(78, 140, 130, .9);
}
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

footer { text-align: center; padding: 6px 20px 22px; font-size: 12.5px; color: var(--muted); }
footer a { color: var(--muted); text-decoration: none; }
footer a + a::before { content: "·"; margin: 0 8px; }

.doc { max-width: 680px; margin: 0 auto; padding: 24px 20px 48px; line-height: 1.6; font-size: 16px; }
.doc h1 { font-size: 32px; }
.doc .placeholder { background: var(--sand); border-radius: 16px; padding: 16px 18px; color: var(--soft); }

/* The storefront before sign-in: what Pro is and what it costs. */
.tariffs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tariff {
  position: relative; text-align: left; border: 0; cursor: pointer; color: var(--ink); font-family: var(--display);
  border-radius: 18px; padding: 14px 16px; background: rgba(255, 255, 255, .45); box-shadow: inset 0 0 0 1px var(--line);
  transition: background .2s, box-shadow .2s, transform .2s;
}
.tariff:hover { background: var(--cream); box-shadow: 0 8px 22px -12px rgba(33, 30, 41, .35); }
.tariff:active { transform: scale(.98); }
.tariff i { position: absolute; right: 14px; top: 14px; font-style: normal; color: var(--clay-deep); font-weight: 600; }
.tariffs b { display: block; font-size: 22px; letter-spacing: -.02em; }
.tariffs span { font-size: 13.5px; color: var(--soft); }
.doc h2 { font-size: 19px; margin: 28px 0 8px; letter-spacing: -.01em; }
.doc .c { text-align: center; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 8px 0 12px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc .muted { color: var(--soft); font-size: 14px; }
