:root {
  --paper: #f7f5f0;
  --paper-deep: #eeebe4;
  --ink: #232126;
  --muted: #6f6a72;
  --hairline: rgba(35, 33, 38, 0.16);
  --purple: #7357d6;
  --purple-hover: #6246c7;
  --violet: #8b72e8;
  --violet-bright: #9c86f2;
  --violet-soft: rgba(115, 87, 214, 0.1);
  --lavender: #efeaf8;
  --lavender-deep: #e2d9f3;
  --night: #0a0a0d;
  --night-surface: #121217;
  --night-line: rgba(255, 255, 255, 0.16);
  --white: #fffefb;
  --font-editorial: "Cormorant Garamond", Georgia, serif;
  --font-brand: "Marcellus", Georgia, serif;
  --font-heading: Aptos, "Segoe UI Variable", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: Aptos, "Segoe UI Variable", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  --shell: min(1200px, calc(100vw - 48px));
  --section-space: clamp(6rem, 11vw, 10.5rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  scrollbar-color: rgba(35, 33, 38, 0.28) transparent;
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--paper);
}

::-webkit-scrollbar-thumb {
  background: rgba(35, 33, 38, 0.2);
  border: 3px solid var(--paper);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(115, 87, 214, 0.5);
}

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

body::before {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  content: "";
  opacity: 0.13;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}

::selection {
  color: var(--white);
  background: var(--purple);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.section {
  padding-block: var(--section-space);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  color: var(--white);
  background: var(--purple);
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 4px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  border-bottom: 1px solid transparent;
  transition: background 320ms ease, border-color 320ms ease;
  animation: header-in 700ms cubic-bezier(0.22, 1, 0.36, 1) 60ms both;
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  border-bottom-color: var(--hairline);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
}

@keyframes header-in {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-inner {
  height: 98px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand-mark > span {
  font-family: var(--font-brand);
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  line-height: 1;
}

.instagram-link {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.instagram-link:hover {
  color: var(--purple);
  border-color: var(--hairline);
  transform: translateY(-2px);
}

.instagram-link svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.instagram-link .icon-fill {
  fill: currentColor;
  stroke: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}

.site-nav a:hover {
  color: var(--ink);
  background: rgba(35, 33, 38, 0.05);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-cta {
  display: inline-flex;
  height: 38px;
  align-items: center;
  padding: 0 17px;
  color: var(--purple);
  background: var(--violet-soft);
  border: 1px solid rgba(115, 87, 214, 0.32);
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.nav-cta:hover {
  color: #fff;
  background: var(--purple);
  border-color: var(--purple);
  transform: translateY(-1px);
}

.page-thread {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 30;
  display: none;
  width: 64px;
  pointer-events: none;
}

.page-thread path {
  fill: none;
  stroke: rgba(115, 87, 214, 0.55);
  stroke-width: 1.6;
  stroke-linecap: round;
}

@media (min-width: 1300px) {
  .page-thread { display: block; }
}

.hero {
  position: relative;
  min-height: 800px;
  padding: 158px 0 100px;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
}

.hero::before {
  position: absolute;
  inset: -24% -30% auto;
  height: 920px;
  content: "";
  background: radial-gradient(ellipse 58% 54% at 50% 24%, rgba(139, 114, 232, 0.1), transparent 68%);
  pointer-events: none;
}

.hero-copy > * {
  animation: hero-in 950ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-copy > *:nth-child(1) { animation-delay: 120ms; }
.hero-copy > *:nth-child(2) { animation-delay: 260ms; }
.hero-copy > *:nth-child(3) { animation-delay: 420ms; }

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(26px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(350px, 0.98fr);
  gap: clamp(3rem, 6vw, 6.5rem);
  align-items: center;
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 1.8rem;
  color: var(--purple);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero h1,
.devices h2,
.final-cta h2 {
  margin: 0;
  font-family: var(--font-editorial);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.92;
  text-wrap: balance;
}

.philosophy-copy h2,
.benefits-heading h2,
.privacy h2 {
  text-wrap: balance;
}

.hero h1 {
  font-size: clamp(3.4rem, 5.6vw, 5.6rem);
}

h1 em,
h2 em {
  color: var(--purple);
  font-weight: 500;
}

.hero h1 em {
  padding-bottom: 0.1em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9 C 45 3, 75 13, 120 8 S 195 2, 240 8 S 315 13, 357 6' fill='none' stroke='%237357d6' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0 96%;
  background-size: 0% 0.16em;
  animation: ink-underline 900ms cubic-bezier(0.65, 0, 0.35, 1) 1.05s both;
}

@keyframes ink-underline {
  from { background-size: 0% 0.16em; }
  to { background-size: 100% 0.16em; }
}

.hero-intro {
  max-width: 560px;
  margin: 2.1rem 0 2.2rem;
  color: #4f4b52;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.75;
}

.hero-intro span {
  display: inline-block;
  margin-top: 1rem;
  color: var(--purple);
  font-family: var(--font-editorial);
  font-size: calc(1.16em + 2px);
  font-style: italic;
}

.hero .signup-form {
  max-width: 540px;
  margin-inline: 0;
}

.hero .form-message {
  padding-left: 28px;
  text-align: left;
}

.signup-form {
  max-width: 620px;
  margin-inline: auto;
}

.form-row {
  display: flex;
  padding: 5px;
  background: var(--white);
  border: 1px solid rgba(35, 33, 38, 0.23);
  border-radius: 999px;
  box-shadow: 0 20px 60px -12px rgba(32, 26, 44, 0.12);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.form-row:focus-within {
  border-color: var(--purple);
  box-shadow: 0 20px 60px -12px rgba(115, 87, 214, 0.22);
}

.signup-form input {
  min-width: 0;
  flex: 1;
  padding: 0 22px;
  color: var(--ink);
  caret-color: var(--purple);
  background: transparent;
  border: 0;
  outline: 0;
}

.signup-form input::placeholder {
  color: var(--muted);
}

.signup-form button {
  position: relative;
  min-width: 176px;
  min-height: 48px;
  padding: 0 26px;
  overflow: hidden;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--purple);
  border: 0;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 2px 12px rgba(115, 87, 214, 0.28);
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease, box-shadow 220ms ease;
}

.signup-form button:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 10px 28px rgba(115, 87, 214, 0.38);
}

.signup-form button::before {
  position: absolute;
  inset: 0;
  content: "";
  background: var(--purple-hover);
  transform: translateX(-102%);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.signup-form button:hover::before {
  transform: translateX(0);
}

.signup-form button:active {
  transform: scale(0.985);
}

.button-label,
.button-loader {
  position: relative;
  z-index: 1;
}

.button-loader {
  display: none;
  width: 18px;
  height: 18px;
  margin: auto;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.signup-form.is-loading .button-label {
  display: none;
}

.signup-form.is-loading .button-loader {
  display: block;
}

.signup-form.is-loading button,
.signup-form.is-success button {
  pointer-events: none;
}

.signup-form.is-success .form-row {
  border-color: rgba(68, 117, 82, 0.55);
}

.signup-form.is-success button {
  background: #447552;
}

.signup-form.has-error .form-row {
  border-color: #a94c59;
  box-shadow: 0 12px 40px rgba(169, 76, 89, 0.08);
}

.form-message {
  min-height: 1.45em;
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.74rem;
  text-align: center;
}

.signup-form.has-error .form-message {
  color: #913b49;
}

.signup-form.is-success .form-message {
  color: #376544;
  font-weight: 500;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Live pattern demo — the product's promise, dramatized */
.hero-demo {
  position: relative;
  padding: 20px 22px 18px;
  background: var(--white);
  border: 1px solid rgba(35, 33, 38, 0.14);
  border-radius: 20px;
  box-shadow: 0 30px 70px -18px rgba(50, 38, 76, 0.22);
  transform: rotate(1.2deg);
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 500ms ease;
  animation: demo-in 1000ms cubic-bezier(0.22, 1, 0.36, 1) 560ms both;
}

.hero-demo:hover {
  transform: rotate(0.2deg);
  box-shadow: 0 36px 80px -18px rgba(50, 38, 76, 0.3);
}

@keyframes demo-in {
  from { opacity: 0; filter: blur(10px); }
  to { opacity: 1; filter: blur(0); }
}

.demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.demo-title {
  color: var(--muted);
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.demo-spark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--purple);
  font-family: var(--font-heading);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  animation: demo-badge 600ms cubic-bezier(0.22, 1, 0.36, 1) 2.3s both;
}

.demo-spark i {
  font-style: normal;
}

@keyframes demo-badge {
  from { opacity: 0; transform: translateY(6px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.demo-entries {
  margin: 0;
  padding: 0;
  list-style: none;
}

.demo-entries li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding: 11px 0;
}

.demo-entries li + li {
  border-top: 1px solid var(--hairline);
}

.demo-date {
  padding-top: 4px;
  color: #9a95a0;
  font-family: var(--font-heading);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.demo-entries p {
  margin: 0;
  color: #3a3640;
  font-family: var(--font-editorial);
  font-size: 1.06rem;
  line-height: 1.5;
}

.t {
  padding: 0 2px;
  border-radius: 4px;
  font-style: normal;
  box-shadow: inset 0 -0.46em 0 0 transparent;
  transition: opacity 250ms ease;
  animation: t-on 700ms ease both;
}

.t[data-theme="sleep"] { --mark: rgba(139, 114, 232, 0.4); --ink: #5b3fb8; --soft: rgba(139, 114, 232, 0.14); animation-delay: 1.2s; }
.t[data-theme="work"] { --mark: rgba(240, 178, 94, 0.45); --ink: #996a15; --soft: rgba(240, 178, 94, 0.16); animation-delay: 1.55s; }
.t[data-theme="mom"] { --mark: rgba(140, 227, 151, 0.5); --ink: #2f7a44; --soft: rgba(140, 227, 151, 0.18); animation-delay: 1.9s; }

@keyframes t-on {
  from { box-shadow: inset 0 -0.46em 0 0 transparent; }
  to { box-shadow: inset 0 -0.46em 0 0 var(--mark); }
}

.hero-demo[data-focus] .t {
  opacity: 0.3;
}

.hero-demo[data-focus="sleep"] .t[data-theme="sleep"],
.hero-demo[data-focus="work"] .t[data-theme="work"],
.hero-demo[data-focus="mom"] .t[data-theme="mom"] {
  opacity: 1;
}

.demo-themes {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
}

.demo-theme {
  padding: 4px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ink);
  background: var(--soft);
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: default;
  transition: border-color 180ms ease, transform 180ms ease;
  animation: pill-in 500ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.demo-theme[data-theme="sleep"] { --mark: rgba(139, 114, 232, 0.4); --ink: #5b3fb8; --soft: rgba(139, 114, 232, 0.14); animation-delay: 1.35s; }
.demo-theme[data-theme="work"] { --mark: rgba(240, 178, 94, 0.45); --ink: #996a15; --soft: rgba(240, 178, 94, 0.16); animation-delay: 1.7s; }
.demo-theme[data-theme="mom"] { --mark: rgba(140, 227, 151, 0.5); --ink: #2f7a44; --soft: rgba(140, 227, 151, 0.18); animation-delay: 2.05s; }

.demo-theme:hover {
  border-color: color-mix(in srgb, var(--ink) 35%, transparent);
  transform: translateY(-1px);
}

@keyframes pill-in {
  from { opacity: 0; transform: translateY(8px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.scroll-note {
  position: absolute;
  bottom: 34px;
  left: max(24px, calc((100vw - 1200px) / 2));
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-family: var(--font-heading);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
  animation: hero-in 900ms cubic-bezier(0.22, 1, 0.36, 1) 700ms both;
}

.scroll-note i {
  width: 58px;
  border-top: 1px solid currentColor;
  transform: scaleX(0.69);
  transform-origin: left center;
  transition: transform 200ms ease;
}

.scroll-note:hover i { transform: scaleX(1); }

.philosophy {
  background: var(--white);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 130px minmax(0, 820px);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.section-index {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-family: var(--font-heading);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.section-index i {
  width: 24px;
  border-top: 1px solid var(--hairline);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1) 320ms;
}

.reveal.is-visible .section-index i,
.section-index.reveal.is-visible i {
  transform: scaleX(1);
}

.philosophy-copy h2 {
  max-width: 720px;
  margin: -0.15em 0 2.1rem;
  font-family: var(--font-editorial);
  font-size: clamp(2.9rem, 5vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.philosophy-copy h2 em {
  display: inline-block;
  margin-top: 0.2em;
}

.philosophy-copy > p {
  max-width: 590px;
  margin: 0;
  color: #575259;
  font-size: 1.05rem;
  line-height: 1.82;
}

.philosophy-copy > p::first-letter {
  float: left;
  padding: 0.08em 0.14em 0 0;
  color: var(--purple);
  font-family: var(--font-editorial);
  font-size: 3.2em;
  font-style: italic;
  line-height: 0.78;
}

.benefits {
  padding-bottom: calc(var(--section-space) * 0.85);
  background: var(--paper-deep);
}

.benefits-heading {
  display: grid;
  grid-template-columns: minmax(200px, 0.45fr) minmax(0, 1fr);
  align-items: end;
  margin-bottom: clamp(4rem, 7vw, 6rem);
}

.benefits-heading h2 {
  margin: 0;
  font-family: var(--font-editorial);
  font-size: clamp(3rem, 5vw, 5.2rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.benefit-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 340px));
  justify-content: center;
  gap: clamp(14px, 2vw, 24px);
}

.benefit {
  position: relative;
  min-height: 350px;
  padding: 24px clamp(1.25rem, 2.4vw, 2.4rem) 24px;
  background: rgba(255, 254, 251, 0.8);
  border: 1px solid rgba(35, 33, 38, 0.14);
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(53, 44, 59, 0.035);
  transition: box-shadow 240ms ease, transform 240ms ease;
}

.benefit:hover {
  border-color: rgba(115, 87, 214, 0.38);
  box-shadow: 0 24px 48px -12px rgba(53, 44, 59, 0.14);
  transform: translateY(-4px);
}

.benefit:nth-child(1) { transform: translateY(9px) rotate(-0.35deg); }
.benefit:nth-child(2) { transform: translateY(-3px) rotate(0.25deg); }
.benefit:nth-child(3) { transform: translateY(13px) rotate(-0.2deg); }
.benefit:nth-child(1):hover,
.benefit:nth-child(2):hover,
.benefit:nth-child(3):hover { transform: translateY(-4px) rotate(0); }

.benefit-number {
  position: absolute;
  top: 26px;
  right: 22px;
  color: var(--muted);
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
}

.benefit-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 3rem;
  color: var(--purple);
  font-family: var(--font-heading);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.benefit-label::before {
  width: 7px;
  height: 7px;
  content: "";
  background: currentColor;
  border-radius: 70% 18% 70% 18%;
  transform: rotate(45deg);
}

.benefit:nth-child(2) .benefit-label {
  color: #996a15;
}

.benefit:nth-child(3) .benefit-label {
  color: #2f7a44;
}

.benefit h3 {
  max-width: 310px;
  margin: 0 0 1rem;
  font-family: var(--font-editorial);
  font-size: clamp(1.9rem, 2.6vw, 2.55rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.06;
}

.benefit > p:last-child {
  max-width: 325px;
  margin: 0;
  color: #625d63;
  font-size: 0.86rem;
  line-height: 1.62;
}

.devices {
  overflow: hidden;
  background: var(--night);
  color: var(--paper);
}

.devices-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: clamp(4rem, 9vw, 9rem);
  align-items: center;
}

.device-illustration {
  position: relative;
  min-height: 520px;
}

.device-illustration::before {
  position: absolute;
  inset: -12% -12%;
  content: "";
  background: radial-gradient(ellipse 65% 60% at 42% 48%, rgba(139, 114, 232, 0.18), transparent 72%);
  pointer-events: none;
}

.browser-frame,
.phone-frame {
  position: absolute;
  background: var(--night-surface);
  border: 1px solid var(--night-line);
}

.browser-frame {
  top: 0;
  left: 0;
  width: 84%;
  border-radius: 18px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(var(--py, 0px)) rotate(-1.5deg);
  overflow: hidden;
}

.browser-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.browser-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.browser-dots i {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 50%;
}

.browser-url {
  color: rgba(255, 255, 255, 0.38);
  font-family: var(--font-heading);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
}

.browser-page {
  padding: 24px 26px 28px;
}

.mock-entry-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.mock-date {
  color: rgba(255, 255, 255, 0.48);
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mock-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: rgba(139, 114, 232, 0.16);
  border: 1px solid rgba(139, 114, 232, 0.3);
  border-radius: 6px;
  color: #c9b9f8;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 600;
}

.mock-entry-title {
  margin: 0 0 10px;
  color: #f3f0f5;
  font-family: var(--font-editorial);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.25;
}

.mock-entry-text {
  max-width: 68%;
  margin: 0 0 18px;
  color: #c4bfc9;
  font-family: var(--font-editorial);
  font-size: 0.95rem;
  line-height: 1.6;
}

.mock-insight-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(139, 114, 232, 0.08);
  border: 1px solid rgba(139, 114, 232, 0.24);
  border-radius: 999px;
  color: #d6ccfa;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 500;
}

.mock-insight-pill i {
  color: var(--violet-bright);
  font-style: normal;
}

.phone-frame {
  right: 0;
  bottom: -15px;
  width: 216px;
  height: 350px;
  background: #0d0d12;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.75);
  transform: translateY(var(--py, 0px)) rotate(3deg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-speaker {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 44px;
  height: 4px;
  background: rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  transform: translateX(-50%);
  z-index: 2;
}

.phone-page {
  position: relative;
  height: 100%;
  padding: 26px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.phone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.phone-brand {
  color: #f3f0f5;
  font-family: var(--font-brand);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.phone-time {
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--font-heading);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.phone-card {
  padding: 10px 12px;
  background: #171720;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.phone-card-label {
  display: block;
  color: var(--violet-bright);
  font-family: var(--font-heading);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.phone-card-text {
  margin: 3px 0 0;
  color: #f3f0f5;
  font-family: var(--font-editorial);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.3;
}

.phone-entry-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}

.phone-entry-time {
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-heading);
  font-size: 0.54rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

.phone-entry-title {
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-editorial);
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phone-talk-fab {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  background: var(--purple);
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  box-shadow: 0 4px 16px rgba(115, 87, 214, 0.6);
}

.devices-copy .eyebrow { color: var(--violet-bright); }

.devices-copy h2 {
  font-size: clamp(3.5rem, 6vw, 6rem);
}

.devices-copy h2 em { color: #c0b0f4; }

.devices-copy > p:not(.eyebrow) {
  max-width: 500px;
  margin: 2rem 0 2.5rem;
  color: rgba(247, 245, 240, 0.68);
  line-height: 1.8;
}

.quiet-line {
  display: flex;
  align-items: center;
  gap: 17px;
  color: rgba(247, 245, 240, 0.88);
  font-family: var(--font-editorial);
  font-size: 1.1rem;
  font-style: italic;
}

.quiet-line i { width: 42px; border-top: 1px solid var(--violet); }

.privacy {
  background: var(--white);
}

.privacy-inner {
  display: grid;
  grid-template-columns: 90px minmax(0, 670px);
  gap: clamp(2rem, 5vw, 5rem);
  justify-content: center;
  align-items: start;
}

.lock-mark {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border: 1px solid var(--hairline);
  border-radius: 50%;
}

.lock-mark svg {
  width: 24px;
  fill: none;
  stroke: var(--purple);
  stroke-width: 1.4;
}

.privacy .eyebrow { margin-bottom: 1rem; }

.privacy h2 {
  margin: 0 0 1.3rem;
  font-family: var(--font-editorial);
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.privacy p:last-child {
  max-width: 620px;
  margin: 0;
  color: #5d585f;
}

.final-cta {
  position: relative;
  padding: clamp(6rem, 10vw, 9rem) 0;
  overflow: hidden;
  background: var(--lavender);
  text-align: center;
}

.final-inner {
  position: relative;
  z-index: 2;
}

.bloom-mark {
  display: block;
  width: 46px;
  height: 46px;
  margin: 0 auto 1.7rem;
  filter: drop-shadow(0 6px 18px rgba(115, 87, 214, 0.35));
}

.bloom-mark .petal {
  opacity: 0;
  transform: scale(0) rotate(-30deg);
  transform-box: fill-box;
  transform-origin: center;
}

.final-inner.is-visible .bloom-mark .petal {
  animation: petal-in 640ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.final-inner.is-visible .bloom-mark .petal:nth-child(1) { animation-delay: 150ms; }
.final-inner.is-visible .bloom-mark .petal:nth-child(2) { animation-delay: 260ms; }
.final-inner.is-visible .bloom-mark .petal:nth-child(3) { animation-delay: 370ms; }
.final-inner.is-visible .bloom-mark .petal:nth-child(4) { animation-delay: 480ms; }

@keyframes petal-in {
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.final-cta h2 {
  max-width: 970px;
  margin-inline: auto;
  font-size: clamp(3.25rem, 6vw, 6.2rem);
}

.final-inner > p:not(.eyebrow) {
  margin: 2rem auto 2.1rem;
  color: #5c5661;
}

.final-cta .signup-form {
  margin-inline: auto;
}

.signup-form-light .form-row {
  background: rgba(255, 254, 251, 0.85);
}

.final-thread {
  position: absolute;
  border: 1px solid rgba(115, 87, 214, 0.16);
  border-radius: 50%;
}

.thread-a { top: -48%; left: -8%; width: 39vw; height: 56vw; transform: rotate(28deg); }
.thread-b { right: -14%; bottom: -60%; width: 48vw; height: 62vw; transform: rotate(-30deg); }

.site-footer {
  padding: 36px 0;
  background: var(--paper);
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition: opacity 700ms ease, transform 800ms cubic-bezier(0.22, 1, 0.36, 1), filter 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.benefit:nth-child(2) { transition-delay: 100ms; }
.benefit:nth-child(3) { transition-delay: 200ms; }

@media (max-width: 960px) {
  .hero {
    min-height: auto;
    padding-bottom: 130px;
  }

  .hero-grid {
    display: block;
  }

  .hero-demo {
    max-width: 560px;
    margin-top: 3.6rem;
  }

  .site-nav {
    display: none;
  }

  .hero h1 { font-size: clamp(4rem, 8vw, 5.7rem); }

  .benefit { min-height: 350px; }

  .devices-grid {
    grid-template-columns: 1fr 0.8fr;
    gap: 4rem;
  }

  .device-illustration { min-height: 420px; }
}

@media (max-width: 760px) {
  :root {
    --shell: min(100% - 36px, 620px);
    --section-space: 6.5rem;
  }

  .nav-inner { height: 82px; }
  .hero {
    min-height: auto;
    padding: 125px 0 100px;
  }

  .hero-grid { display: block; }
  .hero h1 { font-size: clamp(3.4rem, 16vw, 5.2rem); }
  .hero-intro { margin-top: 1.7rem; }
  .scroll-note { display: none; }

  .philosophy-grid {
    display: block;
  }

  .section-index { margin-bottom: 2.5rem; }
  .philosophy-copy h2 { font-size: clamp(2.8rem, 12vw, 4.2rem); }
  .benefits-heading { display: block; }
  .benefits-heading h2 { font-size: clamp(2.9rem, 12vw, 4.3rem); }

  .benefit-list {
    display: block;
    border-top: 1px solid var(--hairline);
  }

  .benefit,
  .benefit:first-child,
  .benefit:last-child {
    min-height: 0;
    padding: 2rem 1.6rem 3rem;
    border: 1px solid rgba(35, 33, 38, 0.14);
  }

  .benefit:nth-child(1),
  .benefit:nth-child(2),
  .benefit:nth-child(3) { transform: none; }

  .benefit + .benefit { margin-top: 14px; }
  .benefit-label { margin-bottom: 3.25rem; }
  .benefit-number { right: 0; }
  .benefit h3 { max-width: 90%; }

  .devices-grid {
    display: flex;
    flex-direction: column-reverse;
    gap: 5rem;
  }

  .device-illustration { width: 100%; min-height: 410px; }
  .devices-copy h2 { font-size: clamp(3.3rem, 14vw, 5rem); }

  .privacy-inner {
    display: block;
  }

  .lock-mark { margin-bottom: 2.2rem; }

  .final-cta h2 br { display: none; }
  .footer-inner { gap: 14px; }
}

@media (max-width: 520px) {
  :root { --shell: calc(100% - 32px); }

  .nav-cta { display: none; }

  .form-row {
    display: block;
    padding: 5px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .form-row:focus-within { box-shadow: none; }

  .signup-form input {
    width: 100%;
    height: 54px;
    margin-bottom: 9px;
    padding: 0 18px;
    background: var(--white);
    border: 1px solid rgba(35, 33, 38, 0.23);
    border-radius: 14px;
    outline: 0;
  }

  .signup-form input:focus { border-color: var(--purple); }
  .signup-form button { width: 100%; min-height: 54px; }
  .signup-form.has-error input { border-color: #a94c59; }
  .signup-form.is-success input { border-color: rgba(68, 117, 82, 0.55); }
  .form-message { margin-left: 5px; }

  .device-illustration { min-height: 340px; }
  .browser-frame { width: 92%; }
  .phone-frame { right: 0; bottom: -2%; width: 155px; }

  .final-cta h2 { font-size: clamp(3rem, 14vw, 4rem); }

  .footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .footer-inner p { grid-column: 1 / -1; grid-row: 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal { opacity: 1; transform: none; filter: none; }
}
