/* Bordun — bordun.app
   Everything is taken from the icon: deep teal ground, mint foreground,
   one amber glow per screen. Nothing moves fast. */

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/InstrumentSans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/InstrumentSans-latin-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/Nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;

  --teal-deepest: #0d4444;
  --teal-deep: #125656;
  --teal: #166d6d;
  --teal-lift: #1b7d7d;
  --mint: #aeeeee;
  --mint-bright: #b5f2f2;
  --amber: #f4c095;
  --amber-soft: #efccab;
  --ink: #eaf7f7;
  --ink-2: rgba(174, 238, 238, 0.75);
  --ink-3: rgba(174, 238, 238, 0.5);
  --line: rgba(174, 238, 238, 0.14);
  --line-strong: rgba(174, 238, 238, 0.28);
  --card: rgba(9, 52, 52, 0.55);
  --card-2: rgba(13, 68, 68, 0.6);
  --dark-panel: #1a1d1d;

  --font-body: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-wordmark: "Nunito", ui-rounded, "SF Pro Rounded", "Instrument Sans", sans-serif;

  --measure: 62ch;
  --wrap: 1120px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-gap: clamp(5rem, 12vw, 9rem);

  --ease-slow: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: clamp(1.0625rem, 0.98rem + 0.3vw, 1.1875rem);
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--teal-deep);
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.035'/></svg>"),
    radial-gradient(120% 70% at 50% -10%, rgba(27, 125, 125, 0.65) 0%, rgba(27, 125, 125, 0) 60%),
    linear-gradient(180deg, var(--teal-deepest) 0%, var(--teal-deep) 30%, var(--teal) 100%);
  background-repeat: repeat, no-repeat, no-repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1;
  overflow-x: hidden;
}


::selection { background: rgba(244, 192, 149, 0.35); color: var(--ink); }

a { color: var(--mint); text-decoration-color: rgba(174, 238, 238, 0.4); text-underline-offset: 0.16em; transition: color 0.4s var(--ease-slow), text-decoration-color 0.4s var(--ease-slow); }
a:hover { color: var(--mint-bright); text-decoration-color: var(--mint-bright); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; border-radius: 4px; }

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

h1, h2, h3, h4 { margin: 0; color: var(--mint-bright); font-weight: 500; letter-spacing: -0.015em; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.625rem); line-height: 1.12; }
h3 { font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.4375rem); line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 1em; }
strong { font-weight: 600; color: var(--ink); }
em { font-style: italic; }
small { font-size: 0.875em; }

.wrap { position: relative; z-index: 1; width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.measure { max-width: var(--measure); }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.mint { color: var(--mint-bright); }
.amber { color: var(--amber); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6em;
  margin-bottom: 1.1rem;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow::before { content: ""; width: 1.75rem; height: 1px; background: currentColor; opacity: 0.7; }
.eyebrow.amber { color: var(--amber); }

/* ---------- Header ---------- */
.site-header {
  position: relative; z-index: 2;
  padding-block: 1.25rem;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--mint-bright); }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.wordmark { font-family: var(--font-wordmark); font-weight: 600; font-size: 1.375rem; letter-spacing: 0.005em; line-height: 1; }
.site-nav { display: flex; gap: clamp(1rem, 3vw, 2rem); font-size: 0.9375rem; }
.site-nav a { color: var(--ink-2); text-decoration: none; }
.site-nav a:hover { color: var(--mint-bright); }
@media (max-width: 640px) { .site-nav { display: none; } }

/* ---------- Buttons / App Store badge ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  padding: 0.85em 1.5em; border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1; text-decoration: none;
  background: var(--mint); color: var(--teal-deepest);
  transition: background 0.4s var(--ease-slow), transform 0.5s var(--ease-slow);
}
.btn:hover { background: var(--mint-bright); color: var(--teal-deepest); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--mint); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn.ghost:hover { background: rgba(174, 238, 238, 0.06); }

.appstore-badge {
  display: inline-block; line-height: 0;
  border-radius: 10px;
  transition: transform 0.5s var(--ease-slow), opacity 0.4s var(--ease-slow);
}
.appstore-badge svg { height: 52px; width: auto; }
.appstore-badge:hover { transform: translateY(-1px); }
.appstore-badge:focus-visible { outline-offset: 3px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(2.5rem, 7vw, 6rem) clamp(4rem, 8vw, 6rem);
  overflow-x: clip;
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.hero-copy { position: relative; }
.hero-icon {
  width: clamp(72px, 9vw, 96px); height: auto;
  border-radius: 22.5%;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(174, 238, 238, 0.08);
  margin-bottom: 1.75rem;
}
.hero h1 {
  font-family: var(--font-wordmark);
  font-weight: 600;
  font-size: clamp(2.75rem, 2rem + 4vw, 4.75rem);
  letter-spacing: -0.005em;
  line-height: 1;
  color: var(--mint-bright);
}
.tagline {
  margin-top: 0.85rem;
  font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2.375rem);
  line-height: 1.15;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.tagline span { display: block; }
.tagline em { font-style: italic; color: var(--amber-soft); }
.tagline span:nth-child(1) em { color: var(--ink); }
.tagline span:nth-child(2) em { color: var(--mint-bright); }
.tagline span:nth-child(3) em { color: var(--amber-soft); }
.hero .sub {
  margin-top: 1.5rem;
  max-width: 44ch;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  color: var(--ink-2);
}
.hero-cta { margin-top: 2.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.5rem; }
.hero-cta .platform { font-size: 0.9rem; color: var(--ink-3); }
.hero-cta .platform b { color: var(--ink-2); font-weight: 500; }

/* Rings behind the hero: the icon's motif, slowed right down. */
.hero-rings {
  position: absolute; z-index: 0; pointer-events: none;
  width: min(120vw, 1200px); aspect-ratio: 1;
  right: -25%; top: 50%; transform: translateY(-52%);
  opacity: 0.55;
}
.hero-rings circle { fill: none; stroke: var(--mint); stroke-opacity: 0.09; }
.hero-rings .amber-arc { stroke: url(#arcGrad); stroke-opacity: 1; stroke-width: 1.5; }
@media (prefers-reduced-motion: no-preference) {
  .hero-rings { animation: breathe 18s var(--ease-slow) infinite alternate; }
  @keyframes breathe { from { transform: translateY(-52%) scale(1); } to { transform: translateY(-52%) scale(1.035); } }
  .hero-rings .amber-arc { transform-origin: 50% 50%; animation: drift 90s linear infinite; }
  @keyframes drift { to { transform: rotate(360deg); } }
}

/* ---------- Phone frame ---------- */
.phone {
  position: relative; z-index: 1;
  width: min(100%, 320px);
  margin-inline: auto;
  aspect-ratio: 1320 / 2868;
  border-radius: 12.4%/5.7%;
  padding: 3.2%;
  background: linear-gradient(160deg, #0a3535, #072a2a);
  box-shadow:
    0 0 0 1px rgba(174, 238, 238, 0.14),
    0 40px 90px -30px rgba(0, 0, 0, 0.7),
    0 0 120px -20px rgba(174, 238, 238, 0.12);
}
.phone::after {
  /* the island */
  content: ""; position: absolute; left: 50%; top: 4.6%; transform: translateX(-50%);
  width: 27%; height: 2.6%; border-radius: 999px; background: #000;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 10.6%/4.9%; }
.phone.large { width: min(100%, 360px); }
.phone-caption { margin-top: 1rem; text-align: center; font-size: 0.875rem; color: var(--ink-3); }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: var(--section-gap) 0; }
.section:last-of-type { padding-bottom: var(--section-gap); }
.section-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head p { margin-top: 1rem; color: var(--ink-2); max-width: 58ch; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem); }
.rule { height: 1px; background: linear-gradient(90deg, var(--line-strong), transparent 70%); border: 0; margin: 0 0 var(--section-gap); }

/* Three things */
.three {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
.thing {
  position: relative;
  padding: 1.75rem 1.5rem 1.75rem;
  border-top: 1px solid var(--line-strong);
}
.thing .num { font-variant-numeric: tabular-nums; font-size: 0.8125rem; letter-spacing: 0.14em; color: var(--ink-3); margin-bottom: 1.25rem; }
.thing h3 { margin-bottom: 0.7rem; }
.thing p { color: var(--ink-2); font-size: 1rem; }
.thing .glyph { width: 40px; height: 40px; margin-bottom: 1.25rem; }
.thing .glyph circle, .thing .glyph path, .thing .glyph line, .thing .glyph rect { fill: none; stroke: var(--mint); stroke-width: 1.4; }
.thing.accent .glyph .a { stroke: var(--amber); }

/* Session arc */
.arc-grid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: start;
}
.arc-figure {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line); border-radius: 20px;
  background: var(--card);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.arc-figure svg { width: 100%; height: auto; overflow: visible; }
.arc-figure text { font-family: var(--font-body); }
.arc-labels { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 0.75rem; margin-top: 1rem; font-size: 0.875rem; }
.arc-labels div { color: var(--ink-2); }
.arc-labels b { display: block; color: var(--mint-bright); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.75rem; margin-bottom: 0.25rem; }
.arc-labels .mid { text-align: center; }
.arc-labels .end { text-align: right; }

.presets { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1.5rem 0 0.75rem; }
.preset {
  padding: 0.55em 1.05em; border-radius: 999px;
  font-variant-numeric: tabular-nums; font-size: 0.9375rem; font-weight: 500;
  border: 1px solid var(--line-strong); color: var(--mint);
}
.preset.on { background: var(--mint); color: var(--teal-deepest); border-color: var(--mint); }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.25rem; margin-top: 1.75rem; font-size: 1rem; }
.dl dt { color: var(--mint-bright); font-weight: 600; }
.dl dd { margin: 0; color: var(--ink-2); }

/* Room */

.privacy-card {
  position: relative;
  max-width: 44rem;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  border-radius: 20px;
  border: 1px solid rgba(244, 192, 149, 0.35);
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(244, 192, 149, 0.10), transparent 60%),
    var(--card-2);
}
.privacy-card .eyebrow { margin-bottom: 1rem; }
.privacy-card blockquote { margin: 0; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem); color: var(--ink); line-height: 1.55; }
.privacy-card blockquote b { color: var(--amber-soft); font-weight: 600; }
.privacy-card footer { margin-top: 1.25rem; font-size: 0.9rem; color: var(--ink-3); }
.privacy-card footer a { color: var(--ink-2); }
.bands { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; align-items: end; height: 46px; margin: 1.5rem 0 0.4rem; }
.bands span { display: block; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--amber-soft), rgba(239, 204, 171, 0.25)); }

/* Experiment */
.exp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.pull {
  margin: 0; padding-left: 1.5rem;
  border-left: 2px solid var(--amber);
  font-size: clamp(1.125rem, 1.05rem + 0.5vw, 1.375rem); line-height: 1.5; color: var(--ink);
}
.pull b { color: var(--amber-soft); font-weight: 600; }
.rule-line { margin-top: 1.75rem; padding: 1.1rem 1.25rem; border-radius: 14px; background: var(--dark-panel); border: 1px solid rgba(255,255,255,0.06); font-size: 0.9375rem; color: rgba(234, 247, 247, 0.8); }
.rule-line b { color: var(--mint-bright); }


/* Closing CTA */
.closing { text-align: center; padding-block: var(--section-gap); }
.closing .hero-icon { margin-inline: auto; }
.closing h2 { font-family: var(--font-body); font-weight: 400; font-size: clamp(1.75rem, 1.25rem + 2.4vw, 3rem); line-height: 1.15; letter-spacing: -0.015em; color: var(--ink); }
.closing h2 span { display: block; }
.closing h2 em { font-style: italic; }
.closing h2 span:nth-child(1) em { color: var(--ink); }
.closing h2 span:nth-child(2) em { color: var(--mint-bright); }
.closing h2 span:nth-child(3) em { color: var(--amber-soft); }
.closing p { margin-top: 0.75rem; color: var(--ink-2); }
.closing .why { max-width: 46ch; margin: 1rem auto 0; font-size: 1rem; }
.closing .why em { color: var(--amber-soft); }
.closing .hero-cta { justify-content: center; margin-top: 2rem; }
.closing .platform-line { margin-top: 1rem; font-size: 0.9rem; color: var(--ink-3); }

/* Footer */
.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--line); padding-block: 2.5rem 3rem; font-size: 0.9rem; color: var(--ink-3); }
.site-footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 3rem; align-items: start; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer nav a { color: var(--ink-2); text-decoration: none; }
.site-footer nav a:hover { color: var(--mint-bright); }
.site-footer .fine { margin-top: 1rem; max-width: 60ch; }
.site-footer .fine a { color: var(--ink-2); }

/* ---------- Privacy page ---------- */
.doc { padding-block: clamp(2rem, 6vw, 4rem) var(--section-gap); }
.doc h1 { font-size: clamp(2rem, 1.5rem + 2.5vw, 3rem); line-height: 1.1; }
.doc .updated { margin-top: 0.75rem; color: var(--ink-3); font-size: 0.9375rem; }
.doc .lede { margin-top: 1.5rem; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem); color: var(--ink-2); }
.doc h2 { font-size: 1.375rem; margin-top: 2.75rem; margin-bottom: 0.75rem; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-left: 1.25rem; margin: 0.75rem 0 0; }
.doc li { margin-top: 0.5rem; }
.doc li::marker { color: var(--ink-3); }
.doc .summary { margin-top: 1.5rem; padding: 1.25rem 1.5rem; border-radius: 16px; border: 1px solid rgba(244, 192, 149, 0.3); background: var(--card-2); }
.doc .summary ul { margin-top: 0; }
.doc .summary li:first-child { margin-top: 0; }
.doc .summary li b { color: var(--amber-soft); }
.doc .back { display: flex; width: max-content; align-items: center; gap: 0.4em; margin-bottom: 2rem; font-size: 0.9375rem; color: var(--ink-2); text-decoration: none; }
.doc .back:hover { color: var(--mint-bright); }

/* ---------- Reveal on load (hero only; slow) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(10px); animation: rise 1.4s var(--ease-slow) forwards; }
  .rise:nth-child(1) { animation-delay: 0.05s; }
  .rise:nth-child(2) { animation-delay: 0.2s; }
  .rise:nth-child(3) { animation-delay: 0.35s; }
  .rise:nth-child(4) { animation-delay: 0.5s; }
  .rise:nth-child(5) { animation-delay: 0.65s; }
  .rise-phone { opacity: 0; animation: fade 2.2s var(--ease-slow) 0.4s forwards; }
  @keyframes rise { to { opacity: 1; transform: none; } }
  @keyframes fade { to { opacity: 1; } }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { order: 2; margin-top: 1rem; }
  .three { grid-template-columns: 1fr; gap: 0; }
  .thing { padding-inline: 0; }
  .thing:last-child { border-bottom: 1px solid var(--line-strong); }
  .exp-grid .phone { width: min(100%, 280px); }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .hero-rings { right: -60%; width: 170vw; opacity: 0.4; }
}
@media (max-width: 480px) {
  .dl { grid-template-columns: 1fr; gap: 0.15rem 0; }
  .dl dt { margin-top: 0.75rem; }
  .arc-labels { grid-template-columns: 1fr; text-align: left; }
  .arc-labels .mid, .arc-labels .end { text-align: left; }
}

@media print {
  body { background: #fff; color: #000; }
  .hero-rings { display: none; }
}
