/* Tidewrite — "Shoreline": sand-colored paper, deep sea ink, low-sun amber.
   No web fonts, no scripts, no trackers: system typefaces only. */

:root {
  --paper: #faf6ee;
  --surface: #f2ecdf;
  --ink: #23201b;
  --quiet: #6b6457;
  --hairline: #e2daca;
  --accent: #b8741f;        /* the low sun: marks, icons, rules */
  --accent-text: #8c5512;   /* amber dark enough for text on paper */
  --highlight: #f6e3b8;

  --dusk: #1c1e25;          /* the app icon's sky */
  --dusk-2: #262932;
  --foam: #f8f3ea;
  --sun: #e9a94b;

  --serif: ui-serif, "New York", "Iowan Old Style", Charter, "Charter BT", Georgia, serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --measure: 66ch;
  --wide: 1120px;
  --radius: 14px;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #17181c;
    --surface: #1f2127;
    --ink: #ece6d8;
    --quiet: #a39d8f;
    --hairline: #2c2f37;
    --accent: #e9a94b;
    --accent-text: #e9a94b;
    --highlight: #4a3b1e;
    --dusk: #111216;
    --dusk-2: #1b1d23;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--accent-text); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

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

.wrap { width: min(100% - 40px, var(--wide)); margin-inline: auto; }
.narrow { width: min(100% - 40px, 760px); margin-inline: auto; }

/* ---------- Header ---------- */

.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  color: var(--foam);
}
.site-header.on-paper { position: static; color: var(--ink); border-bottom: 1px solid var(--hairline); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 72px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: inherit; text-decoration: none;
  font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: -0.01em;
}
.brand img { width: 30px; height: 30px; }
.site-nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.site-nav a { color: inherit; text-decoration: none; opacity: 0.82; }
.site-nav a:hover { opacity: 1; }
.site-nav .nav-cta {
  opacity: 1; padding: 7px 15px; border-radius: 999px;
  border: 1px solid currentColor;
}
.site-header:not(.on-paper) .site-nav .nav-cta { border-color: rgba(248, 243, 234, 0.35); }

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 55% at 50% 30%, rgba(233, 169, 75, 0.16), transparent 70%),
    linear-gradient(180deg, var(--dusk) 0%, var(--dusk-2) 100%);
  color: var(--foam);
  padding: 150px 0 0;
  text-align: center;
}
.hero-sun {
  width: 116px; height: 116px; margin: 0 auto 30px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 80px 18px rgba(233, 169, 75, 0.28);
}
.hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(38px, 6.4vw, 68px); line-height: 1.06; letter-spacing: -0.02em;
  margin: 0 auto 22px; max-width: 20ch;
}
.hero h1 span { display: inline-block; }
.hero .lede {
  font-size: clamp(17px, 2.1vw, 20px); line-height: 1.55;
  color: rgba(248, 243, 234, 0.78);
  max-width: 36em; margin: 0 auto 34px;
}

.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 18px; }
.button {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px;
  font: 600 16px/1.2 var(--sans); text-decoration: none;
  background: var(--sun); color: #1c1e25;
  border: 0;
}
.button svg { width: 18px; height: 18px; }
.button[aria-disabled="true"] { cursor: default; }
.button.on-paper { background: var(--ink); color: var(--paper); }
.cta-note { font-size: 14px; color: rgba(248, 243, 234, 0.6); }
.cta-note.on-paper { color: var(--quiet); }

.waves { margin-top: 64px; height: 90px; width: 100%; }
.waves path { fill: none; stroke-linecap: round; stroke-width: 5; }

/* ---------- App window mock ---------- */

.showcase { position: relative; margin-top: -58px; padding-bottom: 24px; }
.window {
  max-width: 1000px; margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  box-shadow: 0 30px 80px -30px rgba(20, 18, 14, 0.45), 0 2px 6px rgba(20, 18, 14, 0.06);
  overflow: hidden;
  text-align: left;
  font-size: 13px; line-height: 1.45;
}
.win-bar {
  display: flex; align-items: center; gap: 14px;
  height: 46px; padding: 0 14px;
  background: var(--surface); border-bottom: 1px solid var(--hairline);
}
.lights { display: flex; gap: 7px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #e2dccf; display: block; }
.lights i:nth-child(1) { background: #ec6a5e; }
.lights i:nth-child(2) { background: #f4bf4f; }
.lights i:nth-child(3) { background: #61c554; }
.win-title { font-weight: 600; color: var(--ink); }
.win-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--quiet); }
.win-tools .tool {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px; border-radius: 7px; border: 1px solid var(--hairline); background: var(--paper);
}
.win-tools .search { min-width: 150px; color: var(--quiet); }
.win-tools svg { width: 14px; height: 14px; }

.win-body { display: grid; grid-template-columns: 196px 1fr; min-height: 420px; }
.win-side {
  background: var(--surface); border-right: 1px solid var(--hairline);
  padding: 16px 10px; display: flex; flex-direction: column; gap: 2px; color: var(--ink);
}
.win-side .item { display: flex; align-items: center; gap: 9px; padding: 5px 9px; border-radius: 7px; }
.win-side .item.sel { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.win-side .item svg { width: 14px; height: 14px; color: var(--accent); flex: none; }
.win-side .label {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--quiet); padding: 14px 9px 4px;
}
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; margin-inline: 2px; }
.win-side .status { margin-top: auto; padding: 10px 9px 0; color: var(--quiet); font-size: 11.5px; display: flex; gap: 6px; align-items: center; }
.win-side .status svg { width: 12px; height: 12px; color: var(--quiet); }

.river { padding: 26px clamp(18px, 5vw, 64px) 0; position: relative; }
.river .day {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--quiet); margin: 0 0 8px;
}
.river h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.01em; }
.river p { font-family: var(--serif); font-size: 15px; line-height: 1.6; margin: 0 0 12px; max-width: 58ch; }
.river .star { color: var(--accent); }
.photos { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 6px; max-width: 520px; margin: 4px 0 12px; }
.photos span { aspect-ratio: 4 / 3; border-radius: 8px; display: block; }
.photos span:first-child { grid-row: span 2; aspect-ratio: auto; }
.ph-a { background: linear-gradient(170deg, #c9d3d6 0%, #e9e2d3 52%, #8d9a8f 53%, #6f7c71 100%); }
.ph-b { background: linear-gradient(200deg, #f1d39b 0%, #d68f4a 55%, #5f4a3a 100%); }
.ph-c { background: linear-gradient(160deg, #9fb1ba 0%, #dfe5e3 60%, #b9ad97 100%); }
.ph-d { background: linear-gradient(180deg, #2f3542 0%, #6b6f7a 60%, #c49a5a 100%); }
.ph-e { background: linear-gradient(140deg, #e8dcc6 0%, #b8a07a 100%); }
.tags { display: flex; gap: 8px; color: var(--quiet); font-size: 12px; margin-bottom: 18px; }
.river hr { border: 0; border-top: 1px solid var(--hairline); margin: 4px 0 22px; max-width: 58ch; }
.river .fade { position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: linear-gradient(transparent, var(--paper)); }

.ribbon {
  display: flex; align-items: center; gap: 12px;
  height: 40px; padding: 0 14px;
  border-top: 1px solid var(--hairline); background: var(--paper); color: var(--ink);
  font-weight: 600; font-size: 12px;
}
.ribbon svg { flex: 1; height: 24px; }

/* ---------- Sections ---------- */

section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-text); margin: 0 0 12px;
}
h1, h2, h3 { text-wrap: balance; }
h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(30px, 4.2vw, 44px); line-height: 1.12; letter-spacing: -0.015em;
  margin: 0 0 16px;
}
.section-head p { color: var(--quiet); font-size: 18px; margin: 0; }

/* Three promises */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--hairline); }
.pillar { padding: 34px 32px 6px 0; }
.pillar + .pillar { padding-left: 32px; border-left: 1px solid var(--hairline); }
.pillar h3 { font-family: var(--serif); font-size: 26px; font-weight: 600; margin: 0 0 10px; }
.pillar p { margin: 0; color: var(--quiet); }
.pillar p strong { color: var(--ink); font-weight: 600; }

/* Feature grid */
.features { background: var(--surface); border-block: 1px solid var(--hairline); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 26px 26px 24px;
}
.feature .icon {
  width: 38px; height: 38px; border-radius: 10px; margin-bottom: 16px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent);
}
.feature .icon svg { width: 20px; height: 20px; }
.feature h3 { font-size: 18px; font-weight: 600; margin: 0 0 6px; letter-spacing: -0.005em; }
.feature p { margin: 0; color: var(--quiet); font-size: 15.5px; line-height: 1.55; }
kbd {
  font-family: var(--sans); font-size: 0.86em; padding: 1px 6px; border-radius: 5px;
  border: 1px solid var(--hairline); background: var(--surface); color: var(--ink); white-space: nowrap;
}

/* Split sections */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split p { color: var(--quiet); font-size: 17.5px; }
.split p strong { color: var(--ink); font-weight: 600; }

.providers { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.providers li {
  font-size: 14px; padding: 6px 13px; border-radius: 999px;
  border: 1px solid var(--hairline); background: var(--surface);
}

/* Sync diagram */
.sync-figure { margin: 0; }
.sync-figure svg { width: 100%; height: auto; }
.sync-figure figcaption { font-size: 14px; color: var(--quiet); margin-top: 12px; text-align: center; }
.fig-ink { fill: var(--ink); }
.fig-quiet { fill: var(--quiet); }
.fig-box { fill: var(--paper); stroke: var(--hairline); stroke-width: 1.5; }
.fig-box-soft { fill: var(--surface); stroke: var(--hairline); stroke-width: 1.5; }
.fig-accent { fill: var(--accent); }
.fig-line { stroke: var(--accent); stroke-width: 2; fill: none; stroke-dasharray: 5 6; }
.fig-text { font-family: var(--sans); font-size: 14px; fill: var(--ink); }
.fig-small { font-family: var(--sans); font-size: 12px; fill: var(--quiet); }
.fig-serif { font-family: var(--serif); font-size: 15px; fill: var(--ink); }
.fig-mono { font-family: var(--mono); font-size: 11px; fill: var(--quiet); }

/* Free */
.free { text-align: center; }
.free h2 { font-size: clamp(36px, 6vw, 60px); }
.free .lede { color: var(--quiet); font-size: 19px; max-width: 34em; margin: 0 auto 40px; }
.free-list {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  max-width: 900px; margin: 0 auto; padding: 0; list-style: none;
  border-block: 1px solid var(--hairline);
}
.free-list li { padding: 22px 12px; font-size: 15px; color: var(--quiet); }
.free-list li + li { border-left: 1px solid var(--hairline); }
.free-list strong { display: block; font-family: var(--serif); font-size: 21px; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
.promise { font-family: var(--serif); font-style: italic; font-size: 19px; margin: 36px auto 0; max-width: 32em; }

/* Honest notes */
.notes { border-top: 1px solid var(--hairline); }
.note-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.note-grid h3 { font-family: var(--serif); font-size: 21px; font-weight: 600; margin: 0 0 8px; }
.note-grid p { margin: 0; color: var(--quiet); font-size: 16px; }

/* Final CTA */
.closing {
  background: linear-gradient(180deg, var(--dusk-2), var(--dusk));
  color: var(--foam); text-align: center; padding: 100px 0 110px;
}
.closing img { width: 84px; height: 84px; margin: 0 auto 26px; }
.closing h2 { margin-bottom: 14px; }
.closing p { color: rgba(248, 243, 234, 0.72); margin: 0 auto 30px; max-width: 32em; font-size: 18px; }

/* Footer */
.site-footer { padding: 34px 0 44px; font-size: 14px; color: var(--quiet); border-top: 1px solid var(--hairline); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-footer nav { display: flex; gap: 22px; }
.site-footer a { color: inherit; }
.closing + .site-footer { border-top: 0; }

/* ---------- Privacy policy ---------- */

.doc { padding: 64px 0 96px; }
.doc header { margin-bottom: 40px; }
.doc h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(36px, 5.5vw, 52px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 12px;
}
.doc .updated { color: var(--quiet); font-size: 15px; margin: 0; }
.doc h2 { font-size: 27px; margin: 52px 0 12px; }
.doc h3 { font-size: 18px; margin: 28px 0 6px; }
.doc p, .doc li { max-width: var(--measure); }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: var(--accent); }
.doc code { font-family: var(--mono); font-size: 0.86em; background: var(--surface); padding: 1px 5px; border-radius: 5px; }
.summary {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 26px 30px; margin: 0 0 8px;
}
.summary h2 { margin: 0 0 12px; font-size: 22px; }
.summary ul { margin: 0; padding-left: 1.2em; }
.summary li:last-child { margin-bottom: 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15.5px; margin: 16px 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 11px 12px 11px 0; border-bottom: 1px solid var(--hairline); }
.doc th { font-weight: 600; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--quiet); }
.doc td:first-child { font-weight: 600; width: 34%; padding-right: 18px; }
.toc { columns: 2; column-gap: 32px; padding: 0; list-style: none; margin: 28px 0 0; font-size: 15px; }
.toc li { margin-bottom: 6px; }

/* ---------- 404 ---------- */

.lost-page { background: var(--dusk-2); }
.hero.lost { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.hero.lost .wrap { margin-block: auto; padding-bottom: 24px; }
.hero.lost .waves { margin-top: 0; flex: none; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .note-grid { grid-template-columns: 1fr; gap: 28px; }
  .win-body { grid-template-columns: 160px 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16.5px; }
  section { padding: 72px 0; }
  .site-nav a:not(.nav-cta) { display: none; }
  .hero { padding-top: 120px; }
  .hero-sun { width: 84px; height: 84px; margin-bottom: 24px; }
  .hero h1 { font-size: 36px; }
  .hero h1 span { display: inline; }
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 24px 0; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--hairline); }
  .feature-grid { grid-template-columns: 1fr; }
  .free-list { grid-template-columns: repeat(2, 1fr); }
  .free-list li:nth-child(3) { border-left: 0; }
  .free-list strong { font-size: 18px; }
  .free-list li { padding: 18px 8px; }
  .free-list li:nth-child(n + 3) { border-top: 1px solid var(--hairline); }
  .win-side { display: none; }
  .win-body { grid-template-columns: 1fr; min-height: 360px; }
  .win-tools .search, .win-tools .hide-sm { display: none; }
  .photos { grid-template-columns: 2fr 1fr; }
  .photos span:nth-child(n + 4) { display: none; }
  .toc { columns: 1; }
  .doc td:first-child { width: 40%; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
