/* ToneSketch site: dark navy, blue accent, to match the app's dark theme. */
:root {
  --bg: #0f1420;
  --bg2: #151b2b;
  --bg3: #1c2332;
  --ink: #f5f1e6;
  --muted: #a7b0c6;
  --faint: #6f7a93;
  --blue: #7c93ff;
  --blue-deep: #2b4fc4;
  --cream: #f5f1e6;
  --line: rgba(255, 255, 255, .09);
  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; letter-spacing: -.015em; margin: 0; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.4rem; letter-spacing: -.01em; }
em { font-style: normal; color: var(--blue); }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.eyebrow { font: 500 .78rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 18px; }
.eyebrow--dark { color: var(--blue-deep); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--muted); max-width: 60ch; margin-top: 20px; }
.fine { font-size: .86rem; color: var(--faint); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 28px; border-radius: 999px;
  background: var(--blue-deep); color: #fff; text-decoration: none; font: 600 1rem var(--body);
  box-shadow: 0 10px 30px -10px rgba(43, 79, 196, .9), inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn:hover { transform: translateY(-2px); background: #3560e0; box-shadow: 0 16px 36px -10px rgba(43, 79, 196, 1), inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn--ghost { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); }
.btn--ghost:hover { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22); }
.btn--small { min-height: 40px; padding: 0 20px; font-size: .92rem; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: 14px max(20px, calc((100vw - var(--wrap)) / 2)); transition: background .3s, backdrop-filter .3s, box-shadow .3s;
}
.nav.is-solid { background: rgba(15, 20, 32, .78); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.45rem var(--display); letter-spacing: -.02em; }
.brand b { color: var(--blue); font-weight: 800; }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a:not(.btn) { text-decoration: none; color: var(--muted); font-size: .95rem; transition: color .2s; }
.nav__links a:not(.btn):hover { color: var(--ink); }

/* ---------- phone frame ---------- */
.phone {
  --w: 280px; position: relative; margin: 0; width: var(--w); padding: calc(var(--w) * .034); border-radius: calc(var(--w) * .165);
  background: linear-gradient(150deg, #5a6584 0%, #262e42 35%, #151b2a 100%);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .2), 0 40px 80px -20px rgba(0, 0, 0, .7), 0 12px 30px -10px rgba(0, 0, 0, .5);
}
.phone::before { /* camera hole */
  content: ""; position: absolute; z-index: 3; top: calc(var(--w) * .062); left: 50%; width: calc(var(--w) * .034); aspect-ratio: 1; border-radius: 50%;
  transform: translateX(-50%); background: #05070c; box-shadow: 0 0 0 calc(var(--w) * .006) #1c2231;
}
.phone::after { /* power button */
  content: ""; position: absolute; right: -2.5px; top: 22%; width: 3px; height: 9%; border-radius: 0 3px 3px 0; background: #2a3248;
}
/* the screenshots start at the very top of the app, so a light status-bar strip above them carries the camera hole */
.phone { --bar: calc(var(--w) * .066); }
.phone__screen { position: relative; overflow: hidden; border-radius: calc(var(--w) * .135); padding-top: var(--bar); background: #111419; }
.phone__screen img { width: 100%; height: auto; }
.phone figcaption { position: absolute; left: 0; right: 0; bottom: -44px; text-align: center; font: 500 .8rem var(--mono); color: var(--faint); letter-spacing: .04em; }
.phone--land { width: var(--w); padding: calc(var(--w) * .02); border-radius: calc(var(--w) * .085); }
.phone--land::before { top: 50%; left: calc(var(--w) * .033); transform: translateY(-50%); width: calc(var(--w) * .02); }
.phone--land::after { right: auto; top: -2.5px; left: 22%; width: 9%; height: 3px; border-radius: 3px 3px 0 0; }
.phone--land { --bar: 0px; }
.phone--land .phone__screen { border-radius: calc(var(--w) * .07); }
.phone--crop { margin-bottom: 0; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px;
  padding: 120px max(24px, calc((100vw - var(--wrap)) / 2)) 80px;
  background:
    radial-gradient(60% 55% at 78% 40%, rgba(124, 147, 255, .20), transparent 70%),
    radial-gradient(40% 40% at 8% 90%, rgba(124, 147, 255, .1), transparent 70%), var(--bg);
  overflow: hidden;
}
.hero__wave { position: absolute; left: 0; right: 0; bottom: 6%; width: 100%; height: 36%; opacity: .55; pointer-events: none; }
.hero__wave path { fill: none; stroke: var(--blue); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 3.2s .5s var(--ease) forwards; vector-effect: non-scaling-stroke; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero__copy { position: relative; z-index: 2; }
.hero h1 { margin-bottom: 26px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 18px; }
.hero__phones { position: relative; z-index: 2; height: min(78vh, 640px); display: flex; justify-content: center; align-items: center; }
.hero__phones .phone { position: absolute; }
.phone--back { transform: translate(-96px, 34px) rotate(-6deg); opacity: .96; }
.phone--front { transform: translate(86px, -10px) rotate(4deg); }
.scrollcue { position: absolute; z-index: 3; left: 50%; bottom: 22px; width: 26px; height: 44px; border: 2px solid var(--faint); border-radius: 14px; transform: translateX(-50%); opacity: .7; }
.scrollcue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--muted); animation: cue 1.8s infinite var(--ease); }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 12vw, 150px) max(24px, calc((100vw - var(--wrap)) / 2)); position: relative; }
.section__head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 80px); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: linear-gradient(180deg, var(--bg3), var(--bg2)); border: 1px solid var(--line); border-radius: 28px; padding: 34px 30px 36px; overflow: hidden; transition: transform .4s var(--ease), border-color .4s; }
.card:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, .2); }
.card__shot { height: 250px; overflow: hidden; margin: -10px -6px 24px; display: flex; justify-content: center; mask-image: linear-gradient(#000 70%, transparent); -webkit-mask-image: linear-gradient(#000 70%, transparent); }
.card__shot .phone { transform: translateY(14px); transition: transform .5s var(--ease); }
.card:hover .card__shot .phone { transform: translateY(0) scale(1.03); }
.card p { color: var(--muted); margin-top: 12px; }
.tag { display: inline-block; padding: 6px 14px; border-radius: 999px; font: 500 .8rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.tag--blue { background: rgba(124, 147, 255, .16); color: var(--blue); }
.tag--cream { background: rgba(245, 241, 230, .12); color: var(--cream); }
.tag--grey { background: rgba(167, 176, 198, .14); color: var(--muted); }

/* story (sticky phone + steps) */
.story { background: linear-gradient(180deg, var(--bg), var(--bg2) 40%, var(--bg)); }
.story__layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.phone--stage { --w: min(320px, 36vh); }
.story__stage { position: sticky; top: 12vh; height: 76vh; display: flex; align-items: center; justify-content: center; }
.story__shots::after { content: ""; display: block; padding-top: calc(100% * 2742 / 1233); }
.story__shots img { position: absolute; inset: var(--bar) 0 0 0; height: calc(100% - var(--bar)); object-fit: cover; opacity: 0; transform: scale(1.03); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.story__shots img.is-active { opacity: 1; transform: scale(1); }
.story__steps { list-style: none; margin: 0; padding: 0; }
.step { min-height: 76vh; display: flex; flex-direction: column; justify-content: center; opacity: .32; transition: opacity .5s var(--ease); max-width: 480px; }
.step.is-active { opacity: 1; }
.step__n { font: 500 .9rem var(--mono); color: var(--blue); letter-spacing: .12em; margin-bottom: 14px; }
.step p { color: var(--muted); margin-top: 14px; }
.phone--inline { display: none; }

/* sound */
.sound { overflow: hidden; }
.sound__phones { display: flex; justify-content: center; align-items: flex-start; flex-wrap: wrap; gap: 50px 40px; padding-bottom: 60px; }
.phone--lift { margin-top: -30px; }
.sound .phone--land { margin-top: 60px; }
.ticks { list-style: none; margin: 56px auto 0; padding: 0; max-width: 840px; display: grid; gap: 16px 40px; grid-template-columns: 1fr 1fr; }
.ticks li { position: relative; padding: 20px 22px 20px 54px; background: var(--bg2); border: 1px solid var(--line); border-radius: 18px; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 22px; top: 26px; width: 14px; height: 14px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 5px rgba(124, 147, 255, .18); }
.ticks b { color: var(--ink); font-weight: 600; }
.ticks--tight { grid-template-columns: 1fr; margin: 34px 0 0; gap: 10px; max-width: 560px; }
.ticks--tight li { padding: 14px 18px 14px 48px; border-radius: 14px; }
.ticks--tight li::before { top: 20px; left: 18px; }

/* alarms / share */
.alarms { background: radial-gradient(50% 60% at 85% 50%, rgba(124, 147, 255, .08), transparent 70%); }
.alarms__layout, .share__layout { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.alarms__phones { position: relative; height: 640px; display: flex; justify-content: center; }
.alarms__phones .phone { position: absolute; }
.phone--tilt-l { transform: translate(-80px, 0) rotate(-5deg); }
.phone--tilt-r { transform: translate(110px, 70px) rotate(5deg); }
.share__layout { grid-template-columns: .8fr 1.2fr; }
.share__layout .phone { justify-self: center; }
.share .ticks { margin: 30px 0 0; grid-template-columns: 1fr; gap: 12px; }

/* band */
.band { padding: clamp(70px, 10vw, 120px) 24px; text-align: center; background: linear-gradient(120deg, var(--blue-deep), #1c2f7a 60%, #12183a); }
.band__inner { max-width: 720px; margin: auto; }
.band p { color: #d5dbf5; font-size: clamp(1.1rem, 2vw, 1.4rem); margin-top: 18px; }


/* footer */
.footer { padding: 60px 24px 70px; text-align: center; background: var(--bg); display: grid; gap: 10px; justify-items: center; }
.footer img { border-radius: 10px; }

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 110px; text-align: left; }
  .hero__phones { height: 520px; }
  .phone--back { transform: translate(-70px, 30px) rotate(-6deg); }
  .phone--front { transform: translate(66px, -6px) rotate(4deg); }
  .cards { grid-template-columns: 1fr; max-width: 560px; }
  .story__stage { display: none; }
  .story__layout { grid-template-columns: 1fr; }
  .step { min-height: auto; opacity: 1; padding: 36px 0; max-width: none; }
  .phone--inline { display: block; margin: 28px auto 0; }
  .alarms__layout, .share__layout { grid-template-columns: 1fr; gap: 50px; }
  .alarms__phones { height: 560px; order: 2; }
  .ticks { grid-template-columns: 1fr; }
  .nav__links a:not(.btn) { display: none; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero__phones { height: 440px; }
  .hero__phones .phone { --w: 200px !important; }
  .phone--back { transform: translate(-56px, 26px) rotate(-6deg); }
  .phone--front { transform: translate(52px, -4px) rotate(4deg); }
  .sound .phone--land { --w: min(340px, 86vw) !important; }
  .alarms__phones .phone { --w: 210px !important; }
  .phone--tilt-l { transform: translate(-56px, 0) rotate(-5deg); }
  .phone--tilt-r { transform: translate(70px, 60px) rotate(5deg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero__wave path { animation: none; stroke-dashoffset: 0; }
  .scrollcue span { animation: none; opacity: 1; }
  .story__shots img { transition: none; }
}

/* ---------- text pages (privacy policy) ---------- */
.doc { max-width: 720px; margin: 0 auto; padding: 130px 24px 70px; }
.doc h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 8px; }
.doc h2 { font-size: 1.35rem; margin: 40px 0 10px; }
.doc p, .doc li { color: var(--muted); }
.doc ul { padding-left: 20px; }
.doc li { margin: 10px 0; }
.doc b { color: var(--ink); font-weight: 600; }
.doc a, .footer a { color: var(--blue); }
