/* ------------------------------------------------------------------ *
   Notchy — landing page. Canopy-inspired: cream canvas, huge type,
   real device shots + lock-screen video, one clean pricing card.
 * ------------------------------------------------------------------ */

:root {
  --bg:        #F3F1EA;
  --bg-soft:   #EDEAE1;
  --card:      #FBFAF6;
  --ink:       #16151A;
  --ink-soft:  #3A3944;
  --mut:       #7A7885;
  --line:      rgba(20,18,30,.09);
  --dark:      #17161B;
  --radius:    26px;
  --shadow:    0 30px 70px -30px rgba(30,26,50,.35);
  --shadow-sm: 0 14px 34px -18px rgba(30,26,50,.3);
  --maxw:      1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ----------------------------------------------------------- NAV -- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 54px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 9px;
  font-weight: 900; font-size: 17px; color: #fff;
  background: linear-gradient(150deg, #7B6CFF, #9C8BFF 55%, #6D5CE0);
  box-shadow: 0 4px 12px -3px rgba(108,92,231,.6), inset 0 1px 0 rgba(255,255,255,.4);
}
.brand-word { font-weight: 800; font-size: 20px; letter-spacing: -.02em; }

/* Caveat script wordmark — the real Notchy logo */
.wordmark {
  font-family: 'Caveat', cursive; font-weight: 700;
  font-size: 34px; line-height: 1; white-space: nowrap;
  display: inline-block; letter-spacing: 0;
}
.wordmark .wm-ink    { color: var(--ink); }
.wordmark .wm-accent { color: #6C5CE7; }
.wordmark-sm { font-size: 26px; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a:not(.pill-btn) {
  padding: 8px 14px; border-radius: 11px;
  font-weight: 600; font-size: 14px; color: var(--ink-soft);
  background: rgba(20,18,30,.05);
}
.nav-links a:not(.pill-btn):hover { background: rgba(20,18,30,.09); }
.pill-btn {
  padding: 9px 18px; border-radius: 12px;
  font-weight: 700; font-size: 14px; color: #fff;
  background: var(--dark);
}
.pill-btn:hover { transform: translateY(-1px); }

/* ---------------------------------------------------------- HERO -- */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(48px, 9vw, 110px) clamp(20px, 5vw, 40px) 40px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(48px, 11vw, 132px);
  font-weight: 800; letter-spacing: -.045em; line-height: .94;
}
.hero h1 .muted { color: #B8B5AC; }
.hero-sub {
  max-width: 620px; margin: 26px auto 0;
  font-size: clamp(16px, 2.1vw, 21px); font-weight: 500; color: var(--mut);
}

.hero-stage {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 34px);
  margin: clamp(40px, 7vw, 76px) auto 0; max-width: 1080px;
}
.device {
  position: relative; border-radius: 20px; overflow: hidden;
  background: var(--card); box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.device img { width: 100%; height: 100%; object-fit: cover; }
.device figcaption, .screen figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 16px 12px; font-size: 13px; font-weight: 600; color: #fff;
  text-align: center;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
}

.hero-cta { display: flex; gap: 12px; justify-content: center; margin-top: clamp(34px, 6vw, 58px); }

/* --------------------------------------------------------- BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 30px; border-radius: 14px;
  font-weight: 700; font-size: 15.5px; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-dark  { background: var(--dark); color: #fff; box-shadow: var(--shadow-sm); }
.btn-soft  { background: rgba(20,18,30,.07); color: var(--ink); }
.btn-soft:hover { background: rgba(20,18,30,.11); }
.btn-block { display: flex; width: 100%; }

/* -------------------------------------------------------- FEATURES */
.feature {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(60px, 11vw, 130px) clamp(20px, 5vw, 40px);
}

.feature-head { margin-bottom: clamp(28px, 5vw, 52px); max-width: 760px; }
.feature-head h2 { margin-bottom: 14px; }
.feature-lede b { font-size: clamp(19px, 2.4vw, 24px); font-weight: 700; }
.feature-lede p { margin-top: 10px; font-size: clamp(15px, 1.9vw, 18px); color: var(--mut); font-weight: 500; max-width: 560px; }

/* big section titles, coloured like Canopy */
.feature h2, .feature-copy h2 {
  font-size: clamp(40px, 7.5vw, 92px);
  font-weight: 800; letter-spacing: -.04em; line-height: 1.05;
}
/* clip:text gradients cut descenders (y, p, g) when the box is tight — give the glyphs
   vertical breathing room with inline-block + padding so nothing gets sheared off. */
.grad-blue, .grad-purple, .grad-cyan, .grad-green, .grad-warm {
  display: inline-block; padding-bottom: .12em;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.grad-blue   { background-image: linear-gradient(100deg,#3E6DF0,#8FB4FF); }
.grad-purple { background-image: linear-gradient(100deg,#6C5CE7,#B4A6FF); }
.grad-cyan   { background-image: linear-gradient(100deg,#17B6C9,#7FE3E0); }
.grad-green  { background-image: linear-gradient(100deg,#1FB673,#8DE0A8); }
.grad-warm   { background-image: linear-gradient(100deg,#F0A24E,#F58EA0 55%,#B79BF5); }

.tag {
  display: inline-block; vertical-align: middle;
  margin-left: 6px; padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: .04em; color: var(--ink-soft);
  background: rgba(20,18,30,.08);
}

/* two-column feature rows */
.feature-split {
  display: grid; grid-template-columns: 1fr 1.15fr;
  gap: clamp(28px, 6vw, 80px); align-items: center;
}
.feature-split.reverse { grid-template-columns: 1.15fr 1fr; }
.feature-split.reverse .feature-copy { order: 2; }
.feature-copy b { display: block; font-size: clamp(18px, 2.3vw, 23px); font-weight: 700; margin: 16px 0 10px; }
.feature-copy p { font-size: clamp(15px, 1.9vw, 18px); color: var(--mut); font-weight: 500; max-width: 460px; }

/* lock-screen video frames */
.screen {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: #0d0d10; box-shadow: var(--shadow); border: 1px solid var(--line);
}
.screen video { width: 100%; height: 100%; object-fit: cover; }
.screen-lg { max-width: 980px; margin: 0 auto; aspect-ratio: 16 / 10; }
.screen-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2.5vw, 26px);
  margin-top: clamp(20px, 4vw, 40px);
}
.screen-row .screen { aspect-ratio: 16 / 10; }
.device.sm { aspect-ratio: 16 / 9; }

/* lock-screen shuffle control */
.ls-controls {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-top: clamp(18px, 3vw, 30px); flex-wrap: wrap;
}
.shuffle-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 20px; border: 0; border-radius: 999px; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: 14.5px; color: #fff;
  background: var(--dark); box-shadow: var(--shadow-sm);
  transition: transform .15s ease, background .15s ease;
}
.shuffle-btn:hover { transform: translateY(-2px); }
.shuffle-btn:active { transform: translateY(0); }
.shuffle-btn svg { transition: transform .4s ease; }
.shuffle-btn.spin svg { transform: rotate(180deg); }
.ls-current {
  /* Fixed width so swapping the label (Split / Immersive / Cover) never nudges
     the shuffle button left or right. */
  width: 116px; justify-content: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--mut);
}
.ls-current i {
  width: 9px; height: 9px; border-radius: 999px;
  background: linear-gradient(120deg,#6C5CE7,#B4A6FF);
}

/* --------------------------------------------------------- PRICING */
.pricing {
  padding: clamp(50px, 9vw, 120px) 20px;
  display: grid; place-items: center;
}
.price-card {
  width: min(420px, 92vw); text-align: center;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 30px; padding: 40px 34px 30px;
  box-shadow: var(--shadow);
}
.price-mark {
  width: 62px; height: 62px; border-radius: 18px; font-size: 34px; margin: 0 auto 16px;
}
.price-word { margin: 0 auto 6px; font-size: 40px; }
.price-name { font-size: 13px; font-weight: 800; letter-spacing: .22em; color: var(--mut); }

/* monthly / yearly switch */
.price-toggle {
  display: inline-flex; margin: 4px auto 18px; padding: 4px;
  background: rgba(20,18,30,.06); border-radius: 999px; gap: 2px;
}
.price-toggle button {
  display: inline-flex; align-items: center; gap: 7px;
  border: 0; cursor: pointer; font-family: inherit;
  padding: 8px 18px; border-radius: 999px;
  font-weight: 700; font-size: 14px; color: var(--mut); background: transparent;
  transition: background .15s ease, color .15s ease;
}
.price-toggle button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.price-toggle .save {
  padding: 2px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 800;
  letter-spacing: .02em; color: #1FB673; background: rgba(31,182,115,.14);
}
.price-amt { margin-top: 8px; font-size: clamp(52px, 12vw, 76px); font-weight: 900; letter-spacing: -.04em; }
.price-amt span { font-size: 20px; font-weight: 600; color: var(--mut); letter-spacing: 0; }
.price-note { margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--mut); }
.price-tag { margin: 20px 0 24px; font-size: 16px; font-weight: 700; }
.price-card .btn { margin-bottom: 10px; }
.price-foot { margin-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--mut); }

/* ---------------------------------------------------------- FOOTER */
.footer {
  border-top: 1px solid var(--line);
  max-width: var(--maxw); margin: 0 auto;
  padding: 40px clamp(20px, 5vw, 40px);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px;
}
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand .brand-word { font-size: 18px; }
.foot-links { display: flex; gap: 20px; }
.foot-links a { font-size: 14px; font-weight: 600; color: var(--mut); }
.foot-links a:hover { color: var(--ink); }
.foot-copy { font-size: 13px; color: var(--mut); width: 100%; text-align: center; padding-top: 8px; }

/* ----------------------------------------------- SCROLL REVEALS -- */
/* Canopy-style: elements fade + rise into place as they scroll in. The
   .in class is added by the IntersectionObserver in app.js. */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(6px);
  transition: opacity .8s cubic-bezier(.16,.84,.34,1),
              transform .8s cubic-bezier(.16,.84,.34,1),
              filter .8s cubic-bezier(.16,.84,.34,1);
  will-change: opacity, transform, filter;
}
.reveal.in {
  opacity: 1;
  transform: none;
  filter: none;
}
/* device/screen frames get a touch more travel + scale for depth */
.device.reveal, .screen.reveal, .price-card.reveal {
  transform: translateY(40px) scale(.97);
}
.device.reveal.in, .screen.reveal.in, .price-card.reveal.in {
  transform: none;
}

/* Hover life: cards gently lift and brighten their shadow. */
.device, .screen, .price-card {
  transition: transform .5s cubic-bezier(.16,.84,.34,1),
              box-shadow .5s cubic-bezier(.16,.84,.34,1);
}
.device:hover, .screen:hover {
  transform: translateY(-8px);
  box-shadow: 0 44px 90px -34px rgba(30,26,50,.5);
}
.price-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 44px 90px -30px rgba(30,26,50,.42);
}

/* Living gradient on the big section headlines. */
.grad-blue, .grad-purple, .grad-cyan, .grad-green, .grad-warm {
  background-size: 200% auto;
  animation: gradShift 7s ease-in-out infinite alternate;
}
@keyframes gradShift {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}

/* Hero device shots breathe with a slow float (staggered so they don't sync). */
.hero-stage .device {
  animation: floatY 7s ease-in-out infinite;
}
.hero-stage .device:nth-child(2) { animation-delay: -3.5s; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
/* pause the float while hovering so the lift reads cleanly */
.hero-stage .device:hover { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; filter: none !important; transition: none; }
  .grad-blue, .grad-purple, .grad-cyan, .grad-green, .grad-warm,
  .hero-stage .device { animation: none; }
}

/* -------------------------------------------------- LEGAL / PROSE -- */
.legal {
  max-width: 720px; margin: 0 auto;
  padding: clamp(56px, 10vw, 110px) clamp(20px, 5vw, 40px) 40px;
}
.legal .eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: #6C5CE7;
}
.legal h1 { font-size: clamp(38px, 7vw, 68px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.legal .upd { margin: 12px 0 30px; color: var(--mut); font-size: 14px; font-weight: 500; }
.legal h3 { margin: 34px 0 10px; font-size: clamp(19px, 2.3vw, 23px); font-weight: 800; letter-spacing: -.02em; }
.legal p { color: var(--ink-soft); font-size: 16px; margin-bottom: 8px; }
.legal a { color: #6C5CE7; font-weight: 600; }
.legal ul { margin: 10px 0 8px; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.legal li {
  position: relative; padding-left: 26px; color: var(--ink-soft); font-size: 15.5px;
}
.legal li::before {
  content: ""; position: absolute; left: 4px; top: 10px;
  width: 7px; height: 7px; border-radius: 999px;
  background: linear-gradient(120deg,#6C5CE7,#B4A6FF);
}
.legal li b { color: var(--ink); }

/* -------------------------------------------------- RECOVER FORM -- */
.recover {
  max-width: 520px; margin: 0 auto; text-align: center;
  padding: clamp(60px, 11vw, 120px) clamp(20px, 5vw, 40px) 40px;
}
.recover .eyebrow {
  display: inline-block; margin-bottom: 16px; padding: 6px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: .04em;
  color: #6C5CE7; background: rgba(108,92,231,.1);
}
.recover h1 { font-size: clamp(40px, 8vw, 76px); font-weight: 800; letter-spacing: -.045em; line-height: .96; }
.recover .sub { max-width: 400px; margin: 20px auto 0; font-size: clamp(15px, 2vw, 18px); font-weight: 500; color: var(--mut); }
.recover-form { display: flex; flex-direction: column; gap: 12px; max-width: 380px; margin: 34px auto 0; }
.recover-form input {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 15px 18px; color: var(--ink); font-size: 15.5px; font-family: inherit; text-align: center;
}
.recover-form input::placeholder { color: var(--mut); }
.recover-form input:focus { outline: none; border-color: #6C5CE7; box-shadow: 0 0 0 4px rgba(108,92,231,.12); }
.recover-note { margin-top: 18px; font-size: 13.5px; font-weight: 500; color: var(--mut); }
.recover-note a { color: #6C5CE7; font-weight: 600; }

/* ------------------------------------------------------ RESPONSIVE */
@media (max-width: 760px) {
  .hero-stage { grid-template-columns: 1fr; max-width: 100%; }
  .feature-split, .feature-split.reverse { grid-template-columns: 1fr; }
  .feature-split.reverse .feature-copy { order: 0; }
  .screen-row { grid-template-columns: 1fr; }
  .nav-links a:not(.pill-btn) { display: none; }
  .hero h1 { font-size: clamp(30px, 8.4vw, 60px); letter-spacing: -.03em; }
}
