/* Base stylesheet: the legal and static pages. Ported verbatim from the original site. */

/* Warm paper, near-black ink, one loud accent — the same palette the iOS app
   is built on (ios/Sources/Core/Theme.swift). Brightness comes from where the
   accent lands, never from painting surfaces. */
:root {
  color-scheme: light;
  --canvas: #F6F4EF;
  --surface: #fff;
  --fill: #ECEAE5;
  --ink: #16141C;
  --muted: rgba(22, 20, 28, .62);
  --subtle: rgba(22, 20, 28, .40);
  --edge: rgba(22, 20, 28, .10);
  --accent: #FF4B12;
  --accent-far: #D92D6B;
  --positive: #0EA150;
  --gradient: linear-gradient(135deg, #FF4B12, #D92D6B);
  --shadow: 0 6px 12px rgba(64, 38, 13, .07);
  --shadow-lift: 0 6px 18px rgba(64, 38, 13, .14);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-wrap: break-word;
}
main { max-width: 620px; margin: 0 auto; padding: 44px 20px 80px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 {
  font-size: clamp(30px, 7.4vw, 44px); line-height: 1.06; letter-spacing: -.03em;
  font-weight: 800; margin: 0 0 12px;
}
h2 { font-size: 20px; font-weight: 700; letter-spacing: -.015em; line-height: 1.3; margin: 40px 0 12px; }
h3 { font-size: 16px; font-weight: 700; margin: 24px 0 4px; }
p { margin: 12px 0; }
ul, ol { margin: 12px 0; padding-left: 22px; }
li { margin: 6px 0; }
p, li { color: var(--muted); }
b, strong { color: var(--ink); font-weight: 600; }
li b, p b, td b { font-weight: 600; }

/* Tiny, heavy, letter-spaced, accent — the app's SectionLabel. */
.brand, .label {
  display: block; font-weight: 800; letter-spacing: .16em; font-size: 12px;
  text-transform: uppercase; color: var(--accent);
}
.brand { margin-bottom: 24px; }
.label { margin: 32px 0 12px; }
.lede { font-size: 18px; line-height: 1.55; color: var(--ink); }
.updated { font-size: 13px; color: var(--subtle); margin: 0 0 8px; }
.fine { font-size: 14px; color: var(--muted); }

/* Cards: white, generous, 20px, hairline edge, very soft warm shadow. */
.card, .step, .spec, .promo {
  border-radius: 20px; padding: 20px;
  background: var(--surface); border: 1px solid var(--edge); box-shadow: var(--shadow);
}
.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 16px 0 32px; }
.card b { display: block; margin-bottom: 4px; font-size: 17px; }
.card span { display: block; color: var(--muted); font-size: 14px; line-height: 1.5; }
.card .price { color: var(--accent); }
.steps { display: grid; gap: 12px; margin: 16px 0 32px; }
.step b { display: block; margin-bottom: 4px; }
.step { color: var(--muted); font-size: 15px; line-height: 1.55; }

/* Plan-details card: a stack of label / value rows, as in the app. */
.spec { margin: 16px 0 32px; padding: 8px 20px; }
.spec div {
  display: flex; gap: 16px; justify-content: space-between; align-items: baseline;
  padding: 12px 0; border-bottom: 1px solid var(--edge); font-size: 15px;
}
.spec div:last-child { border-bottom: 0; }
.spec span { color: var(--muted); }
.spec b { text-align: right; font-weight: 600; }
/* A value that is also a link keeps a 44px hit area without pushing the row open. */
.spec a { display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; }

/* The one promotional surface allowed to carry the gradient. */
.promo { display: block; background: var(--gradient); border: 0; color: #fff; margin: 16px 0 32px; box-shadow: var(--shadow-lift); }
.promo:hover { text-decoration: none; }
.promo .label { color: #fff; margin: 0 0 8px; }
.promo b { display: block; color: #fff; font-size: 17px; font-weight: 700; line-height: 1.4; }
.promo .go { display: block; margin-top: 8px; font-size: 14px; font-weight: 700; color: rgba(255, 255, 255, .82); }

.note {
  padding: 16px 18px; border-radius: 20px; margin: 24px 0;
  background: rgba(255, 75, 18, .06); border: 1px solid rgba(255, 75, 18, .18);
  color: var(--muted);
}
.note b { color: var(--accent); }

/* Tables scroll inside their own container rather than squashing on a phone. */
.tw {
  overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 16px 0 8px;
  border: 1px solid var(--edge); border-radius: 16px; background: var(--surface);
}
table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--edge); vertical-align: top; color: var(--muted); }
tr:last-child th, tr:last-child td { border-bottom: 0; }
th { color: var(--ink); font-weight: 600; background: var(--fill); }

/* Pills. The gradient is the primary call to action, and nothing else. */
.cta, button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 15px 28px; border: 0; border-radius: 999px;
  font: inherit; font-size: 16px; font-weight: 700; color: #fff; cursor: pointer;
  background: var(--gradient); box-shadow: 0 6px 14px rgba(255, 75, 18, .28);
}
.cta:hover, button:hover { text-decoration: none; opacity: .94; }
.cta:active, button:active { transform: scale(.98); }
button[disabled] { opacity: .55; cursor: default; box-shadow: none; }
.actions { margin: 24px 0 8px; }

nav { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 32px; font-size: 15px; }
nav a, footer a, .back { display: inline-flex; align-items: center; min-height: 44px; }
.back { color: var(--muted); font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.back:hover { color: var(--accent); }

form { margin: 16px 0 8px; display: grid; gap: 16px; }
label { display: block; font-size: 14px; color: var(--ink); margin-bottom: 6px; font-weight: 600; }
label span { display: block; font-weight: 400; color: var(--muted); margin-top: 2px; }
input, textarea {
  width: 100%; padding: 13px 14px; border-radius: 12px; font: inherit; font-size: 16px;
  min-height: 48px; background: var(--fill); border: 1px solid var(--edge); color: var(--ink);
}
input::placeholder, textarea::placeholder { color: var(--subtle); }
input:focus, textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px rgba(255, 75, 18, .14); }
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }

.result { padding: 16px 18px; border-radius: 20px; font-size: 15px; color: var(--muted); margin-top: 16px; }
.result b { display: block; }
.result.ok { background: rgba(14, 161, 80, .08); border: 1px solid rgba(14, 161, 80, .28); }
.result.ok b { color: var(--positive); }
.result.bad { background: rgba(217, 45, 107, .07); border: 1px solid rgba(217, 45, 107, .28); }

footer {
  margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--edge);
  font-size: 13px; color: var(--subtle);
}
footer b { color: var(--muted); font-weight: 600; }
footer a { color: var(--muted); margin-right: 16px; }
footer a:hover { color: var(--accent); }

@media (max-width: 480px) {
  main { padding: 28px 16px 64px; }
  .card, .step, .promo { padding: 16px; }
  .spec { padding: 4px 16px; }
  .cards { grid-template-columns: 1fr; }
}
