:root {
  color-scheme: light dark;
  --bg: #f3f1e9;
  --bg-deep: #e8eee7;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #fbfaf5;
  --text: #173739;
  --muted: #5a7171;
  --line: rgba(23, 55, 57, 0.14);
  --line-strong: rgba(23, 55, 57, 0.22);
  --accent: #11978e;
  --accent-strong: #08736d;
  --accent-soft: rgba(17, 151, 142, 0.12);
  --paper: #fffdf7;
  --shadow: 0 24px 70px rgba(23, 55, 57, 0.16);
  --radius: 26px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 5%, rgba(24, 181, 167, 0.12), transparent 32rem),
    radial-gradient(circle at 90% 34%, rgba(82, 138, 104, 0.1), transparent 34rem),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 20;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.08rem;
  font-weight: 780;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  box-shadow: 0 8px 24px rgba(5, 49, 49, 0.18);
}

nav { display: flex; align-items: center; gap: 24px; }
nav a,
footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 620;
  transition: color 180ms ease;
}
nav a:hover,
footer a:hover,
.text-link:hover { color: var(--accent-strong); }

.theme-toggle {
  width: 40px;
  height: 40px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  background: var(--surface);
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}
.theme-toggle:hover { color: var(--accent-strong); border-color: var(--accent); transform: translateY(-1px); }
.theme-toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.theme-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-icon-sun,
.theme-icon-moon { display: none; }
:root[data-resolved-theme="dark"] .theme-icon-sun,
:root[data-resolved-theme="light"] .theme-icon-moon { display: block; }

.hero { padding: 96px 0 72px; }
.product-hero {
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.1fr);
  align-items: center;
  gap: 54px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  animation: hero-copy-in 700ms cubic-bezier(.2,.7,.2,1) both;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 820;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p { text-wrap: pretty; }

h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(3.4rem, 6.7vw, 5.5rem);
  line-height: 0.94;
  letter-spacing: -0.065em;
}

.lede {
  max-width: 620px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 19px;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: var(--surface);
  text-decoration: none;
  font-weight: 720;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}
.button:hover { transform: translateY(-2px); border-color: var(--accent); }
.button.primary { background: var(--text); color: var(--paper); border-color: transparent; }

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin: 30px 0 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
  font-size: 0.88rem;
  font-weight: 640;
}
.trust-list li::before { content: "✓"; margin-right: 7px; color: var(--accent-strong); }

.device-stage { position: relative; min-height: 580px; isolation: isolate; }
.stage-glow {
  position: absolute;
  inset: 7% 4% 8% 4%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(49, 190, 172, 0.25), rgba(49, 190, 172, 0) 68%);
  filter: blur(18px);
}
.device { position: absolute; margin: 0; overflow: hidden; background: #eef2ef; box-shadow: var(--shadow); }
.device img { width: 100%; height: 100%; object-fit: cover; }
.mac-device {
  top: 58px;
  right: 0;
  width: 94%;
  aspect-ratio: 1.6;
  border: 1px solid rgba(23, 55, 57, 0.2);
  border-radius: 20px;
  animation: stage-in 800ms 80ms cubic-bezier(.2,.7,.2,1) both;
}
.mac-device img { height: calc(100% - 30px); }
.window-bar {
  position: relative;
  height: 30px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  color: #72807e;
  background: #edf0ee;
  border-bottom: 1px solid rgba(20, 45, 47, 0.1);
  font-size: 0.72rem;
}
.window-bar i { width: 8px; height: 8px; display: block; border-radius: 50%; background: #b9c1be; }
.window-bar span { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.tablet-device {
  right: -2%;
  bottom: 12px;
  width: 32%;
  padding: 7px;
  border: 1px solid rgba(23, 55, 57, 0.2);
  border-radius: 24px;
  background: #111d1d;
  animation: stage-in 800ms 190ms cubic-bezier(.2,.7,.2,1) both;
}
.tablet-device img { display: block; height: auto; object-fit: contain; border-radius: 17px; }
.phone-device {
  left: -1%;
  bottom: 4px;
  width: 22%;
  padding: 4px;
  border: 1px solid rgba(23, 55, 57, 0.22);
  border-radius: 24px;
  background: #101b1c;
  animation: stage-in 800ms 300ms cubic-bezier(.2,.7,.2,1) both;
}
.phone-device img { display: block; height: auto; object-fit: contain; border-radius: 19px; }

.intro-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 30px 34px;
  border-block: 1px solid var(--line);
  color: var(--muted);
}
.intro-strip p { margin: 0; text-align: center; font-weight: 650; }
.intro-strip span { color: var(--accent-strong); }

.section { padding: 126px 0 0; }
.section-heading { max-width: 760px; margin-bottom: 46px; }
.section-heading.compact { max-width: 680px; }
.section-heading h2,
.privacy-callout h2 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.052em;
}
.section-heading > p:last-child { max-width: 670px; margin: 22px 0 0; color: var(--muted); font-size: 1.16rem; }

.workflow-shell {
  max-width: 1060px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.34);
  box-shadow: 0 22px 68px rgba(23, 55, 57, 0.09);
}
.mode-switcher {
  width: fit-content;
  display: flex;
  gap: 4px;
  margin: 0 auto 18px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.mode-button {
  min-width: 88px;
  min-height: 39px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 720;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.mode-button.is-active { color: var(--text); background: var(--paper); box-shadow: 0 4px 18px rgba(23, 55, 57, 0.11); }
.mode-button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.mode-stage {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: #edf0ee;
  box-shadow: 0 18px 46px rgba(23, 55, 57, 0.15);
}
.mode-stage .window-bar { height: 38px; }
.mode-stage img { width: 100%; aspect-ratio: 1.6; object-fit: cover; transition: opacity 150ms ease, transform 220ms ease; }
.mode-stage img.is-changing { opacity: 0; transform: scale(0.992); }
.mode-notes { min-height: 112px; padding: 24px 20px 5px; }
.mode-note { animation: note-in 260ms ease both; }
.mode-note h3 { margin: 0 0 5px; font-size: 1.22rem; letter-spacing: -0.02em; }
.mode-note p { margin: 0; color: var(--muted); }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature-card,
.card,
.support-block,
.policy section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(16px);
}
.feature-card { min-height: 260px; padding: 30px; transition: transform 220ms ease, border-color 220ms ease; }
.feature-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.feature-card-wide { grid-column: span 2; }
.feature-card-accent { background: linear-gradient(145deg, var(--accent-soft), var(--surface)); }
.feature-number { display: block; margin-bottom: 52px; color: var(--accent-strong); font-size: 0.78rem; font-weight: 820; letter-spacing: 0.12em; }
.feature-card h3,
.card h3,
.support-block h3 { margin: 0 0 10px; font-size: 1.3rem; letter-spacing: -0.025em; }
.feature-card p,
.card p,
.support-block p,
.policy section p { margin: 0; color: var(--muted); }
code { font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.9em; }

.privacy-callout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(230px, 0.75fr) auto;
  align-items: end;
  gap: 42px;
  margin-top: 126px;
  padding: 48px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(135deg, var(--surface-solid), var(--bg-deep));
  box-shadow: 0 24px 74px rgba(23, 55, 57, 0.1);
}
.privacy-callout ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-weight: 650; }
.privacy-callout li::before { content: "●"; margin-right: 10px; color: var(--accent); font-size: 0.6em; vertical-align: 0.2em; }
.text-link { color: var(--accent-strong); font-weight: 760; text-decoration: none; white-space: nowrap; }

.support-section { padding-bottom: 12px; }
.support-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.card { padding: 28px; }
.support-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 18px;
  padding: 30px;
}
.support-block > div { max-width: 720px; }
.support-block .button { flex: 0 0 auto; }

.policy { max-width: 880px; padding-top: 92px; }
.policy h1 { font-size: clamp(3rem, 6vw, 5rem); }
.updated { color: var(--muted); margin: 20px 0 42px; }
.policy section { padding: 29px 31px; margin-bottom: 16px; }
.policy section h2 { margin: 0 0 10px; font-size: 1.28rem; letter-spacing: -0.02em; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 42px 0 56px;
  margin-top: 72px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}
footer div { display: flex; gap: 22px; }

.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 620ms ease, transform 620ms cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@keyframes hero-copy-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes stage-in {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@keyframes note-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d1f20;
    --bg-deep: #102b2b;
    --surface: rgba(18, 46, 48, 0.75);
    --surface-solid: #112a2b;
    --text: #e5f3ef;
    --muted: #aec2bf;
    --line: rgba(229, 243, 239, 0.13);
    --line-strong: rgba(229, 243, 239, 0.22);
    --accent: #42c8bc;
    --accent-strong: #6de0d5;
    --accent-soft: rgba(66, 200, 188, 0.12);
    --paper: #eaf5f1;
    --shadow: 0 28px 78px rgba(0, 0, 0, 0.34);
  }
  :root:not([data-theme="light"]) .button.primary { color: #102526; }
  :root:not([data-theme="light"]) .mode-button.is-active { color: #153535; }
  :root:not([data-theme="light"]) .workflow-shell { background: rgba(18, 46, 48, 0.72); }
  :root:not([data-theme="light"]) .privacy-callout { background: linear-gradient(135deg, #122f30, #102526); }
}

:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1f20;
  --bg-deep: #102b2b;
  --surface: rgba(18, 46, 48, 0.75);
  --surface-solid: #112a2b;
  --text: #e5f3ef;
  --muted: #aec2bf;
  --line: rgba(229, 243, 239, 0.13);
  --line-strong: rgba(229, 243, 239, 0.22);
  --accent: #42c8bc;
  --accent-strong: #6de0d5;
  --accent-soft: rgba(66, 200, 188, 0.12);
  --paper: #eaf5f1;
  --shadow: 0 28px 78px rgba(0, 0, 0, 0.34);
}
:root[data-theme="dark"] .button.primary { color: #102526; }
:root[data-theme="dark"] .mode-button.is-active { color: #153535; }
:root[data-theme="dark"] .workflow-shell { background: rgba(18, 46, 48, 0.72); }
:root[data-theme="dark"] .privacy-callout { background: linear-gradient(135deg, #122f30, #102526); }

@media (min-width: 1600px) {
  .site-header,
  main,
  footer { width: min(1440px, calc(100% - 96px)); }
  .product-hero {
    grid-template-columns: minmax(0, 0.95fr) minmax(560px, 1.05fr);
    gap: 72px;
  }
  .workflow-shell { max-width: 1240px; }
}

@media (max-width: 980px) {
  .product-hero { grid-template-columns: 1fr; gap: 24px; }
  .hero-copy { max-width: 720px; }
  .device-stage { min-height: 560px; }
  .mac-device { width: 84%; right: 5%; }
  .tablet-device { width: 28%; right: 2%; }
  .phone-device { width: 19%; left: 5%; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-card-wide { grid-column: span 2; }
  .privacy-callout { grid-template-columns: 1fr 1fr; }
  .privacy-callout .text-link { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .site-header,
  main,
  footer { width: min(100% - 28px, 1180px); }
  .site-header { min-height: 68px; }
  nav { gap: 10px; }
  .home-nav a:nth-child(-n+4),
  .policy-nav a:first-child { display: none; }
  .theme-toggle { width: 38px; height: 38px; }
  .hero { padding: 68px 0 42px; }
  .product-hero { min-height: auto; }
  h1 { font-size: clamp(3.35rem, 16vw, 5rem); }
  .device-stage { min-height: 430px; margin-top: 8px; }
  .mac-device { top: 28px; right: 0; width: 96%; border-radius: 14px; }
  .tablet-device { right: 0; width: 31%; border-radius: 17px; padding: 5px; }
  .phone-device { left: 1%; width: 23%; border-radius: 18px; padding: 3px; }
  .phone-device img { border-radius: 15px; }
  .intro-strip { grid-template-columns: 1fr; gap: 9px; padding: 24px 14px; }
  .intro-strip span { transform: rotate(90deg); text-align: center; }
  .section { padding-top: 94px; }
  .section-heading { margin-bottom: 34px; }
  .workflow-shell { padding: 10px; border-radius: 22px; }
  .mode-stage { border-radius: 14px; }
  .mode-stage .window-bar { height: 28px; }
  .mode-switcher { width: 100%; }
  .mode-button { flex: 1; min-width: 0; padding-inline: 10px; }
  .feature-grid,
  .support-grid { grid-template-columns: 1fr; }
  .feature-card-wide { grid-column: auto; }
  .feature-card { min-height: 230px; }
  .privacy-callout { grid-template-columns: 1fr; gap: 26px; margin-top: 94px; padding: 30px 24px; border-radius: 24px; }
  .privacy-callout .text-link { grid-column: auto; }
  .support-block { align-items: flex-start; flex-direction: column; padding: 24px; }
  .support-block .button { width: 100%; }
  .policy { padding-top: 66px; }
  .policy section { padding: 23px; }
  footer { flex-direction: column; }
}

@media (max-width: 460px) {
  .device-stage { min-height: 350px; }
  .mac-device .window-bar { height: 20px; padding-inline: 8px; }
  .mac-device .window-bar i { width: 5px; height: 5px; }
  .mac-device img { height: calc(100% - 20px); }
  .tablet-device { width: 30%; }
  .phone-device { width: 24%; }
  .trust-list { display: grid; gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
