/* TapeDeck marketing site: base, nav, buttons, the hero copy, phone frames and the overview.
   Structure and polish follow the LD Coda plug-in sites (aurorax/prismx); the identity is the app's own. */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--text-2); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: "cv11"; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--text); text-underline-offset: 3px; }
a:hover { color: #FFFFFF; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(242, 237, 228, .25); color: #FFFFFF; }
h1, h2, h3 { color: var(--text); font-weight: 600; letter-spacing: -.025em; line-height: 1.1; text-wrap: balance; }
p, li { text-wrap: pretty; }
strong { color: var(--text); font-weight: 600; }
.mono { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link {
  position: absolute; left: 12px; top: -64px; z-index: 300; padding: 10px 16px; border-radius: 10px;
  background: var(--text); color: var(--bg); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--bg); }

/* mono eyebrow with a short leading rule */
.label {
  display: inline-flex; align-items: center; gap: 10px; color: var(--text-2);
  font-family: var(--mono); font-size: .76rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
}
.label::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .7; }

/* glass on the warm graphite room */
.glass {
  position: relative; isolation: isolate; border: 1px solid rgba(242, 237, 228, .085);
  background: linear-gradient(180deg, rgba(242, 237, 228, .045), rgba(242, 237, 228, .012)), rgba(27, 26, 24, .6);
  -webkit-backdrop-filter: blur(16px) saturate(130%); backdrop-filter: blur(16px) saturate(130%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 30px 80px -44px rgba(0, 0, 0, .9);
}

/* ── Nav ─────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: rgba(18, 17, 16, .68); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(140%) blur(16px); backdrop-filter: saturate(140%) blur(16px);
}
.nav-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 650; letter-spacing: -.02em; color: var(--text); text-decoration: none; }
.wordmark:hover { color: var(--text); }
.wordmark svg { width: 30px; height: 30px; flex: none; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: .9rem; }
.nav-links a { position: relative; padding: 6px 0; color: var(--text-2); text-decoration: none; transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); }
.nav-links a[aria-current]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px;
  background: var(--text); box-shadow: 0 0 10px rgba(242, 237, 228, .55);
}

/* ── Buttons: warm off-white ink, never orange (orange means record) ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 24px;
  border-radius: 999px; font: inherit; font-size: .98rem; font-weight: 600; letter-spacing: -.01em; white-space: nowrap;
  text-decoration: none; cursor: pointer; border: 0;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s;
}
.btn-primary {
  color: var(--on-rec); background: linear-gradient(180deg, #FAF7F1, #E4DDD1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5), 0 12px 32px -14px rgba(242, 237, 228, .55), 0 0 44px -16px rgba(242, 237, 228, .45);
}
.btn-primary:hover {
  color: var(--on-rec); transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6), 0 16px 40px -12px rgba(242, 237, 228, .65), 0 0 60px -12px rgba(242, 237, 228, .5);
}
.btn-ghost { color: var(--text); background: rgba(242, 237, 228, .03); box-shadow: inset 0 0 0 1px var(--line-3); }
.btn-ghost:hover { color: var(--text); background: rgba(242, 237, 228, .08); box-shadow: inset 0 0 0 1px rgba(242, 237, 228, .36); }
.btn-sm { height: 38px; padding: 0 16px; font-size: .86rem; }
.btn .sep { opacity: .5; }
.btn svg { width: 16px; height: 16px; }

/* ── Hero copy (the stage and its tape are in motion.css) ── */
.hero-copy { position: relative; text-align: center; max-width: 920px; margin: 0 auto; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(18, 17, 16, .55);
  font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2);
}
.kicker .dot, .pill .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--text); flex: none;
  box-shadow: 0 0 0 4px rgba(242, 237, 228, .1), 0 0 12px rgba(242, 237, 228, .7);
}
html.motion .kicker .dot { animation: pulse 2.8s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(242, 237, 228, .03), 0 0 18px rgba(242, 237, 228, .4); } }
.hero h1 {
  margin-top: 20px; font-size: clamp(3.9rem, 11vw, 8rem); font-weight: 650; letter-spacing: -.055em; line-height: .95;
  text-shadow: 0 0 40px rgba(18, 17, 16, .85);
}
.hero h1 .deck { background: linear-gradient(180deg, #E8E2D8 10%, #A39D93 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin-top: 20px; font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 500; letter-spacing: -.025em; line-height: 1.22; color: var(--text); }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.hero-meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-top: 26px; list-style: none;
  font-family: var(--mono); font-size: .76rem; letter-spacing: .04em; color: var(--text-2);
}
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--wave); opacity: .8; }

/* ── Phone frames around real app screenshots ── */
.phone {
  position: relative; width: min(330px, 100%); margin-inline: auto; padding: 9px; border-radius: 48px;
  background: linear-gradient(155deg, #3B3733 0%, #1D1B19 46%, #282522 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), 0 50px 90px -42px rgba(0, 0, 0, .95), 0 18px 40px -22px rgba(0, 0, 0, .7);
}
.phone img { width: 100%; border-radius: 39px; background: var(--bg); }
.phone--paper {
  background: linear-gradient(155deg, #EFE8DC 0%, #D6CDBF 55%, #E4DCCF 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06), 0 50px 90px -46px rgba(60, 45, 30, .55), 0 18px 40px -24px rgba(60, 45, 30, .35);
}
.phone--paper img { background: var(--paper); }

/* framed crop of a real screen */
.frame {
  position: relative; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: var(--card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 50px 100px -48px rgba(0, 0, 0, .95), 0 24px 70px -50px rgba(207, 200, 188, .35);
}
.frame img { width: 100%; }
.frame::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), transparent 20%);
}

/* ── Overview: three real screens, a lead and the key numbers ── */
.overview { position: relative; z-index: 1; padding-top: clamp(24px, 4vw, 56px); }
.trio { position: relative; display: grid; grid-template-columns: 1fr 1.18fr 1fr; align-items: center; max-width: 980px; margin: 0 auto; }
.trio .phone--main { z-index: 2; width: min(340px, 100%); }
.trio .phone--side { width: min(270px, 100%); opacity: .92; }
.trio .phone--left { rotate: -5deg; translate: 18% 6%; }
.trio .phone--right { rotate: 5deg; translate: -18% 6%; }
.trio::before {
  content: ""; position: absolute; inset: 8% 14% 0; z-index: -1; filter: blur(80px); opacity: .9; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 45%, rgba(207, 200, 188, .16), transparent 70%);
}
.shots-note { margin-top: 26px; text-align: center; font-family: var(--mono); font-size: .74rem; letter-spacing: .05em; color: var(--muted); }
.overview-lead { max-width: 760px; margin: clamp(36px, 5vw, 60px) auto 0; text-align: center; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.5; color: #DDD7CD; letter-spacing: -.01em; }
.stats {
  display: grid; grid-template-columns: repeat(5, 1fr); margin-top: clamp(36px, 5vw, 56px); list-style: none;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(242, 237, 228, .035), rgba(242, 237, 228, .01));
}
.stats li { padding: 22px 24px; border-left: 1px solid var(--line); }
.stats li:first-child { border-left: 0; }
.stats .v { font-family: var(--mono); font-size: clamp(1.4rem, 2.3vw, 1.9rem); font-weight: 500; letter-spacing: -.03em; color: var(--text); line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stats .v small { margin-left: 4px; font-size: .55em; letter-spacing: 0; color: var(--text-2); }
.stats .k { margin-top: 6px; font-size: .86rem; line-height: 1.4; }

/* the nav and body type on small screens (shared with the privacy and contact pages) */
@media (max-width: 1080px) { .nav-links { gap: 20px; } }
@media (max-width: 920px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }
@media (max-width: 640px) { body { font-size: 16px; } .nav-inner { gap: 16px; } }
