/* InTime eSIM — mobile first. Tokens from intimevisa DESIGN.md v5 (navy / gold / ivory). */
:root {
  --ink: #16283e;
  --ink-2: #3c5066;
  --muted: #5d6e82;
  --navy: #0f2946;
  --navy-deep: #0b1c30;
  --ivory: #faf7ef;
  --ivory-2: #f4eee0;
  --white: #fff;
  --gold: #c29a3b;
  --gold-deep: #8a6a1d;
  --gold-bright: #d9b25c;
  --hair: #e7dfcc;
  --line-strong: #76879b;
  --on-navy: #f2eee3;
  --on-navy-muted: #a3b2c6;
  --ok: #2e7d4f;
  --warn: #96520a;
  --err: #c0392b;
  --display: "Fraunces", Georgia, serif;
  --body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --r: 14px;
  --shadow: 0 1px 2px rgba(15, 41, 70, 0.06), 0 6px 18px rgba(15, 41, 70, 0.08);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 16px/1.6 var(--body); }
img, svg { max-width: 100%; }
a { color: var(--gold-deep); text-underline-offset: 2px; }
a:hover { color: #6e5417; }
h1, h2, h3 { font-family: var(--display); font-weight: 650; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(30px, 8.4vw, 50px); }
h2 { font-size: clamp(24px, 6vw, 32px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
.mono, .price, .amount { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); font-size: 0.92em; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.narrow { max-width: 640px; }
.block { padding-top: 28px; padding-bottom: 40px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }
.eyebrow { font: 500 12.5px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-deep); margin: 0 0 8px; }

/* Bar */
.bar { background: var(--navy-deep); color: var(--on-navy); }
.bar-in { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.brand { color: var(--on-navy); text-decoration: none; font: 650 20px/1 var(--display); display: inline-flex; align-items: center; gap: 8px; }
.brand em { font-style: italic; color: var(--gold-bright); }
.brand-mark { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--gold-bright); box-shadow: inset 0 0 0 3px var(--navy-deep), inset 0 0 0 7px var(--gold-bright); }
.bar-wa { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid #27466b; color: var(--on-navy); text-decoration: none; font-weight: 500; font-size: 15px; }
.bar-wa:hover { color: var(--gold-bright); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border-radius: 10px; font: 600 16px/1.2 var(--body); text-decoration: none; border: 0; cursor: pointer; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #cfa646; color: var(--ink); }
.btn-gold:disabled { opacity: 0.6; cursor: wait; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }

/* Hero */
.hero { background: var(--navy); color: var(--on-navy); padding: 26px 0 30px; }
.hero h1 { color: #fff; margin-bottom: 10px; }
.hero h1 em { font-style: italic; color: var(--gold-bright); }
.hero .eyebrow { color: var(--gold-bright); }
.hero-sub { color: var(--on-navy); font-size: 17px; max-width: 36em; margin-bottom: 20px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plan { background: var(--white); color: var(--ink); border-radius: var(--r); padding: 16px 12px 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; }
.plan-days { font: 650 22px/1.1 var(--display); margin: 0; }
.plan .price { font-size: 30px; font-weight: 500; margin: 2px 0 0; color: var(--ink); }
.plan-meta { font-size: 14px; color: var(--ink-2); margin: 0 0 10px; }
.plan .btn { margin-top: auto; padding: 12px 8px; font-size: 15px; }
.per-day { font: 500 12.5px/1.3 var(--mono); color: var(--muted); margin: 0; }
.hero-note { margin: 14px 0 0; font-size: 14.5px; color: var(--on-navy-muted); }
.hero-note strong { color: var(--on-navy); font-weight: 600; }

/* Facts */
.facts { margin: 0; display: grid; gap: 0; background: var(--white); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.facts > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--hair); }
.facts > div:first-child { border-top: 0; }
.facts dt { font: 500 12.5px/1.5 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold-deep); padding-top: 2px; }
.facts dd { margin: 0; }
.facts-tight { margin-top: 18px; }
@media (max-width: 479px) {
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
}

/* Sections */
.section { padding: 34px 0; }
.section-alt { background: var(--ivory-2); }
.rule { display: block; width: 36px; height: 2px; background: var(--gold); margin: 0 0 12px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 2px solid var(--gold); }
.timeline li { position: relative; margin: 0 0 18px; }
.timeline li::before { content: ""; position: absolute; left: -29px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--navy); border: 2px solid var(--gold); }
.timeline strong { display: block; font-family: var(--display); font-weight: 650; font-size: 18px; }
.callout { background: var(--white); border-left: 3px solid var(--gold); border-radius: 8px; padding: 12px 14px; box-shadow: var(--shadow); }

/* FAQ */
.faq details { background: var(--white); border-radius: 10px; margin: 0 0 8px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 14px 44px 14px 14px; font-weight: 600; position: relative; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 10px; font: 500 22px/1 var(--mono); color: var(--gold-deep); }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 14px 4px; color: var(--ink-2); }

/* Prose pages */
.prose h2 { margin-top: 1.4em; }
.prose ol, .prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.5em; }
.kbd { font: 500 14px var(--mono); background: var(--white); border: 1px solid var(--hair); border-radius: 6px; padding: 1px 6px; white-space: nowrap; }

/* Form */
.form { display: grid; gap: 18px; }
.field label, .field .label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .hint { display: block; font-size: 14px; color: var(--muted); margin: -2px 0 6px; font-weight: 400; }
.input { width: 100%; min-height: 48px; padding: 10px 12px; font: 16px var(--body); color: var(--ink); background: var(--white); border: 1px solid var(--line-strong); border-radius: 10px; }
.input:focus { outline: 3px solid rgba(194, 154, 59, 0.45); outline-offset: 1px; border-color: var(--gold-deep); }
.field.has-error .input { border-color: var(--err); }
.error { color: var(--err); font-size: 14px; margin: 6px 0 0; min-height: 0; }
.error:empty { display: none; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice label { display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice .opt { display: block; background: var(--white); border: 2px solid var(--hair); border-radius: 12px; padding: 12px; min-height: 64px; }
.choice .opt strong { display: block; font-family: var(--display); font-size: 18px; }
.choice .opt .price { font-size: 17px; }
.choice input:checked + .opt { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(194, 154, 59, 0.35); }
.choice input:focus-visible + .opt { outline: 3px solid rgba(194, 154, 59, 0.45); }
.field label.check, .check { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; background: var(--white); border: 2px solid var(--hair); border-radius: 12px; padding: 12px; cursor: pointer; font-weight: 400; margin: 0; }
.check input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--gold-deep); }
.check strong { display: block; font-weight: 600; color: var(--ink); }
.check .check-help { display: block; color: var(--ink-2); font-size: 14.5px; }
.check:has(input:checked) { border-color: var(--gold); }
.field.has-error .check { border-color: var(--err); }
.total { display: flex; justify-content: space-between; align-items: baseline; background: var(--white); border-radius: 12px; padding: 14px; box-shadow: var(--shadow); }
.total .amount { font-size: 26px; }
.form-note { font-size: 14px; color: var(--muted); margin: 0; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.fieldset legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.form-error { background: #fbeceb; color: var(--err); border-radius: 10px; padding: 10px 12px; }
.form-error:empty { display: none; }

/* Status page */
.status { display: inline-block; font: 500 13px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; padding: 8px 10px; border-radius: 999px; margin: 0 0 10px; }
.status-wait { background: #fbf1df; color: var(--warn); }
.status-ok { background: #e4f2e9; color: var(--ok); }
.status-off { background: #eceef1; color: var(--ink-2); }
.order-code { font-size: clamp(26px, 7vw, 36px); }
.order-code .mono { font-weight: 500; }
.pay-card { background: var(--white); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px 16px; }
.amount { font-size: 40px; font-weight: 500; margin: 0 0 14px; line-height: 1; }
.steps { padding-left: 1.2em; margin: 16px 0 10px; }
.steps li { margin-bottom: 10px; }
.code-chip { font: 500 15px var(--mono); background: var(--ivory-2); border: 1px dashed var(--gold-deep); border-radius: 6px; padding: 2px 8px; white-space: nowrap; }
.copy { font: 500 13px var(--body); min-height: 32px; padding: 4px 10px; margin-left: 4px; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--white); color: var(--ink); cursor: pointer; }
.note { font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.lead { font-size: 18px; }

/* Footer */
.foot { background: var(--navy-deep); color: var(--on-navy-muted); padding: 28px 0 36px; font-size: 14.5px; margin-top: 8px; padding-bottom: max(36px, env(safe-area-inset-bottom)); }
.foot a { color: var(--gold-bright); }
.foot-brand { font: 650 20px var(--display); color: var(--on-navy); }
.foot-brand em { color: var(--gold-bright); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 12px; }
.foot-nav a { min-height: 40px; display: inline-flex; align-items: center; }

@media (min-width: 760px) {
  .hero { padding: 48px 0 52px; }
  .hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
  .plans { gap: 14px; }
  .plan { padding: 20px 18px 18px; }
  .section { padding: 56px 0; }
  .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .choice .opt, .check { transition: background 0.15s, border-color 0.15s, box-shadow 0.15s; }
}
