@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-latin-wght-normal.153fc85b70.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* One accent: the app's teal (app/globals.css primary). Ground and ink are warm off-white / off-black, never pure white or black. */
  --bg: light-dark(#f6f4ef, #12110f);
  --fg: light-dark(#1c1b18, #eae9e6);
  --soft: light-dark(#4f4c45, #b3afa6);
  --tone: light-dark(#ece9e2, #1c1a17);
  --tone-strong: light-dark(#e2ded5, #26231f);
  --accent: light-dark(#0e7490, #22b8cf);
  --on-accent: light-dark(#f6f4ef, #12110f);

  --deep: light-dark(#0a4f63, #0a2a33);
  --on-deep: #eff1ef;
  --on-deep-soft: #c3dbe2;
  --deep-raised: light-dark(#11596f, #103a46);
  --deep-edge: #7fb0bf;
  --link-on-deep: #cdeaf2;
  --error-on-deep: #ffbdb2;

  --radius: 0.75rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(5rem, 11vw, 10rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  accent-color: var(--accent);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.0625rem/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--focus, var(--accent));
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: 0.5rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: var(--fg);
  color: var(--bg);
  transform: translateY(-200%);
}

.skip:focus-visible {
  transform: none;
}

.wrap {
  width: 100%;
  max-width: 108rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- hero ---------- */

.hero {
  display: flex;
  flex-direction: column;
  min-height: min(100svh, 48rem);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand img {
  display: block;
  border-radius: 8px;
}

.bar-action {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: 0.25rem;
  font-weight: 600;
  text-underline-offset: 0.3em;
  transition: color 0.2s;
}

.bar-action:hover {
  color: var(--accent);
}

.hero-body {
  margin-top: auto;
  padding-top: 5rem;
  padding-bottom: clamp(2rem, 6vh, 4rem);
}

.hero-title {
  font-size: clamp(2.25rem, 10.8vw, 11rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.16em;
  margin-bottom: -0.16em;
}

.mask-in {
  display: block;
}

.hero-foot {
  display: grid;
  gap: 2rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  align-items: end;
}

.hero-sub {
  max-width: 30ch;
  font-size: 1.375rem;
  line-height: 1.45;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (min-width: 48rem) {
  .hero-foot {
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--gutter);
  }
  .hero-sub {
    grid-column: 1 / 6;
    max-width: 34ch;
  }
  .actions {
    grid-column: 7 / 13;
    justify-content: flex-end;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--accent) 84%, var(--fg));
}

.btn-quiet {
  border-color: var(--fg);
}

.btn-quiet:hover {
  background: var(--tone-strong);
}

.display {
  font-size: clamp(2.25rem, 7vw, 7.5rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1;
}

/* ---------- private by design ---------- */

.privacy-head {
  display: grid;
  gap: 2rem;
  padding-block: var(--section) clamp(2.5rem, 6vw, 5rem);
}

.lead {
  max-width: 34ch;
  font-size: 1.375rem;
  line-height: 1.45;
}

@media (min-width: 48rem) {
  .privacy-head {
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--gutter);
    align-items: end;
  }
  .privacy-head .display {
    grid-column: 1 / 8;
  }
  .lead {
    grid-column: 8 / 13;
  }
}

.claim {
  padding-block: clamp(2.25rem, 5vw, 4rem);
}

.claim:nth-child(odd) {
  background: var(--tone);
}

.claim-grid {
  display: grid;
  gap: 0.75rem;
  align-items: start;
}

.claim h3 {
  font-size: clamp(1.625rem, 3.3vw, 3.25rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.claim p {
  max-width: 40ch;
  color: var(--soft);
}

@media (min-width: 48rem) {
  .claim-grid {
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--gutter);
  }
  .claim h3 {
    grid-column: 1 / 7;
  }
  .claim p {
    grid-column: 8 / 13;
    padding-top: 0.35rem;
  }
}

/* ---------- features ---------- */

.features {
  display: grid;
  gap: 3rem;
  padding-block: var(--section);
}

.features-title {
  max-width: 14ch;
  font-size: clamp(2rem, 5vw, 5rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-wrap: balance;
}

.features-list {
  display: grid;
  gap: 2.75rem var(--gutter);
}

@media (min-width: 48rem) {
  .features-list {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 3.5rem;
  }
}

.features-list h3 {
  margin-bottom: 0.4rem;
  font-size: 1.5rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.features-list p {
  max-width: 46ch;
  color: var(--soft);
}

.features-list a {
  color: var(--fg);
  text-underline-offset: 0.25em;
}

/* Inline links get a 44px hit area without changing the line layout. */
.features-list a,
.install-grid a {
  display: inline-block;
  padding-block: 0.6rem;
  margin-block: -0.6rem;
}

.features-list a:hover {
  color: var(--accent);
}

/* ---------- access + footer: the deep field ---------- */

.access,
.footer {
  --focus: var(--on-deep);
  background: var(--deep);
  color: var(--on-deep);
}

.access .btn-primary,
.footer .btn-primary {
  background: var(--on-deep);
  color: var(--deep);
}

.access .btn-primary:hover {
  background: color-mix(in srgb, var(--on-deep) 88%, var(--deep));
}

.access {
  padding-block: var(--section) clamp(4rem, 8vw, 7rem);
}

.access-grid {
  display: grid;
  gap: 2.5rem;
  margin-top: clamp(2.5rem, 6vw, 5rem);
  align-items: end;
}

.access-sub {
  max-width: 30ch;
  font-size: 1.375rem;
  line-height: 1.45;
}

@media (min-width: 48rem) {
  .access-grid {
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--gutter);
  }
  .access-sub {
    grid-column: 1 / 6;
  }
  .access-form {
    grid-column: 7 / 13;
  }
}

.access-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.field-row {
  display: grid;
  gap: 0.75rem;
}

.field-row input {
  width: 100%;
  min-height: 3.5rem;
  padding: 0 1rem;
  border: 2px solid var(--deep-edge);
  border-radius: var(--radius);
  background: var(--deep-raised);
  color: var(--on-deep);
  font: inherit;
}

.field-row input:user-invalid {
  border-color: var(--error-on-deep);
}

.field-row .btn {
  min-height: 3.5rem;
}

@media (min-width: 36rem) {
  .field-row {
    grid-template-columns: 1fr auto;
  }
}

.field-error {
  display: none;
  margin-top: 0.5rem;
  color: var(--error-on-deep);
}

.access-form:has(input:user-invalid) .field-error {
  display: block;
}

.status {
  min-height: 1.6em;
  margin-top: 0.75rem;
  font-weight: 600;
}

.footer {
  padding-block: 2rem;
}

.footer-title {
  font-size: clamp(2rem, 5vw, 5rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.install-grid {
  display: grid;
  gap: 3rem var(--gutter);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

@media (min-width: 48rem) {
  .install-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.install-grid h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.install-grid ol {
  display: grid;
  gap: 0.75rem;
  max-width: 44ch;
  padding-left: 1.5rem;
  list-style: decimal;
  color: var(--on-deep-soft);
}

.install-grid li::marker {
  color: var(--on-deep);
  font-weight: 650;
}

.install-grid a,
.legal a {
  color: var(--link-on-deep);
  text-underline-offset: 0.25em;
}

.install-grid a:hover,
.legal a:hover {
  color: var(--on-deep);
}

.wordmark {
  margin-top: clamp(4rem, 10vw, 9rem);
  font-size: 20.4vw;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.85;
  white-space: nowrap;
  user-select: none;
}

.legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: 2rem;
  color: var(--on-deep-soft);
  font-size: 0.875rem;
}

.legal a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

/* ---------- motion: transform and opacity only, never needed to read the content ---------- */

@media (prefers-reduced-motion: no-preference) {
  .mask-in {
    animation: line-up 0.9s var(--ease-out) both;
  }
  .mask:nth-child(2) .mask-in {
    animation-delay: 0.11s;
  }
  .hero-foot {
    animation: fade-up 0.7s var(--ease-out) 0.75s both;
  }

  @supports (animation-timeline: view()) {
    .rise {
      animation: rise-up linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
  }
}

@keyframes line-up {
  from {
    transform: translateY(108%);
  }
}

@keyframes rise-up {
  from {
    transform: translateY(32px);
  }
}

@keyframes rise-up {
  from {
    transform: translateY(32px);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}
