/* Thole — thole.app. Atlantic palette, same tokens as the app. */

@font-face { font-family: "Outfit"; font-weight: 500; font-display: swap; src: url("../fonts/Outfit-Medium.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 600; font-display: swap; src: url("../fonts/Outfit-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 400; font-display: swap; src: url("../fonts/Figtree-Regular.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 600; font-display: swap; src: url("../fonts/Figtree-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 700; font-display: swap; src: url("../fonts/Figtree-Bold.woff2") format("woff2"); }

:root {
  color-scheme: light dark;
  --bg: #F6F1E8;
  --surface: #FFFFFF;
  --field: #F9F6F0;
  --sand: #EAD9C0;
  --on-sand: #4A3F35;
  --border: #E6DCCB;
  --border2: #D5C7B0;
  --text: #0E2A33;
  --text2: #4E626A;
  --primary: #0F5566;
  --on-primary: #FFFFFF;
  --primary-soft: #E2EEEF;
  --coral-text: #B4463D;
  --deep: #0B3D4A;          /* hero / feature band */
  --deep-2: #0F4A57;
  --on-deep: #F6F1E8;
  --on-deep-2: #C9DCDD;
  --accent-on-deep: #9FD3DB;
  --ink: #0E2A33;           /* footer */
  --shadow: 0 1px 2px rgba(14, 42, 51, .04), 0 8px 24px rgba(14, 42, 51, .06);
  --radius: 24px;
  --max: 1160px;
  --head: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --body: "Figtree", ui-sans-serif, system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1F26;
    --surface: #12303A;
    --field: #0E2830;
    --sand: #183A45;
    --on-sand: #C9D9DB;
    --border: #1E4350;
    --border2: #2B5A68;
    --text: #EAF2F2;
    --text2: #9FB6BB;
    --primary: #5FB3C2;
    --on-primary: #0B1F26;
    --primary-soft: #16404C;
    --coral-text: #EE8C80;
    --deep: #0E2A33;
    --deep-2: #12303A;
    --ink: #071519;
    --shadow: none;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.1; letter-spacing: -0.015em; margin: 0; }
p { margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 10px 16px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--coral-text); }

/* ── Header ── */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--primary); }
.brand img { width: 34px; height: 34px; }
.brand span { font-family: var(--head); font-weight: 600; font-size: 28px; letter-spacing: -0.02em; }
.site-header nav { margin-left: auto; display: flex; align-items: center; gap: 8px 24px; flex-wrap: wrap; justify-content: flex-end; }
.site-header nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 600; font-size: 16px; padding: 10px 0; }
.site-header nav a:not(.btn):hover { color: var(--primary); }
@media (max-width: 620px) { .site-header nav a:not(.btn) { display: none; } }

/* ── Buttons & form ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 0;
  font: inherit; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer;
  background: var(--primary); color: var(--on-primary);
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.btn-light { background: var(--on-deep); color: #0B3D4A; }

.signup { display: grid; gap: 10px; max-width: 540px; }
.signup label { font-weight: 600; font-size: 16px; }
.signup .row { display: flex; flex-wrap: wrap; gap: 10px; }
.signup input[type="email"] {
  flex: 1 1 240px; min-width: 0; min-height: 52px; padding: 12px 16px;
  font: inherit; font-size: 17px; border-radius: 14px;
  border: 1px solid var(--border2); background: var(--surface); color: var(--text);
}
.signup input::placeholder { color: var(--text2); opacity: 1; }
.signup .btn { min-height: 52px; border-radius: 14px; }
.signup .small { font-size: 15px; color: var(--text2); }
.signup .msg { font-size: 16px; font-weight: 600; min-height: 1em; }
.signup .msg:empty { display: none; }

.on-deep .signup input[type="email"] { background: var(--deep-2); border-color: #2E6B78; color: var(--on-deep); }
.on-deep .signup input::placeholder { color: #A9C3C6; }
.on-deep .signup .small { color: var(--on-deep-2); }
.on-deep .signup .msg { color: var(--accent-on-deep); }

/* ── Hero ── */
.hero { background: var(--deep); color: var(--on-deep); padding: 0; }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 64px; padding-top: 72px; padding-bottom: 80px; }
.hero .copy { flex: 1 1 460px; min-width: 0; display: grid; gap: 22px; }
.hero .eyebrow { color: var(--accent-on-deep); }
.hero h1 { font-size: clamp(44px, 7vw, 80px); line-height: 1.02; letter-spacing: -0.025em; }
.hero .lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--on-deep-2); max-width: 34em; }
.hero .shot { flex: 0 1 300px; margin: 0 auto; }
@media (max-width: 620px) {
  .hero .wrap { padding-top: 48px; padding-bottom: 56px; gap: 40px; }
  .hero .shot { flex-basis: 260px; }
}

.phone {
  width: 100%; max-width: 300px; margin: 0 auto;
  border-radius: 44px; padding: 10px; background: #06232B;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.phone img { border-radius: 34px; width: 100%; aspect-ratio: 519 / 1124; object-fit: cover; }

/* ── Sections ── */
section { padding: 96px 0; }
.section-head { max-width: 720px; display: grid; gap: 14px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 48px); }
.section-head p { font-size: 19px; color: var(--text2); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; display: grid; gap: 12px; align-content: start; box-shadow: var(--shadow);
}
.card svg { width: 40px; height: 40px; stroke: var(--primary); }
.card h3 { font-size: 25px; }
.card p { color: var(--text2); }

.promises { background: var(--sand); color: var(--text); border-radius: 28px; padding: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.promises h3 { font-size: 22px; margin-bottom: 6px; }
.promises p { color: var(--on-sand); font-size: 17px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; align-items: start; }
.gallery figure { margin: 0; display: grid; gap: 14px; }
.gallery .phone { max-width: 260px; padding: 8px; border-radius: 38px; box-shadow: var(--shadow); background: #06232B; }
.gallery .phone img { border-radius: 30px; }
.gallery figcaption { text-align: center; color: var(--text2); font-size: 16px; }
.note { margin-top: 28px; text-align: center; font-size: 15px; color: var(--text2); }

.story { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.story .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
@media (max-width: 860px) { .story .wrap { grid-template-columns: 1fr; } }
.word {
  background: var(--deep); color: var(--on-deep); border-radius: 28px; padding: 44px;
  display: grid; gap: 10px; align-content: center; min-height: 340px;
}
.word .term { font-family: var(--head); font-size: clamp(56px, 8vw, 88px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.word .pron { color: var(--accent-on-deep); font-size: 17px; }
.word .def { font-size: 21px; color: var(--on-deep-2); }
.word .def em { color: var(--on-deep); font-style: normal; font-weight: 600; }
.story .copy { display: grid; gap: 18px; }
.story h2 { font-size: clamp(32px, 4.4vw, 46px); }
.story p { font-size: 19px; color: var(--text2); }
.story .sign { font-family: var(--head); font-size: 20px; font-weight: 600; color: var(--primary); }

.reset { background: var(--deep); color: var(--on-deep); }
.reset .wrap { display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: center; }
.reset .copy { flex: 1 1 460px; display: grid; gap: 16px; }
.reset .eyebrow { color: var(--accent-on-deep); }
.reset h2 { font-size: clamp(32px, 4.4vw, 52px); }
.reset p { font-size: 19px; color: var(--on-deep-2); }
.reset .panel { flex: 0 1 360px; background: var(--deep-2); border: 1px solid #1E5866; border-radius: 22px; padding: 24px; display: grid; gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 8px 16px; border-radius: 999px; border: 1px solid #5FB3C2; font-weight: 600; font-size: 15px; }
.chips span:first-child { background: var(--on-deep); color: #0B3D4A; border-color: var(--on-deep); }
.reset .panel .small { font-size: 15px; color: var(--on-deep-2); }

.final { text-align: center; }
.final .wrap { max-width: 760px; display: grid; justify-items: center; gap: 18px; }
.final h2 { font-size: clamp(32px, 4.4vw, 48px); }
.final p.lede { font-size: 19px; color: var(--text2); }
.final .signup { width: 100%; justify-items: center; }
.final .signup .row { width: 100%; justify-content: center; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 6px; }
.stores span { padding: 12px 20px; border-radius: 14px; border: 1px solid var(--border2); color: var(--text2); font-size: 15px; font-weight: 600; }

/* ── Footer ── */
.site-footer { background: var(--ink); color: #A9C3C6; font-size: 16px; }
.site-footer .wrap { padding-top: 48px; padding-bottom: 48px; display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; }
.site-footer .brand { color: #F6F1E8; }
.site-footer .tag { margin-top: 6px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; }
.site-footer a { color: #D6E4E4; }
.site-footer .legal { flex-basis: 100%; font-size: 14px; color: #93AEB2; display: grid; gap: 6px; }

/* ── Simple pages (privacy, support, thanks, 404) ── */
.page { padding: 64px 0 96px; }
.page .wrap { max-width: 780px; }
.page h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 12px; }
.page .meta { color: var(--text2); margin-bottom: 36px; }
.page h2 { font-size: 26px; margin: 40px 0 12px; }
.page p, .page li { color: var(--text); }
.page p + p { margin-top: 14px; }
.page ul { padding-left: 1.2em; margin: 12px 0; }
.page li + li { margin-top: 8px; }
.callout { background: var(--primary-soft); border-radius: 18px; padding: 22px 24px; margin: 24px 0; }
.page .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
details { border-bottom: 1px solid var(--border); padding: 16px 0; }
details summary { cursor: pointer; font-weight: 700; font-size: 19px; list-style-position: outside; }
details[open] summary { margin-bottom: 10px; }

@media (max-width: 620px) {
  section { padding: 72px 0; }
  .hero { padding: 0; }
  .promises, .word { padding: 28px; }
}
@media (max-width: 620px) {
  /* Screens scroll sideways on phones instead of stacking three tall images */
  .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 18px; margin: 0 -24px; padding: 4px 24px 12px; }
  .gallery figure { flex: 0 0 72%; scroll-snap-align: center; }
}
