/* Nature Ambience website: one stylesheet for the home page, the privacy policy and the
   account deletion page. Colours are the app's own: page ink, sage from the launch
   animation (#C2CEB4), and the leaf green of the icon. */

:root {
  --ink:       #080D0E;
  --ink-2:     #0E1517;
  --surface:   #121A1C;
  --surface-2: #192325;
  --rule:      #22302F;
  --text:      #EEF2EE;
  --text-2:    #C3CFCB;
  --muted:     #8C9D9A;
  --sage:      #C2CEB4;
  --leaf:      #7FA65C;
  --leaf-deep: #4F7A34;
  --warn:      #E3B26B;
  --warn-bg:   #221A0E;
  --danger:    #E58A7B;
  --radius:    22px;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans:  "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--sage); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--leaf-deep); color: #fff; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 560px) { .container { padding: 0 16px; } }

.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.accent { font-family: var(--serif); font-style: italic; color: var(--sage); }
.kicker {
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ink) 78%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--rule); }
.nav { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span { font-size: 17px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; list-style: none; padding: 0; }
.nav-links a { color: var(--text-2); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav .btn { padding: 10px 18px; font-size: 14px; }
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font: 600 15.5px/1 var(--sans); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, background-color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--text); color: var(--ink); }
.btn-primary:hover { background: #fff; box-shadow: 0 10px 30px -10px rgba(194, 206, 180, .45); }
.btn-ghost { color: var(--text); border-color: var(--rule); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-danger { background: var(--danger); color: #1A0D0A; }
.btn svg { width: 20px; height: 20px; flex: none; }

.play-btn { padding: 12px 22px 12px 18px; gap: 12px; }
.play-btn small { display: block; font-size: 10.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; opacity: .7; margin-bottom: 3px; }
.play-btn strong { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.play-btn svg { width: 24px; height: 24px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 56px 0 40px; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -120px 0 auto; height: 780px; z-index: -1;
  background:
    radial-gradient(600px 380px at 78% 42%, rgba(127, 166, 92, .20), transparent 70%),
    radial-gradient(520px 340px at 12% 8%, rgba(194, 206, 180, .10), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(52px, 7.4vw, 96px); line-height: .98; letter-spacing: -.025em; margin: 18px 0 22px; }
.hero .lede { font-size: clamp(17px, 1.6vw, 19.5px); color: var(--text-2); max-width: 30em; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 34px; }
.hero-note { font-size: 14px; color: var(--muted); }
.hero-note b { color: var(--text-2); font-weight: 500; }
.hero-art { position: relative; }
.hero-art img { width: 100%; mix-blend-mode: lighten; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; list-style: none; padding: 0; }
.chips li { font-size: 13px; color: var(--text-2); border: 1px solid var(--rule); border-radius: 999px; padding: 6px 13px; background: rgba(255,255,255,.02); }
@media (max-width: 900px) {
  .hero { padding-top: 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { max-width: 560px; margin: 0 auto; }
}

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-top: 40px; }
.stat { padding: 26px 20px; border-left: 1px solid var(--rule); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: 42px; line-height: 1; letter-spacing: -.02em; }
.stat span { display: block; font-size: 14px; color: var(--muted); margin-top: 8px; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 20px 16px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--rule); }
}

/* ---------- sections ---------- */
.section { padding: 110px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5vw, 60px); line-height: 1.02; letter-spacing: -.02em; margin-top: 12px; }
.section-head p { color: var(--text-2); margin-top: 16px; font-size: 17.5px; }
@media (max-width: 760px) { .section { padding: 72px 0; } .section-head { margin-bottom: 36px; } }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  position: relative; padding: 28px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--ink-2));
  border: 1px solid var(--rule); overflow: hidden;
  transition: border-color .3s, transform .3s;
}
.feature:hover { border-color: #33443F; transform: translateY(-2px); }
.feature .ico {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(127, 166, 92, .12); color: var(--sage); margin-bottom: 22px;
}
.feature .ico svg { width: 23px; height: 23px; }
.feature h3 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* ---------- gallery ---------- */
.gallery-wrap { position: relative; }
.gallery {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px max(24px, calc((100vw - 1160px) / 2 + 24px)) 24px;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery figure {
  flex: 0 0 auto; width: clamp(220px, 24vw, 290px); scroll-snap-align: center;
  border-radius: 26px; overflow: hidden; border: 1px solid var(--rule); background: var(--surface);
  aspect-ratio: 9 / 16;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery-nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: -30px; margin-bottom: 30px; }
.round-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--rule); background: var(--surface);
  color: var(--text); display: grid; place-items: center; cursor: pointer; transition: border-color .2s, background-color .2s;
}
.round-btn:hover { border-color: var(--muted); background: var(--surface-2); }
.round-btn svg { width: 20px; height: 20px; }
@media (max-width: 760px) { .gallery-nav { display: none; } .gallery { padding-left: 16px; padding-right: 16px; } }

/* ---------- privacy promise ---------- */
.promise {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
  padding: 56px; border-radius: 32px; border: 1px solid var(--rule);
  background:
    radial-gradient(500px 300px at 100% 0%, rgba(127, 166, 92, .14), transparent 70%),
    var(--ink-2);
}
.promise h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.4vw, 54px); line-height: 1.03; letter-spacing: -.02em; margin: 12px 0 16px; }
.promise p { color: var(--text-2); }
.promise .links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.checks { list-style: none; padding: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; background: rgba(255,255,255,.025); border: 1px solid var(--rule); }
.checks svg { width: 22px; height: 22px; color: var(--leaf); flex: none; margin-top: 1px; }
.checks b { display: block; font-weight: 600; }
.checks span { display: block; color: var(--muted); font-size: 14.5px; }
@media (max-width: 900px) { .promise { grid-template-columns: 1fr; padding: 32px 22px; gap: 32px; border-radius: 26px; } }

/* ---------- final cta ---------- */
.cta { text-align: center; padding: 120px 0 110px; position: relative; isolation: isolate; }
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(520px 260px at 50% 60%, rgba(127, 166, 92, .16), transparent 70%);
}
.cta img.icon { width: 88px; height: 88px; border-radius: 22px; margin: 0 auto 28px; box-shadow: 0 20px 50px -16px rgba(127, 166, 92, .5); }
.cta h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 6vw, 76px); line-height: 1; letter-spacing: -.025em; }
.cta p { color: var(--text-2); margin: 18px auto 34px; max-width: 32em; }
.cta .row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- contact ---------- */
.contact-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding: 32px 36px; border-radius: var(--radius); border: 1px solid var(--rule); background: var(--surface);
}
.contact-card h3 { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.1; }
.contact-card p { color: var(--muted); margin-top: 6px; }
.mail { font-size: 17px; font-weight: 600; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 2px; }
.mail:hover { border-color: var(--sage); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (max-width: 560px) { .contact-card { padding: 24px 20px; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding: 40px 0 48px; margin-top: 40px; color: var(--muted); font-size: 14px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-start; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; padding: 0; }
.footer-links a { color: var(--text-2); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.site-footer .fine { margin-top: 10px; }

/* ---------- document pages (privacy, deletion) ---------- */
.doc-hero { padding: 64px 0 40px; border-bottom: 1px solid var(--rule); position: relative; isolation: isolate; }
.doc-hero::before {
  content: ""; position: absolute; inset: -80px 0 0; z-index: -1;
  background: radial-gradient(560px 300px at 85% 10%, rgba(127, 166, 92, .13), transparent 70%);
}
.doc-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 6.4vw, 80px); line-height: 1; letter-spacing: -.025em; margin: 14px 0 18px; }
.doc-hero .lede { color: var(--text-2); font-size: 18.5px; max-width: 38em; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; font-size: 14px; color: var(--muted); }
.doc-meta b { color: var(--text-2); font-weight: 500; }

.doc-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 64px; padding-top: 48px; }
.toc { position: sticky; top: 96px; align-self: start; font-size: 14px; }
.toc p { margin-bottom: 12px; }
.toc ol { list-style: none; padding: 0; display: grid; gap: 2px; border-left: 1px solid var(--rule); }
.toc a { display: block; padding: 5px 0 5px 16px; margin-left: -1px; border-left: 1px solid transparent; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--sage); border-left-color: var(--sage); }
@media (max-width: 900px) { .doc-layout { grid-template-columns: 1fr; gap: 0; padding-top: 32px; } .toc { display: none; } }

.prose { max-width: 720px; }
.prose section { padding-bottom: 44px; margin-bottom: 44px; border-bottom: 1px solid var(--rule); }
.prose section:last-child { border-bottom: 0; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.1; letter-spacing: -.015em; margin-bottom: 18px; }
.prose h3 { font-size: 17.5px; font-weight: 600; margin: 30px 0 10px; letter-spacing: -.01em; }
.prose p { color: var(--text-2); margin-bottom: 14px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul, .prose ol.steps { color: var(--text-2); margin: 0 0 14px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--leaf); }

.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 16px; margin: 18px 0; background: var(--ink-2); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--rule); }
.prose tr:last-child td { border-bottom: 0; }
.prose th { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--surface); }
.prose td:first-child { color: var(--text); font-weight: 600; width: 30%; }
.prose td { color: var(--text-2); }

.callout { display: flex; gap: 14px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--rule); background: var(--surface); margin: 18px 0; }
.callout svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--sage); }
.callout p { margin: 0; color: var(--text-2); }
.callout.warn { background: var(--warn-bg); border-color: #4A3A22; }
.callout.warn svg { color: var(--warn); }

.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 8px 0 44px; }
.summary-grid div { padding: 20px; border-radius: 18px; border: 1px solid var(--rule); background: var(--surface); }
.summary-grid b { display: block; font-size: 15.5px; margin-bottom: 4px; }
.summary-grid span { color: var(--muted); font-size: 14.5px; line-height: 1.5; display: block; }
@media (max-width: 700px) { .summary-grid { grid-template-columns: 1fr; } }

/* deletion page */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 8px 0 20px; }
.path { padding: 28px; border-radius: var(--radius); border: 1px solid var(--rule); background: linear-gradient(180deg, var(--surface), var(--ink-2)); display: flex; flex-direction: column; }
.path .tag { align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--sage); background: rgba(127,166,92,.12); padding: 5px 10px; border-radius: 999px; margin-bottom: 16px; }
.path h3 { margin: 0 0 12px; font-size: 20px; }
.path ol { counter-reset: step; list-style: none; padding: 0; margin: 4px 0 18px; display: grid; gap: 12px; }
.path ol li { counter-increment: step; position: relative; padding-left: 40px; color: var(--text-2); margin: 0; }
.path ol li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 600; color: var(--ink); background: var(--sage);
}
.path .foot { margin-top: auto; padding-top: 6px; color: var(--muted); font-size: 14.5px; }
.path .btn { margin-top: 8px; align-self: flex-start; }
@media (max-width: 760px) { .paths { grid-template-columns: 1fr; } .path { padding: 22px; } }

.kept-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.kept-grid > div { padding: 24px; border-radius: 18px; border: 1px solid var(--rule); background: var(--ink-2); }
.kept-grid h3 { margin-top: 0; display: flex; align-items: center; gap: 10px; }
.kept-grid h3 svg { width: 20px; height: 20px; }
.kept-grid .del h3 svg { color: var(--danger); }
.kept-grid .keep h3 svg { color: var(--warn); }
.kept-grid ul { margin-bottom: 0; }
@media (max-width: 700px) { .kept-grid { grid-template-columns: 1fr; } }

/* ---------- motion ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .feature { transition: none; }
}
