/* Proofstay website. Same language as the app: navy, gov blue, one yellow accent, IBM Plex, paper-like cards.
   Colour only for status (WATCH amber); everything else near-monochrome. */
:root {
  --navy: #0B1F3A;
  --brand: #0B3D91;
  --paper: #F5F7FA;
  --white: #FFFFFF;
  --line: #D5DCE5;
  --muted: #4A5B70;
  --faint: #8A97A8;
  --sun: #FFD166;
  --watch-bg: #FFF1D6;
  --watch-fg: #8A4B00;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--navy); font: 17px/1.6 'IBM Plex Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.4px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.sr-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(245, 247, 250, 0.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--navy); text-decoration: none; }
.links { display: flex; gap: 22px; margin-left: auto; }
.links a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.links a:hover { color: var(--navy); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--brand); color: var(--white); text-decoration: none; font-weight: 600; border-radius: 10px; border: 0; }
.btn-sm { padding: 9px 14px; font-size: 14px; }
.btn-lg { padding: 15px 22px; font-size: 17px; }
.btn-store { background: var(--navy); cursor: default; }
.btn-link { font-weight: 600; text-decoration: none; }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background:
  linear-gradient(var(--paper), var(--paper)) padding-box,
  repeating-linear-gradient(0deg, transparent 0 31px, rgba(11, 61, 145, 0.05) 31px 32px); }
.hero-in { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding: 72px 24px 80px; }
.pill { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.4px; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 999px; background: var(--sun); box-shadow: 0 0 0 2px var(--navy); }
.hero h1 { font-size: 58px; font-weight: 700; letter-spacing: -1.4px; }
.hl { color: var(--brand); box-shadow: inset 0 -0.18em 0 var(--sun); }
.lead { font-size: 20px; color: var(--muted); margin: 22px 0 30px; max-width: 560px; }
.lead strong { color: var(--navy); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 26px 0 0; color: var(--muted); font-size: 15px; }
.ticks li::before { content: "✓"; color: var(--brand); font-weight: 700; margin-right: 8px; }

.hero-art { position: relative; height: 620px; }
.phone { position: absolute; margin: 0; width: 244px; border-radius: 40px; padding: 9px; background: var(--navy); box-shadow: 0 30px 60px rgba(11, 31, 58, 0.25); }
.phone img { width: 100%; height: auto; border-radius: 32px; }
.phone-front { right: 40px; top: 0; z-index: 2; }
.phone-back { top: 48px; }
.phone-back { right: 230px; top: 64px; transform: rotate(-6deg); opacity: 0.96; }
.stamp { position: absolute; z-index: 3; right: 8px; bottom: 36px; display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(11, 31, 58, 0.15); font-size: 13px; color: var(--muted); line-height: 1.3; transform: rotate(3deg); }
.stamp b { font-family: var(--mono); color: var(--navy); font-size: 15px; }

/* Promise band */
.band { background: var(--navy); color: var(--white); border-top: 4px solid var(--sun); }
.band-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; padding: 18px 24px; font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.band-in span::before { content: "■"; color: var(--sun); margin-right: 10px; font-size: 10px; vertical-align: 2px; }

/* Definition */
.def { padding: 56px 0 8px; }
.def p { margin: 0; font-size: 19px; color: var(--muted); border-left: 3px solid var(--brand); padding-left: 20px; }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-navy { background: var(--navy); color: var(--white); }
.eyebrow { margin: 0 0 12px; font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--brand); }
.eyebrow-sun { color: var(--sun); }
.section h2 { font-size: 40px; max-width: 780px; }
.sub { font-size: 19px; color: var(--muted); margin: 14px 0 0; max-width: 680px; }

/* Rule cards */
.rules { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 40px; }
.rule { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.rule-top { display: flex; align-items: center; justify-content: space-between; }
.code { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 30px; padding: 0 6px; border: 1px solid var(--line); border-radius: 6px; font-family: var(--mono); font-size: 12px; font-weight: 700; background: var(--white); color: var(--navy); }
.code-eu { background: var(--brand); color: var(--sun); border-color: var(--brand); }
.chip { font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--muted); background: #EEF1F5; border-radius: 4px; padding: 3px 7px; }
.chip-watch { color: var(--watch-fg); background: var(--watch-bg); }
.rule h3 { font-size: 18px; margin-top: 4px; }
.num { margin: 0; font-size: 14px; color: var(--muted); }
.num b { font-family: var(--mono); font-size: 34px; color: var(--navy); margin-right: 4px; letter-spacing: -1px; }
.what { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); flex: 1; }
.who { margin: 6px 0 0; padding-top: 10px; border-top: 1px solid #EEF1F5; font-size: 13px; font-weight: 600; }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px; }
.card { position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 20px; background: var(--paper); }
.card h3 { font-size: 17px; margin: 14px 0 6px; }
.card p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.tag { position: absolute; top: 18px; right: 18px; font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 2px 7px; background: var(--white); }
.tag-plus { color: var(--white); background: var(--navy); border-color: var(--navy); }
.tag-plus::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 999px; background: var(--sun); margin-right: 5px; vertical-align: 2px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--navy); }
.steps li { display: flex; gap: 18px; padding: 26px 26px 0 0; }
.steps .n { font-family: var(--mono); font-size: 15px; font-weight: 700; color: var(--brand); padding-top: 3px; }
.steps h3 { font-size: 21px; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }

/* Proof */
.proof-in { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.proof-in > *, .hero-in > * { min-width: 0; }
.section-navy h2 { color: var(--white); }
.proof-copy p { color: #BFC9D6; }
.seal { margin: 24px 0; padding: 18px 20px; border: 1px solid #2A3F5C; border-left: 3px solid var(--sun); border-radius: 8px; background: #0E2747; color: #E6ECF5; font: 600 13px/1.7 var(--mono); overflow-x: auto; }
.seal .k { color: var(--sun); }
.fine { font-size: 13px; }
.proof-art { position: relative; height: 560px; }
.paper { position: absolute; width: 74%; border-radius: 4px; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35); }
.paper-1 { left: 0; top: 0; transform: rotate(-3deg); }
.paper-2 { right: 0; bottom: 0; transform: rotate(2.5deg); }

/* Scenario */
.scenario h2 { font-size: 40px; }
.scenario > p { font-size: 19px; color: var(--muted); margin: 16px 0 0; }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.vs > div { border: 1px solid var(--line); border-radius: 12px; padding: 22px; background: var(--white); }
.vs h3 { font-size: 17px; margin-bottom: 8px; }
.vs p { margin: 0; color: var(--muted); font-size: 15px; }
.vs-good { border: 2px solid var(--brand) !important; }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; margin-top: 40px; max-width: 900px; }
.plan { border: 1px solid var(--line); border-radius: 14px; padding: 28px; background: var(--paper); }
.plan-plus { background: var(--navy); color: var(--white); border-color: var(--navy); }
.plan h3 { font-size: 20px; }
.price { font-family: var(--mono); font-size: 40px; font-weight: 700; margin: 10px 0 0; letter-spacing: -1px; }
.price span { font-size: 16px; font-weight: 500; color: var(--faint); margin-left: 6px; }
.alt { margin: 4px 0 0; font-size: 14px; color: #BFC9D6; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; font-size: 15px; }
.plan li::before { content: "✓"; font-weight: 700; color: var(--brand); margin-right: 10px; }
.plan-plus li::before { color: var(--sun); }

/* Tools */
.tools { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 36px; }
.tool { display: flex; align-items: center; gap: 16px; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.tool h3 { font-size: 17px; }
.tool p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.tool > div { flex: 1; }
.soon { font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--faint); border: 1px dashed var(--line); border-radius: 4px; padding: 3px 7px; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details:first-of-type { margin-top: 26px; border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--mono); color: var(--brand); }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; color: var(--muted); }

/* Footer */
.foot { background: var(--navy); color: #BFC9D6; border-top: 4px solid var(--sun); padding: 34px 0; font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.foot .brand { color: var(--white); font-size: 17px; }
.foot nav { display: flex; gap: 18px; }
.foot a { color: var(--white); text-decoration: none; }
.foot p { margin: 0 0 0 auto; }

/* Responsive */
@media (max-width: 1080px) {
  .rules { grid-template-columns: repeat(3, 1fr); }
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .links { display: none; }
  .nav-in .btn { margin-left: auto; }
  .hero-in { grid-template-columns: 1fr; padding: 48px 24px 56px; }
  .hero h1 { font-size: 42px; }
  .hero-art { height: 480px; max-width: 420px; margin: 0 auto; width: 100%; }
  .phone { width: 210px; }
  .phone-front { right: 6%; top: 0; transform: none; }
  .phone-back { right: auto; left: 2%; top: 40px; transform: rotate(-6deg); }
  .stamp { right: 0; }
  .section { padding: 64px 0; }
  .section h2, .scenario h2 { font-size: 30px; }
  .rules, .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .steps li { padding-right: 0; }
  .proof-in { grid-template-columns: 1fr; }
  .proof-art { height: 440px; }
  .vs, .plans, .tools { grid-template-columns: 1fr; }
  .foot p { margin: 0; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .hero h1 { font-size: 34px; }
  .lead { font-size: 18px; }
  .rules, .grid { grid-template-columns: 1fr; }
  .band-in { justify-content: flex-start; }
  .hero-art { height: 400px; }
  .phone { width: 172px; padding: 7px; border-radius: 30px; }
  .phone img { border-radius: 24px; }
}

/* Schengen calculator page */
.calc-hero { padding: 56px 0 8px; }
.calc-hero h1 { font-size: 52px; letter-spacing: -1.2px; }
.calc-hero .lead { max-width: 720px; margin-bottom: 0; }
.calc { padding: 32px 0 72px; }
.calc-in { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: start; }
.calc-in > * { min-width: 0; }
.calc-form, .calc-result { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.calc-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.calc-head h2 { font-size: 20px; }
.calc label span { display: block; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.calc input[type=date] { font: 500 16px var(--mono); color: var(--navy); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; width: 100%; min-width: 0; }
.calc input[type=date]:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.trip { display: grid; grid-template-columns: 1fr 1fr 40px; gap: 10px; align-items: end; padding: 12px 0; border-top: 1px solid var(--line); }
.trip-x { height: 42px; border: 1px solid var(--line); background: var(--white); border-radius: 8px; font-size: 20px; color: var(--muted); cursor: pointer; }
.trip-x:hover { color: var(--navy); border-color: var(--navy); }
.trip-err { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--watch-fg); }
.calc-actions { display: flex; align-items: center; gap: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.calc-actions .btn { cursor: pointer; }
.btn-plain { background: none; border: 0; font: inherit; font-weight: 600; color: var(--brand); cursor: pointer; padding: 0; }
.calc-note { margin: 14px 0 0; font-size: 13px; color: var(--faint); }
.calc-result { position: sticky; top: 84px; }
.calc-result[data-state=empty] .r-body, .calc-result[data-state=ok] .r-empty { display: none; }
.r-empty { text-align: center; padding: 28px 8px; color: var(--muted); }
.r-empty img { margin: 0 auto 12px; opacity: 0.7; }
.r-top { display: flex; align-items: center; gap: 10px; }
.r-label { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; }
.r-top .chip { margin-left: auto; }
.calc-result[data-level=watch] .chip { color: var(--watch-fg); background: var(--watch-bg); }
.calc-result[data-level=over] .chip { color: #fff; background: #B42318; }
.r-nums { display: flex; justify-content: space-between; align-items: end; margin: 18px 0 14px; }
.r-nums p { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.r-nums b { font-size: 64px; line-height: 1; letter-spacing: -2px; }
.r-nums span { color: var(--muted); font-size: 15px; }
.r-left { flex-direction: column; align-items: flex-end !important; gap: 2px !important; border-left: 3px solid var(--brand); padding-left: 12px; }
.r-left b { font-size: 32px; letter-spacing: -0.5px; }
.r-left span { font-family: var(--mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; }
.r-strip { display: flex; gap: 1px; height: 26px; }
.r-strip i { flex: 1; background: #E4E9F0; border-radius: 1px; }
.r-strip i.on { background: var(--brand); }
.r-window { margin: 6px 0 16px; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.r-exit { margin: 0; font-weight: 600; }
.r-full { margin: 8px 0 0; font-size: 15px; color: var(--muted); }
.r-over { margin: 0 0 10px; padding: 10px 12px; border-radius: 8px; background: #FDECEA; color: #B42318; font-weight: 600; font-size: 15px; }
.calc-cta p { color: #BFC9D6; font-size: 18px; margin: 16px 0 26px; }
.prose h3 { font-size: 20px; margin: 30px 0 8px; }
.prose p { color: var(--muted); }
.prose p strong { color: var(--navy); }
.countries { font-size: 17px; color: var(--navy) !important; line-height: 1.9; }
@media (max-width: 860px) {
  .calc-in { grid-template-columns: 1fr; }
  .calc-result { position: static; }
  .calc-hero h1 { font-size: 38px; }
}
@media (max-width: 520px) {
  .trip { grid-template-columns: 1fr 1fr 36px; gap: 8px; }
  .calc input[type=date] { font-size: 14px; padding: 9px 6px; }
  .r-nums b { font-size: 52px; }
}
.tool-live { text-decoration: none; color: inherit; border-color: var(--brand); }
.tool-live:hover { box-shadow: 0 4px 16px rgba(11, 31, 58, 0.08); }
.go { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--brand); }
