/* Atone landing — design tokens */
:root {
  --paper: #F5ECD5;
  --paper-deep: #ECDFBE;
  --card: #FEF9F3;
  --ink: #4A3728;
  /* Secondary text. #8B7355 scored 3.81:1 on --paper, under the 4.5:1 AA floor;
     this is 5.9:1 and still reads a step back from --ink. */
  --ink-soft: #6B563E;
  --line: #E2D2B2;
  --amber: #A0522D;
  --amber-deep: #8B4513;
  --tone1: #C03A2B;
  --tone2: #2F8A57;
  --tone3: #2E5FBF;
  --tone4: #7C3FA6;
  --radius: 18px;
  --shadow: 0 18px 40px -18px rgba(74, 55, 40, 0.35);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.25rem;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; }
a { color: var(--amber-deep); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--tone3);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4.5rem 0; }
.section + .section { border-top: 1px solid var(--line); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.eyebrow svg { flex: none; }

.muted { color: var(--ink-soft); }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 236, 213, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.7rem 1.25rem;
  max-width: 1080px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.brand img { width: 34px; height: 34px; border-radius: 50%; }
.nav-links {
  display: flex;
  gap: 1.4rem;
  margin-left: auto;
  align-items: center;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}
.nav-links a:hover { color: var(--amber-deep); }
.nav-cta {
  background: var(--amber);
  color: #fff !important;
  padding: 0.45rem 1rem;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--amber-deep); }
@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* Hero */
.hero { padding: 4.5rem 0 3.5rem; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}
/* Each headline line is one line, always. The two sizes below are tuned to the
   narrowest column the line has to fit: the 1.15fr hero column on desktop, the
   full container width once the grid collapses at 860px. */
.hero h1 { font-size: clamp(1.6rem, 4.6vw, 3.1rem); }
.hero h1 .line { white-space: nowrap; }
.hero h1 .strike {
  position: relative;
  white-space: nowrap;
}
.hero h1 .strike::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  top: 54%;
  height: 0.09em;
  background: var(--tone1);
  transform: rotate(-2deg);
  border-radius: 2px;
}
.hero-sub { font-size: 1.3rem; max-width: 34em; }
.hero-thesis {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 600;
  color: var(--amber-deep);
  margin: 0.2rem 0 0.4rem;
}
.hero-thesis em { font-style: italic; color: var(--ink-soft); }
.tone-strokes {
  display: flex;
  gap: 0.9rem;
  margin: 1.2rem 0 1.6rem;
}
.tone-strokes svg { overflow: visible; }
.tone-strokes path {
  stroke-width: 5;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: draw 0.7s ease forwards;
}
.tone-strokes svg:nth-child(1) path { stroke: var(--tone1); animation-delay: 0.1s; }
.tone-strokes svg:nth-child(2) path { stroke: var(--tone2); animation-delay: 0.35s; }
.tone-strokes svg:nth-child(3) path { stroke: var(--tone3); animation-delay: 0.6s; }
.tone-strokes svg:nth-child(4) path { stroke: var(--tone4); animation-delay: 0.85s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-points {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0;
  margin: 1.4rem 0 0;
  list-style: none;
  color: var(--ink-soft);
  font-weight: 600;
}
.hero-points li::before { content: "✓ "; color: var(--tone2); }

/* Store badges */
.badges { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--ink);
  color: #FEF9F3;
  text-decoration: none;
  border-radius: 12px;
  padding: 0.55rem 1.1rem;
  min-width: 180px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.badge:hover { transform: translateY(-2px); background: #3A2A1E; }
.badge svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.badge small { display: block; font-size: 0.68rem; opacity: 0.85; letter-spacing: 0.04em; }
.badge strong { display: block; font-size: 1.05rem; line-height: 1.15; }

/* Phone mockups */
.phone {
  border: 10px solid var(--ink);
  border-radius: 40px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow);
  max-width: 320px;
  margin: 0 auto;
}
.phone img { display: block; border-radius: 30px; }
.hero .phone { transform: rotate(2deg); }

/* Shots */
.shots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}
.shot figcaption {
  text-align: center;
  margin-top: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.shot .phone { max-width: 240px; border-width: 7px; border-radius: 30px; }
.shot .phone img { border-radius: 23px; }

/* Steps / cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
  margin-top: 2.2rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.card .step-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 40px;
  border-radius: 12px;
  background: var(--paper-deep);
  margin-bottom: 1rem;
}
.card p { margin: 0; color: var(--ink-soft); }

/* Guide cards */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.3rem;
  margin-top: 2.2rem;
}
.guide-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.guide-card h3 { margin: 0.6rem 0 0.4rem; }
.guide-card p { margin: 0; color: var(--ink-soft); font-size: 1.05rem; }
.guide-card .more { display: inline-block; margin-top: 0.8rem; font-weight: 700; color: var(--amber-deep); }

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
  margin-top: 2.2rem;
  max-width: 760px;
}
.price-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.price-card.pro { border: 2px solid var(--amber); }
.price-card .tier {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.price-card ul { list-style: none; padding: 0; margin: 0; }
.price-card li { margin-bottom: 0.5rem; color: var(--ink-soft); }
.price-card li::before { content: "✓ "; color: var(--tone2); font-weight: 700; }

/* FAQ */
.faq-list { margin-top: 2rem; }
.faq-topic {
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin: 2.2rem 0 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}
.faq-topic:first-child { margin-top: 0; }
.faq-list details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.2rem 1.3rem;
  margin-bottom: 0.8rem;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.9rem 0;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--amber);
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin: 0 0 1.1rem; color: var(--ink-soft); }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, #8B4513 0%, #CD853F 100%);
  color: #FEF9F3;
  border-radius: 26px;
  padding: 3.2rem 2.5rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  overflow: hidden;
}
.cta-band h2 { color: #FEF9F3; }
.cta-band p { color: #FAEDD8; }
.cta-band .badge { background: var(--ink); color: #FEF9F3; }
.cta-band .badge:hover { background: #3A2A1E; }
.cta-art img { border-radius: 18px; box-shadow: var(--shadow); }

/* Footer */
footer.site {
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
  padding: 3rem 0 2rem;
  margin-top: 4.5rem;
  font-size: 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}
footer.site h3 { font-size: 1.05rem; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin-bottom: 0.45rem; }
footer.site a { color: var(--ink-soft); text-decoration: none; }
footer.site a:hover { color: var(--amber-deep); text-decoration: underline; }
.footer-bottom {
  margin-top: 2.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Guide article pages */
.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 2rem;
}
.article .breadcrumbs {
  font-size: 0.95rem;
  margin-bottom: 1.4rem;
  color: var(--ink-soft);
}
.article .breadcrumbs a { color: var(--ink-soft); }
.article .lede { font-size: 1.3rem; color: var(--ink-soft); }
.article h2 { margin-top: 2.4rem; }
.article ul, .article ol { padding-left: 1.4rem; }
.article li { margin-bottom: 0.5rem; }
.article table { border-collapse: collapse; width: 100%; margin: 1.2rem 0; }
.article th, .article td { border: 1px solid var(--line); padding: 0.55rem 0.8rem; text-align: left; }
.article th { background: var(--paper-deep); font-family: var(--font-display); }
.tone-word b { font-weight: 800; }
.t1 { color: var(--tone1); } .t2 { color: var(--tone2); }
.t3 { color: var(--tone3); } .t4 { color: var(--tone4); }
.article .guide-illo { margin: 2rem 0; }
.article .guide-illo img {
  width: 100%; height: auto; display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.6rem;
}
.article .guide-illo figcaption {
  margin-top: 0.7rem; text-align: center;
  font-size: 1rem; color: var(--ink-soft);
}

/* Account deletion page */
.article.deletion-card {
  max-width: 800px;
  width: calc(100% - 2.5rem);
  margin: 4rem auto;
  padding: 3rem;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.deletion-contact {
  margin: 2.5rem 0;
  text-align: center;
}
.deletion-contact a {
  display: inline-block;
  padding: 1rem 2.5rem;
  color: #fff;
  background: var(--amber-deep);
  border: 2px solid var(--amber-deep);
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.deletion-contact a:hover {
  background: var(--amber);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(139, 69, 19, 0.2);
}

.in-atone {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 6px solid var(--amber);
  border-radius: var(--radius);
  padding: 1.8rem;
  margin: 2.6rem 0;
}
.in-atone h2 { margin-top: 0; }
.article .shot-inline { margin: 2rem auto; }
.article .shot-inline .phone { max-width: 260px; }

.related {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding-top: 1.6rem;
}

/* Legal documents page — mirrors the React legal card. */
.legal-main {
  padding: 4rem 2rem;
}
.legal-content {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}
.legal-content .breadcrumbs {
  margin: 0 0 1.4rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.legal-content .breadcrumbs a { color: var(--ink-soft); }
.legal-card {
  overflow: hidden;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.legal-card-header {
  display: flex;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e0e0e0;
}
.legal-card-header h1 {
  margin: 0;
  color: #333;
  font-size: 24px;
}
.legal-tabs {
  display: flex;
  border-bottom: 1px solid #e0e0e0;
}
.legal-tab {
  flex: 1;
  padding: 16px;
  color: #666;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.legal-tab:hover {
  color: #333;
  background: #f5f5f5;
}
.legal-tab.active {
  color: var(--amber-deep);
  border-bottom-color: var(--amber-deep);
}
.legal-body { padding: 32px 40px; }
.legal-text {
  color: #333;
  line-height: 1.6;
}
.legal-text h2 { margin-top: 2rem; font-size: 1.45rem; }
.legal-text h3 { margin-top: 1.5rem; font-size: 1.15rem; }
.legal-text ul, .legal-text ol { padding-left: 1.4rem; }
.legal-text li { margin-bottom: 0.5rem; }
.legal-text table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; }
.legal-text th, .legal-text td {
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  text-align: left;
}
.legal-text th { background: var(--paper-deep); font-family: var(--font-display); }
.legal-text blockquote {
  margin: 0 0 0.9rem;
  padding: 0.3rem 0.9rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--line);
}
.legal-loading {
  padding: 40px;
  color: #666;
  text-align: center;
}
.legal-meta {
  margin: 20px 0 0;
  padding-top: 16px;
  color: #666;
  border-top: 1px solid #e0e0e0;
  font-size: 14px;
}
.legal-help {
  margin: 2rem 0 0;
  color: var(--ink-soft);
}
.back-home-link {
  display: inline-block;
  margin-top: 2rem;
  color: var(--ink-soft);
  font-size: 1rem;
  text-decoration: none;
}
.back-home-link:hover { color: var(--amber-deep); }

/* Secondary text sits at 500 — a notch above the 400 body — so the lighter
   --ink-soft colour still reads cleanly on the paper background. Kept last in
   the base styles so it wins on order; rules already at 600+ (.eyebrow,
   .hero-points, .shot figcaption) set their own weight and are left alone. */
.muted,
.card p,
.guide-card p,
.price-card li,
.faq-list details p,
.footer-bottom,
footer.site a,
.article .breadcrumbs,
.article .lede,
.article .guide-illo figcaption,
.legal-content .breadcrumbs,
.legal-text blockquote,
.legal-help,
.back-home-link { font-weight: 500; }

@media (max-width: 860px) {
  .hero-grid, .cta-band, .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(1.6rem, 7vw, 3.1rem); }
  .hero .phone { transform: none; margin-top: 1rem; }
  .cta-art { display: none; }
  .section { padding: 3.2rem 0; }
}

@media (max-width: 720px) {
  .legal-main { padding: 2rem 1rem; }
  .legal-body { padding: 20px; }
  .article.deletion-card {
    width: calc(100% - 2rem);
    margin: 2rem auto;
    padding: 2rem;
  }
  .deletion-contact a {
    padding: 0.9rem 2rem;
    font-size: 1.1rem;
  }
}
