/* Shared by every page: fonts, the dark hero look, sections, scroll reveals. Base tokens and layout are in styles.css. */
@font-face {
  font-family: 'Instrument Serif';
  src: url('/fonts/instrument-serif.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/fonts/instrument-serif-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --night: #071426;
  --navy-deep: #0b1d3f;
  --mint: #3be8a0;
  --mint-2: #12c2b0;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
  --frame: 200px;
}

.home {
  background: var(--bg);
}
.wrap.wide {
  max-width: 1180px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(ellipse at 50% 40%, #0f2b3a 0%, var(--night) 70%);
}
.hero-media {
  position: absolute;
  inset: 0;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.slide.is-active {
  opacity: 1;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: 50% 50%;
}
.slide.is-active.kb img {
  animation: kenburns 7s linear both;
}
@keyframes kenburns {
  from { transform: scale(1.1); }
  to { transform: scale(1); }
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 20, 38, 0.55) 0%, rgba(7, 20, 38, 0) 22%),
    linear-gradient(0deg, rgba(7, 20, 38, 0.92) 0%, rgba(7, 20, 38, 0.35) 38%, rgba(7, 20, 38, 0) 60%);
}

/* Intro: the plate is first seen through the scan frame */
.intro {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.scan-frame {
  position: relative;
  width: var(--frame);
  height: var(--frame);
}
.c {
  position: absolute;
  width: 22%;
  height: 22%;
  max-width: 56px;
  max-height: 56px;
  border: 0 solid var(--mint);
}
.c.tl { top: -14px; left: -14px; border-top-width: 5px; border-left-width: 5px; border-top-left-radius: 18px; }
.c.tr { top: -14px; right: -14px; border-top-width: 5px; border-right-width: 5px; border-top-right-radius: 18px; }
.c.bl { bottom: -14px; left: -14px; border-bottom-width: 5px; border-left-width: 5px; border-bottom-left-radius: 18px; }
.c.br { bottom: -14px; right: -14px; border-bottom-width: 5px; border-right-width: 5px; border-bottom-right-radius: 18px; }
.scan-line {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 0;
  height: 3px;
  border-radius: 3px;
  background: #effff8;
  box-shadow: 0 0 18px 4px rgba(59, 232, 160, 0.8);
  opacity: 0;
}
.intro-tag {
  position: absolute;
  top: calc(50% + var(--frame) / 2 + 36px);
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0;
}
.intro-tag span {
  color: var(--mint);
}

/* Header over the photo */
/* The menu stays at the top; once the page scrolls it gets a dark glass background. */
html {
  scroll-padding-top: 84px;
}
.hero-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background-color 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
}
.hero-header.scrolled {
  padding: 12px 0;
  background: rgba(7, 20, 38, 0.9);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 30px rgba(7, 20, 38, 0.25);
}
.hero-header .brand img {
  transition: width 0.35s ease, height 0.35s ease;
}
.hero-header.scrolled .brand img {
  width: 34px;
  height: 34px;
}
.hero-header .wrap,
.hero-bottom,
.hero-foot {
  max-width: 1180px;
}
.hero-header .brand {
  color: #fff;
}
.hero-header .nav a {
  color: rgba(255, 255, 255, 0.82);
}
.hero-header .nav a:hover {
  color: #fff;
}

/* Nutrition chips */
.chips {
  position: absolute;
  z-index: 2;
  top: 30%;
  right: max(16px, calc((100vw - 1180px) / 2 + 16px));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
}
.chip b {
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.chip-kcal {
  font-size: 18px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
}
.chip-kcal b {
  color: var(--text);
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.dot.dp { background: #ff7a8a; }
.dot.dc { background: #ffb547; }
.dot.df { background: #20d6c7; }

.hero-bottom {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 76px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(52px, 8.4vw, 124px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin: 0;
  color: #fff;
}
.hero-title em,
.display em {
  font-style: italic;
  color: var(--mint);
}
.line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}
.line > span {
  display: inline-block;
}
.hero-side {
  max-width: 330px;
  padding-bottom: 12px;
}
.hero-side p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  margin: 0 0 16px;
}
.store-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.store {
  display: inline-flex;
  flex-direction: column;
  padding: 8px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.25;
}
.store small {
  font-weight: 500;
  font-size: 11px;
  color: var(--mint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-foot {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.04em;
}
.counter b {
  color: #fff;
}
.progress {
  display: flex;
  gap: 6px;
  flex: 1;
  max-width: 260px;
}
.progress i {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
}
.progress i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
}
.progress i.done::after {
  transform: scaleX(1);
}
.progress i.run::after {
  animation: fill var(--slide-ms, 6000ms) linear forwards;
}
@keyframes fill {
  to { transform: scaleX(1); }
}

/* ---------- Intro timeline (skipped with .no-intro) ---------- */
html:not(.no-intro) .hero-media {
  animation: reveal 1.4s var(--ease-io) 1.15s both;
}
html:not(.no-intro) .slide.is-active img {
  animation: zoom-in 2.6s var(--ease-out) 1.15s both;
}
html:not(.no-intro) .scan-frame {
  animation: frame-open 1.4s var(--ease-io) 1.15s both;
}
html:not(.no-intro) .scan-line {
  animation: scan 0.55s ease-in-out 0.25s 2 alternate both;
}
html:not(.no-intro) .intro-tag {
  animation: tag 1.3s ease 0.05s both;
}
html:not(.no-intro) .hero-header {
  animation: fade 0.9s ease 2.2s both;
}
html:not(.no-intro) .hero-title .line > span {
  animation: rise 1.1s var(--ease-out) both;
}
html:not(.no-intro) .hero-title .line:nth-child(1) > span { animation-delay: 2.15s; }
html:not(.no-intro) .hero-title .line:nth-child(2) > span { animation-delay: 2.27s; }
html:not(.no-intro) .hero-side,
html:not(.no-intro) .hero-foot {
  animation: fade-up 0.9s var(--ease-out) 2.5s both;
}
html:not(.no-intro) .chip {
  animation: pop 0.6s var(--ease-out) both;
}
html:not(.no-intro) .chip:nth-child(1) { animation-delay: 2.7s; }
html:not(.no-intro) .chip:nth-child(2) { animation-delay: 2.8s; }
html:not(.no-intro) .chip:nth-child(3) { animation-delay: 2.9s; }
html:not(.no-intro) .chip:nth-child(4) { animation-delay: 3s; }
.no-intro .intro {
  display: none;
}

@keyframes reveal {
  from { clip-path: inset(calc(50% - var(--frame) / 2) calc(50% - var(--frame) / 2) round 26px); }
  to { clip-path: inset(0 round 0); }
}
@keyframes zoom-in {
  from { transform: scale(1.35); }
  to { transform: scale(1); }
}
@keyframes frame-open {
  0% { width: var(--frame); height: var(--frame); opacity: 1; }
  70% { opacity: 1; }
  100% { width: 100vw; height: 100vh; height: 100svh; opacity: 0; }
}
@keyframes scan {
  from { top: 4%; opacity: 1; }
  to { top: 96%; opacity: 1; }
}
@keyframes tag {
  0% { opacity: 0; transform: translateY(8px); }
  25%, 75% { opacity: 1; transform: none; }
  100% { opacity: 0; }
}
@keyframes fade {
  from { opacity: 0; }
}
@keyframes rise {
  from { transform: translateY(110%); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
}
@keyframes pop {
  from { opacity: 0; transform: translateY(10px) scale(0.9); }
}
.chip b.bump {
  display: inline-block;
  animation: bump 0.5s var(--ease-out);
}
@keyframes bump {
  from { opacity: 0; transform: translateY(6px); }
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.75);
  overflow: hidden;
  padding: 18px 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee-track span {
  padding: 0 28px;
  white-space: nowrap;
  position: relative;
}
.marquee-track span::after {
  content: '✦';
  position: absolute;
  right: -7px;
  color: var(--mint);
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
.section {
  padding: 120px 0;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(42px, 6vw, 80px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 56px;
  color: var(--text);
  max-width: 900px;
}
.display em {
  color: var(--teal);
}
.light,
.display.light {
  color: #fff;
}
.eyebrow.light,
.display.light em {
  color: var(--mint);
}

/* How it works */
.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.how-photo {
  position: relative;
  margin: 0;
  border-radius: 32px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--surface-raised, #e9e4dd);
}
.how-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.12);
  transition: transform 1.6s var(--ease-out);
}
.how-photo.in img {
  transform: scale(1);
}
.float-card {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 15px;
  color: var(--muted);
  box-shadow: 0 12px 40px rgba(7, 20, 38, 0.18);
}
.float-card b {
  color: var(--text);
  font-size: 17px;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.steps li {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  margin: 0;
}
.steps li:last-child {
  border-bottom: 1px solid var(--border);
}
.num {
  font-family: var(--serif);
  font-size: 52px;
  line-height: 1;
  color: var(--teal);
  min-width: 64px;
}
.steps h3 {
  margin: 4px 0 6px;
  font-size: 22px;
}
.steps p {
  margin: 0;
}

/* Features */
.features-section {
  padding-top: 0;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 32px 28px;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), opacity 0.9s var(--ease-out);
}
.feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 50px rgba(18, 48, 106, 0.1);
}
.ico {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--bg);
  font-size: 24px;
  margin-bottom: 20px;
}
.feature h3 {
  margin: 0 0 6px;
  font-size: 20px;
}
.feature p {
  margin: 0;
  font-size: 16px;
}

/* Plans */
.plans {
  background: radial-gradient(ellipse at 85% 20%, rgba(18, 194, 176, 0.22), transparent 55%), var(--night);
  color: #fff;
}
.plans-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: center;
}
.plans .display {
  margin: 0;
}
.plan-card {
  border-radius: 32px;
  padding: 36px 32px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.plan-card h3 {
  margin: 0 0 16px;
  font-size: 22px;
}
.plan-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.plan-card li {
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 0 8px 32px;
  position: relative;
}
.plan-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--night);
  font-size: 13px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.plan-note {
  margin: 0;
  color: var(--mint);
  font-weight: 600;
}

/* FAQ */
.faq-list details {
  border-bottom: 1px solid var(--border);
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 44px 22px 0;
  font-size: 19px;
  font-weight: 650;
  position: relative;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  font-weight: 300;
  color: var(--teal);
  transition: transform 0.3s var(--ease-out);
}
.faq-list details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}
.faq-list details p {
  margin: 0 0 22px;
  max-width: 680px;
}

/* Final call to action */
.cta {
  background: var(--night);
  padding: 120px 16px;
  text-align: center;
  color: #fff;
}
.cta-frame {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 72px 24px;
}
.cta-frame .c {
  width: 72px;
  height: 72px;
  max-width: none;
  max-height: none;
}
.cta .display {
  margin: 0 auto 20px;
}
.cta p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 28px;
}
.btn {
  display: inline-block;
  padding: 16px 28px;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.3s var(--ease-out), background 0.3s;
}
.btn:hover {
  transform: translateY(-2px);
  background: var(--mint);
}

.site-footer.dark {
  background: var(--night);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.45);
  padding: 28px 0 40px;
}
.site-footer.dark a {
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Scroll reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].in {
  opacity: 1;
  transform: none;
}
.js .feature[data-reveal].in:hover {
  transform: translateY(-6px);
}
.js .cta-frame[data-reveal] .c {
  transition: transform 1.2s var(--ease-io) 0.2s;
}
.js .cta-frame[data-reveal]:not(.in) .c.tl { transform: translate(60px, 60px); }
.js .cta-frame[data-reveal]:not(.in) .c.tr { transform: translate(-60px, 60px); }
.js .cta-frame[data-reveal]:not(.in) .c.bl { transform: translate(60px, -60px); }
.js .cta-frame[data-reveal]:not(.in) .c.br { transform: translate(-60px, -60px); }

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
  .how-grid,
  .plans-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .how-photo {
    aspect-ratio: 4 / 3;
  }
}
@media (max-width: 700px) {
  :root {
    --frame: 150px;
  }
  .hero-header .nav a[href*='#how'],
  .hero-header .nav a[href*='#features'] {
    display: none;
  }
  .hero-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    bottom: 64px;
  }
  .hero-side {
    padding-bottom: 0;
  }
  .chips {
    top: 92px;
    left: 16px;
    right: 16px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }
  .chip {
    padding: 7px 12px;
    font-size: 13px;
  }
  .chip-kcal {
    font-size: 15px;
    padding: 8px 14px;
  }
  .progress {
    max-width: 120px;
  }
  .slide-name {
    display: none;
  }
  .section {
    padding: 80px 0;
  }
  .display {
    margin-bottom: 36px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .steps li {
    gap: 16px;
  }
  .num {
    font-size: 40px;
    min-width: 48px;
  }
  .cta {
    padding: 80px 16px;
  }
  .cta-frame {
    padding: 56px 12px;
  }
  .cta-frame .c {
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track,
  .slide.is-active.kb img,
  .progress i.run::after {
    animation: none;
  }
  .js [data-reveal],
  .how-photo img {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.home main {
  padding: 0;
}
.faq-list {
  max-width: 860px;
}

/* ======================================================================
   Text pages (privacy, terms, support, delete account)
   ====================================================================== */
.page {
  background: var(--bg);
}

/* Dark header band, like the home hero */
.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse at 80% 30%, rgba(18, 194, 176, 0.2), transparent 55%),
    radial-gradient(ellipse at 10% 100%, rgba(59, 232, 160, 0.08), transparent 50%),
    var(--night);
  padding-top: 80px;
  padding-bottom: 88px;
}
.page-hero .nav a[aria-current='page'] {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--mint);
  text-underline-offset: 6px;
}
.page-hero-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
  padding-top: 56px;
}
.page-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(52px, 7.4vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: #fff;
}
.page-title em {
  font-style: italic;
  color: var(--mint);
}
.page-hero .lead {
  color: rgba(255, 255, 255, 0.78);
  font-size: 19px;
  max-width: 560px;
  margin: 0 0 28px;
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
a.meta:hover {
  border-color: var(--mint);
  color: #fff;
}
.meta b {
  color: var(--mint);
  font-weight: 600;
}

/* Photo in the scan frame */
.page-art {
  position: relative;
  justify-self: center;
  width: min(100%, 360px);
  aspect-ratio: 1;
}
.page-art .shot {
  position: absolute;
  inset: 0;
  border-radius: 32px;
  overflow: hidden;
}
.page-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-art .c {
  width: 64px;
  height: 64px;
  max-width: none;
  max-height: none;
  top: auto;
  left: auto;
  right: auto;
  bottom: auto;
}
.page-art .c.tl { top: -18px; left: -18px; }
.page-art .c.tr { top: -18px; right: -18px; }
.page-art .c.bl { bottom: -18px; left: -18px; }
.page-art .c.br { bottom: -18px; right: -18px; }
.page-art .scan-line {
  opacity: 1;
  top: 50%;
}
.page-art .float-card {
  left: -28px;
  right: auto;
  bottom: 28px;
  z-index: 2;
}

/* Page hero motion */
.js .page-title .line > span {
  animation: rise 1.1s var(--ease-out) both;
}
.js .page-title .line:nth-child(2) > span {
  animation-delay: 0.12s;
}
.js .page-hero .eyebrow,
.js .page-hero .lead,
.js .page-hero .meta-row {
  animation: fade-up 0.9s var(--ease-out) 0.3s both;
}
.js .page-hero .lead {
  animation-delay: 0.4s;
}
.js .page-hero .meta-row {
  animation-delay: 0.5s;
}
.js .page-art .shot {
  animation: art-reveal 1.3s var(--ease-io) 0.2s both;
}
.js .page-art .shot img {
  animation: zoom-in 2.2s var(--ease-out) 0.2s both;
}
.js .page-art .c {
  animation: corner-in 1.3s var(--ease-io) 0.2s both;
}
.js .page-art .scan-line {
  animation: art-scan 2.4s ease-in-out 0.6s infinite alternate;
}
.js .page-art .float-card {
  animation: pop 0.7s var(--ease-out) 1.3s both;
}
@keyframes art-reveal {
  from { clip-path: inset(38% 38% round 24px); }
  to { clip-path: inset(0 round 32px); }
}
@keyframes corner-in {
  from { transform: scale(0.3); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.js .page-art .c.tl { transform-origin: 300% 300%; }
.js .page-art .c.tr { transform-origin: -200% 300%; }
.js .page-art .c.bl { transform-origin: 300% -200%; }
.js .page-art .c.br { transform-origin: -200% -200%; }
@keyframes art-scan {
  from { top: 6%; }
  to { top: 94%; }
}

/* Body: contents list + text */
.doc {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 72px;
  padding: 88px 16px 112px;
}
.toc {
  position: sticky;
  top: 104px;
  align-self: start;
  max-height: calc(100vh - 136px);
  overflow: auto;
}
.toc p {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}
.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--border);
}
.toc li {
  margin: 0;
}
.toc a {
  display: block;
  padding: 7px 0 7px 16px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.25s, border-color 0.25s;
}
.toc a:hover {
  color: var(--text);
}
.toc a.active {
  color: var(--text);
  font-weight: 700;
  border-left-color: var(--teal);
}

.prose {
  max-width: 780px;
}
.prose > :first-child {
  margin-top: 0;
}
.prose h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 3.6vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 72px 0 16px;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.h-num {
  font-style: italic;
  color: var(--teal);
  font-size: 0.7em;
  min-width: 1.4em;
}
.prose h3 {
  font-size: 19px;
  margin: 32px 0 6px;
}
.prose p,
.prose li {
  font-size: 17px;
  line-height: 1.7;
}
.prose ul,
.prose ol {
  padding-left: 22px;
}
.prose li {
  margin: 6px 0;
}
.prose li::marker {
  color: var(--teal);
}
.prose .note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 22px 24px;
  margin: 24px 0;
  position: relative;
  overflow: hidden;
}
.prose .note::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(var(--mint), var(--mint-2));
}
.prose .note.dark {
  background: var(--night);
  border-color: var(--night);
}
.prose .note.dark p,
.prose .note.dark strong {
  color: rgba(255, 255, 255, 0.85);
}
.prose .note.dark strong {
  color: var(--mint);
}
.prose .table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow-x: auto;
  margin: 20px 0;
}
.prose table {
  margin: 0;
}
.prose th,
.prose td {
  padding: 14px 18px;
}
.prose th {
  background: rgba(242, 239, 235, 0.6);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.prose tr:last-child td {
  border-bottom: 0;
}

/* Support: questions as accordions */
.prose .faq-list {
  margin-top: 8px;
}
.prose .faq-list summary {
  font-size: 18px;
}

/* Delete account: steps and two columns */
.prose .steps {
  margin: 16px 0 8px;
}
.prose .steps li {
  margin: 0;
  padding: 22px 0;
}
.prose .steps .num {
  font-size: 44px;
  min-width: 56px;
}
.prose .steps p {
  margin: 4px 0 0;
}
.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}
.col-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px 24px 12px;
}
.col-card h3 {
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.col-card ul {
  margin: 0;
  padding-left: 20px;
}
.col-card li {
  font-size: 16px;
}
.badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e5484d;
}
.badge-dot.keep {
  background: #ffb547;
}

/* Contact card used at the end of text pages */
.contact-card {
  margin-top: 72px;
  border-radius: 32px;
  padding: 40px 36px;
  background:
    radial-gradient(ellipse at 90% 0%, rgba(18, 194, 176, 0.25), transparent 60%),
    var(--night);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.contact-card p {
  color: rgba(255, 255, 255, 0.72);
  margin: 8px 0 0;
}

@media (max-width: 900px) {
  .page-hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .page-art {
    width: min(72%, 300px);
    justify-self: start;
    margin-left: 18px;
  }
  .doc {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-top: 56px;
  }
  .toc {
    display: none;
  }
}
@media (max-width: 700px) {
  .page-hero {
    padding-bottom: 64px;
  }
  .page-hero-inner {
    padding-top: 28px;
  }
  .page-hero .lead {
    font-size: 17px;
  }
  .page-art {
    display: none;
  }
  .prose h2 {
    margin-top: 56px;
  }
  .cols {
    grid-template-columns: 1fr;
  }
  .contact-card {
    padding: 32px 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .js .page-title .line > span,
  .js .page-hero .eyebrow,
  .js .page-hero .lead,
  .js .page-hero .meta-row,
  .js .page-art .shot,
  .js .page-art .shot img,
  .js .page-art .c,
  .js .page-art .scan-line,
  .js .page-art .float-card {
    animation: none;
  }
}
.contact-card .ct {
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 40px);
  line-height: 1.05;
  color: #fff;
  margin: 0;
}
.contact-card .ct em {
  font-style: italic;
  color: var(--mint);
}
.page-hero strong {
  color: #fff;
}
.prose .note.dark a {
  color: var(--mint);
}
.prose .steps {
  padding: 0;
  list-style: none;
}
.prose .steps h3 {
  margin: 6px 0 2px;
}
