/* Surfon site styles */

@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/dm-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/dm-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/dm-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  --navy: #0B1F3B;
  --navy-2: #13294A;
  --paper: #F5F3EE;
  --white: #FFFFFF;
  --ink-soft: #3D4B5C;
  --on-navy-soft: #CBD3DD;
  --teal: #2A7F7F;
  --teal-text: #1F6B6B;
  --sand: #C8B6A6;
  --sand-bg: #EDE6DD;
  --line: #D8D8D8;
  --trickle: #4F6BFF;
  --trickle-text: #3D55E6;
  --trickle-bg: #E8DEF8;
  --app-bg: #F7F8FA;
  --accent: var(--teal);
  --accent-text: var(--teal-text);
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
}

.page-trickle { --accent: var(--trickle-text); --accent-text: var(--trickle-text); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--navy); font-family: var(--body); font-size: 18px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--accent-text); }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: var(--paper); padding: 10px 16px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 16px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: 96px; padding-bottom: 96px; }
.bg-white { background: var(--white); }
.bg-navy { background: var(--navy); color: var(--paper); }

/* Type */
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent-text); }
.bg-navy .eyebrow { color: var(--sand); }
.display-1 { font-family: var(--display); font-weight: 700; font-size: clamp(3rem, 6vw, 5rem); line-height: 1; letter-spacing: -0.5px; }
.display-2 { font-family: var(--display); font-weight: 700; font-size: clamp(2.4rem, 4.5vw, 3.5rem); line-height: 1.05; }
.display-3 { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 3.5vw, 2.75rem); line-height: 1.05; }
.lead { color: var(--ink-soft); max-width: 560px; }
.muted { color: var(--ink-soft); }
.bg-navy .muted, .bg-navy .lead { color: var(--on-navy-soft); }
.small { font-size: 15px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.intro { max-width: 760px; }

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 26px; border-radius: 999px; font: inherit; font-size: 17px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--navy); color: var(--white); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--navy); }
.btn-light:hover { background: var(--white); color: var(--navy); }
.btn-dark { background: var(--navy); color: var(--paper); }
.btn-dark:hover { background: var(--accent); color: var(--white); }

/* Header */
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.logo img { height: 34px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 16px; font-weight: 500; }
.nav a { text-decoration: none; padding: 6px 0; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav .btn { min-height: 44px; padding: 10px 22px; font-size: 16px; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; padding-top: 40px; padding-bottom: 96px; }
.hero-copy { flex: 1 1 520px; min-width: 0; }
.hero-media { flex: 0 1 300px; display: flex; justify-content: center; margin: 0 auto; }

/* Phone frame */
.phone { width: 100%; max-width: 300px; padding: 10px; background: var(--navy); border-radius: 44px; box-shadow: 0 24px 48px rgba(11, 31, 59, 0.18); }
.phone img { width: 100%; border-radius: 34px; background: var(--app-bg); aspect-ratio: 720 / 1451; object-fit: cover; object-position: top; }
.phone-sm { max-width: 250px; padding: 8px; border-radius: 36px; box-shadow: none; }
.phone-sm img { border-radius: 28px; }

/* App badge */
.app-id { display: flex; align-items: center; gap: 14px; }
.app-id svg { flex: none; }
.app-name { font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 1; }

/* Grids and cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.grid-wide { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card { border-radius: 24px; padding: 30px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-size: 21px; line-height: 1.3; }
.card p { font-size: 16px; }
.card-navy { background: var(--navy-2); }
.card-navy p { color: var(--on-navy-soft); }
.card-paper { background: var(--paper); }
.card-app { background: var(--app-bg); }
.card-white { background: var(--white); }
.card .num { font-family: var(--display); font-weight: 700; font-size: 48px; line-height: 1; color: var(--accent-text); }
.icon { width: 28px; height: 28px; }

.rule-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 36px; }
.rule-list > div { border-top: 2px solid var(--navy); padding-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.bg-navy .rule-list > div { border-top-color: var(--sand); }
.rule-list h3 { font-size: 21px; }
.rule-list p { font-size: 16px; color: var(--ink-soft); }
.bg-navy .rule-list p { color: var(--on-navy-soft); }

.split { display: flex; flex-wrap: wrap; gap: 48px; }
.split > :first-child { flex: 1 1 360px; min-width: 0; }
.split > :last-child { flex: 1 1 480px; min-width: 0; }

.ticks { display: flex; flex-direction: column; gap: 16px; }
.tick { display: flex; gap: 16px; align-items: flex-start; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.tick:last-child { border-bottom: 0; padding-bottom: 0; }
.tick svg { flex: none; margin-top: 4px; }
.tick span { display: block; font-size: 16px; color: var(--ink-soft); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 40px 32px; }
.gallery figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.gallery figcaption strong { display: block; font-size: 18px; }
.gallery figcaption span { font-size: 15px; color: var(--ink-soft); }

/* Pricing */
.price { font-family: var(--display); font-weight: 700; font-size: 48px; line-height: 1; }
.price-tbc { font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 1.1; }
.card ul { margin: 0; padding-left: 20px; font-size: 16px; display: flex; flex-direction: column; gap: 6px; }
.card-paper.on-navy { color: var(--navy); }
.card-paper.on-navy p, .card-paper.on-navy .small { color: var(--ink-soft); }
.card-navy li { color: #E4E9EF; }

/* FAQ */
.faq { max-width: 860px; }
.faq-item { border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-direction: column; gap: 6px; }
.faq-item h3 { font-size: 19px; }
.faq-item p { font-size: 16px; color: var(--ink-soft); }

/* Callout and forms */
.callout { background: var(--sand-bg); border-radius: 32px; padding: 56px 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.page-trickle .callout { background: var(--trickle-bg); }
.callout > * { flex: 1 1 420px; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: 14px; font-weight: 700; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; }
.inline-form input { flex: 1 1 220px; min-width: 0; }
input, select, textarea { font: inherit; font-size: 16px; padding: 13px 18px; border-radius: 14px; border: 2px solid #9AA3AE; background: var(--white); color: var(--navy); width: 100%; }
.inline-form input { border-radius: 999px; border-color: var(--navy); width: auto; }
textarea { resize: vertical; min-height: 150px; }
.form-card { background: var(--white); border-radius: 32px; padding: 40px; display: flex; flex-direction: column; gap: 20px; }
.form-note { font-size: 14px; color: var(--ink-soft); }
.form-status { font-size: 15px; font-weight: 500; min-height: 1.4em; }

/* Sector teaser */
.teaser { background: var(--white); border-radius: 32px; padding: 48px 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.teaser > :first-child { flex: 1 1 420px; min-width: 0; }
.teaser > :last-child { flex: 1 1 440px; min-width: 0; margin: 0; }
.car { background: #0E1116; color: var(--white); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 24px; }
.car-top, .car-foot { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: #B8C0CC; }
.car-mid { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.car-avg { font-family: var(--display); font-weight: 700; font-size: 88px; line-height: 0.95; }
.car-pill { background: #2BB673; color: #0E1116; font-weight: 700; font-size: 20px; padding: 8px 16px; border-radius: 999px; }
.car-bar { height: 8px; background: #2A313C; border-radius: 999px; }
.car-bar div { width: 56%; height: 8px; background: var(--white); border-radius: 999px; }
.car-label { font-size: 14px; color: #B8C0CC; }

/* Facts panel (About) */
.facts { background: var(--sand-bg); border-radius: 32px; padding: 36px; display: flex; flex-direction: column; gap: 22px; }
.facts dt { font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #6B5646; }
.facts dd { margin: 4px 0 0; font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1.1; }

/* Prose (Privacy) */
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; margin-top: 40px; margin-bottom: 10px; }
.prose p, .prose li { color: var(--ink-soft); font-size: 17px; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; margin: 12px 0 0; }

/* Footer */
.site-footer { background: var(--navy); color: var(--on-navy-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 32px; padding-top: 56px; padding-bottom: 24px; }
.site-footer img { height: 28px; width: auto; align-self: flex-start; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 15px; }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { color: var(--sand); text-decoration: underline; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; font-size: 15px; }
.copyright { max-width: var(--wrap); margin: 0 auto; padding: 0 24px 32px; font-size: 14px; }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .hero { gap: 40px; padding-bottom: 64px; padding-top: 16px; }
  .nav { gap: 6px 22px; }
  .nav .btn { display: none; }
  .site-header .wrap { padding-top: 18px; padding-bottom: 8px; gap: 10px; }
  .callout, .teaser, .form-card { padding: 32px 22px; border-radius: 24px; }
  .car-avg { font-size: 68px; }
  .card { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
