/* ==========================================================================
   Aceit — shared styles
   Soft, editorial, "Pinterest-aesthetic" grade tracker.
   No build step, no frameworks, no external requests.
   ========================================================================== */

:root {
  /* Surfaces */
  --cream: #F7F4EF;
  --white: #FFFFFF;

  /* Text */
  --ink: #2B2722;            /* warm near-black */
  --ink-muted: rgba(43, 39, 34, 0.55);
  --ink-soft: rgba(43, 39, 34, 0.40);

  /* Accents */
  --sage: #9CAF88;
  --sage-deep: #7E9268;      /* slightly darker sage for AA text on cream/white */
  --clay: #D8A48F;
  --terracotta: #C77B5A;

  /* Lines & fills (no hard borders — gentle tints only) */
  --hairline: rgba(43, 39, 34, 0.08);
  --tint: rgba(156, 175, 136, 0.12);

  /* Shape & depth */
  --radius: 20px;
  --radius-sm: 14px;
  --radius-pill: 999px;
  --shadow: 0 8px 24px rgba(43, 39, 34, 0.07);
  --shadow-lg: 0 18px 48px rgba(43, 39, 34, 0.10);
  --shadow-sm: 0 4px 14px rgba(43, 39, 34, 0.06);

  /* Type */
  --serif: "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --rounded: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --maxw: 1080px;
  --gutter: clamp(20px, 5vw, 40px);
}

/* ----- Reset-ish ----- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--rounded);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0.1px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--sage-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--sage-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ----- Headings ----- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.5rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

/* ----- Layout helpers ----- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(56px, 9vw, 104px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }

.eyebrow {
  font-family: var(--rounded);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin: 0 0 0.9em;
}

.center { text-align: center; }
.measure { max-width: 62ch; }
.measure-narrow { max-width: 48ch; }
.center.measure,
.center.measure-narrow { margin-inline: auto; }

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--ink);
  color: var(--cream);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  z-index: 200;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; text-decoration: none; }

/* ==========================================================================
   App icon (inline SVG sizing)
   ========================================================================== */
.app-icon { width: 40px; height: 40px; flex: none; }
.app-icon--lg { width: clamp(92px, 22vw, 124px); height: clamp(92px, 22vw, 124px); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 239, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding-block: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand .app-icon { width: 30px; height: 30px; }

.wordmark {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  color: var(--ink-muted);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
}
.site-nav a:hover { color: var(--ink); background: var(--tint); text-decoration: none; }
.site-nav a.is-cta {
  color: var(--ink);
  background: var(--sage);
  box-shadow: var(--shadow-sm);
}
.site-nav a.is-cta:hover { background: var(--sage-deep); color: var(--white); }

/* Mobile nav toggle (hidden on wider screens) */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--ink);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle:hover { background: var(--tint); }
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 620px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: var(--gutter);
    left: var(--gutter);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 14px; text-align: left; }
  .site-nav a.is-cta { text-align: center; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--rounded);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  padding: 15px 26px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; }

.btn--primary {
  background: var(--sage);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: #A7B894;
}
.btn--primary .btn__sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.72;
  line-height: 1;
  margin-top: 2px;
}

.btn__icon { width: 20px; height: 20px; flex: none; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 10vw, 108px);
  text-align: center;
}
/* soft radial glow behind hero */
.hero::before {
  content: "";
  position: absolute;
  inset: -20% 0 auto 0;
  height: 460px;
  background:
    radial-gradient(60% 70% at 50% 0%, rgba(156, 175, 136, 0.20), rgba(156, 175, 136, 0) 70%),
    radial-gradient(40% 50% at 80% 10%, rgba(216, 164, 143, 0.16), rgba(216, 164, 143, 0) 70%);
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

.hero__icon { margin: 0 auto 28px; }
.hero h1 { max-width: 17ch; margin-inline: auto; }
.hero__sub {
  font-size: clamp(1.05rem, 2.1vw, 1.22rem);
  color: var(--ink-muted);
  max-width: 52ch;
  margin: 0.8em auto 0;
}
.hero__cta { margin-top: 34px; }
.hero__note {
  margin-top: 14px;
  font-size: 0.86rem;
  color: var(--ink-soft);
  font-weight: 600;
}

/* ==========================================================================
   "One question" — reverse calculator spotlight
   ========================================================================== */
.spotlight { background: var(--cream); }
.spotlight__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 800px) {
  .spotlight__grid { grid-template-columns: 1fr; }
}

.question {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.4vw, 2.15rem);
  line-height: 1.18;
  color: var(--ink);
  margin: 0.2em 0 0.6em;
}
.question em { font-style: italic; color: var(--sage-deep); }

/* The stylized result card */
.result-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: clamp(26px, 4vw, 40px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.result-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -40% auto;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(156,175,136,0.16), rgba(156,175,136,0) 70%);
  pointer-events: none;
}
.result-card__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 6px;
}
.result-card__number {
  font-family: var(--serif);
  font-size: clamp(4.4rem, 14vw, 6.4rem);
  font-weight: 600;
  line-height: 0.95;
  color: var(--sage-deep);
  letter-spacing: -0.02em;
  margin: 6px 0 10px;
}
.result-card__caption {
  font-size: 1.02rem;
  color: var(--ink-muted);
  max-width: 26ch;
  margin: 0 auto;
}
.result-card__caption strong { color: var(--ink); font-weight: 700; }

.result-card__meter {
  margin: 22px auto 4px;
  max-width: 280px;
}
.result-card__track {
  height: 12px;
  border-radius: var(--radius-pill);
  background: var(--tint);
  overflow: hidden;
}
.result-card__fill {
  height: 100%;
  width: 92%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--sage), var(--sage-deep));
}
.result-card__scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--ink-soft);
  font-weight: 600;
  margin-top: 8px;
}

/* ==========================================================================
   Features grid
   ========================================================================== */
.features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 2.6vw, 26px);
  margin-top: clamp(32px, 5vw, 52px);
}
@media (max-width: 640px) {
  .features__grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(24px, 3.4vw, 34px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.card__glyph {
  width: 56px; height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--tint);
  margin-bottom: 18px;
}
.card__glyph svg { width: 30px; height: 30px; }
.card__glyph--clay { background: rgba(216, 164, 143, 0.16); }
.card__glyph--terra { background: rgba(199, 123, 90, 0.14); }

.card h3 { margin-bottom: 0.35em; }
.card p { color: var(--ink-muted); font-size: 0.98rem; margin: 0; }

/* ==========================================================================
   How it works
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 30px);
  margin-top: clamp(32px, 5vw, 52px);
  counter-reset: step;
}
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; gap: 16px; }
}

.step {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(22px, 3vw, 30px);
  position: relative;
}
.step__num {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--sage);
  line-height: 1;
  display: block;
  margin-bottom: 10px;
}
.step h3 { font-size: 1.16rem; margin-bottom: 0.3em; }
.step p { color: var(--ink-muted); font-size: 0.96rem; margin: 0; }

/* Closing call-to-action band */
.cta-band { text-align: center; }
.cta-band__inner {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: clamp(38px, 6vw, 64px);
  position: relative;
  overflow: hidden;
}
.cta-band__inner::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 300px;
  background: radial-gradient(50% 100% at 50% 0%, rgba(156,175,136,0.18), rgba(156,175,136,0) 70%);
  pointer-events: none;
}
.cta-band__inner > * { position: relative; }
.cta-band h2 { max-width: 18ch; margin-inline: auto; }
.cta-band p { color: var(--ink-muted); max-width: 46ch; margin: 0 auto 1.6em; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--cream);
  border-top: 1px solid var(--hairline);
  padding-block: clamp(40px, 6vw, 64px);
}
.site-footer__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
}
.site-footer .brand .app-icon { width: 34px; height: 34px; }
.footer-tagline {
  color: var(--ink-muted);
  font-size: 0.96rem;
  max-width: 34ch;
  margin: 14px 0 0;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a, .footer-links span {
  color: var(--ink-muted);
  font-weight: 600;
  font-size: 0.96rem;
}
.footer-links a:hover { color: var(--ink); }
.footer-col h4 {
  font-family: var(--rounded);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* ==========================================================================
   Legal / document pages
   ========================================================================== */
.doc {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 60px);
  margin-block: clamp(28px, 5vw, 56px);
  max-width: 820px;
  margin-inline: auto;
}
.doc__header { margin-bottom: 2rem; }
.doc__header h1 { font-size: clamp(1.9rem, 4.4vw, 2.7rem); margin-bottom: 0.3em; }
.doc__meta {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}
.doc__lead {
  font-size: 1.08rem;
  color: var(--ink-muted);
  border-left: 3px solid var(--sage);
  padding-left: 18px;
  margin: 1.4rem 0 0;
}

.doc h2 {
  font-size: 1.5rem;
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--hairline);
}
.doc h2:first-of-type { border-top: none; padding-top: 0; }
.doc h3 { font-size: 1.16rem; margin-top: 1.5rem; }
.doc p, .doc li { color: var(--ink); font-size: 1rem; }
.doc p { color: rgba(43, 39, 34, 0.82); }
.doc ul { padding-left: 1.25em; margin: 0 0 1em; }
.doc li { margin-bottom: 0.5em; color: rgba(43, 39, 34, 0.82); }
.doc a { color: var(--sage-deep); font-weight: 600; }
.doc strong { color: var(--ink); }

/* Highlighted callout (e.g. the "not official records" disclaimer) */
.callout {
  background: rgba(199, 123, 90, 0.08);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 1.4rem 0;
}
.callout--terra { background: rgba(199, 123, 90, 0.10); }
.callout p { margin: 0; color: var(--ink); }
.callout strong { color: var(--terracotta); }

.toc-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--sage-deep);
  margin-top: 2.4rem;
}

.contact-line {
  margin-top: 0.4rem;
  font-weight: 600;
}
