/* Pally Studio — shared styles
   World: warm cream paper, ink, coral accent, friendly teal (sparing).
   Type: Fraunces (display) + Nunito Sans (body) via Google Fonts, system fallbacks. */

:root {
  --bg: #FFFBF5;
  --surface: #FFFFFF;
  --ink: #26221E;
  --ink-soft: #57504A;        /* secondary text — 7.5:1 on --bg */
  --coral: #E4572E;            /* decorative accent / large display only */
  --coral-deep: #C23A17;       /* button bg + link text — 5.3:1 with white, 5.1:1 on --bg */
  --coral-tint: #FDEAE3;
  --teal: #2E7D6B;             /* decorative / borders */
  --teal-deep: #1F5C4E;        /* teal text — 6.9:1 on tints */
  --teal-tint: #E2EFEA;
  --line: #EFE3D5;
  --code-bg: #F3E9DE;
  --radius: 24px;
  --shadow-soft: 0 18px 40px -18px rgba(38, 34, 30, 0.22);
  --shadow-btn: 0 10px 24px -8px rgba(194, 58, 23, 0.45);
  --font-body: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--coral-tint); color: var(--ink); }

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

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.15rem, 5vw, 3.35rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.15rem); margin-top: 0; }
h3 { font-size: 1.28rem; }

p { margin: 0 0 1em; }
.lede { font-size: 1.19rem; color: var(--ink-soft); max-width: 62ch; }
.small { font-size: 0.94rem; color: var(--ink-soft); }

a { color: var(--coral-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--code-bg);
  padding: 0.12em 0.4em;
  border-radius: 6px;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: relative;
  z-index: 20;
}

.header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand .brand-dot { color: var(--coral); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}
.nav a:hover { color: var(--coral-deep); }

.nav-mobile { display: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--coral-deep);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 999px;
  box-shadow: var(--shadow-btn);
  border: 2px solid var(--coral-deep);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { background: #A93313; border-color: #A93313; color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: none;
}
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.btn-small { padding: 9px 20px; font-size: 0.98rem; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 28px 0 18px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 64px;
}

.blob {
  position: absolute;
  border-radius: 58% 42% 55% 45% / 55% 48% 52% 45%;
  pointer-events: none;
}
.blob-coral { width: 520px; height: 520px; background: var(--coral-tint); top: -220px; right: -140px; }
.blob-teal { width: 300px; height: 300px; background: var(--teal-tint); bottom: -170px; left: -110px; }

.hero-in { position: relative; max-width: 760px; }

/* The one authored motion moment: a single gentle rise for the hero copy. */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-in { animation: heroRise 0.7s cubic-bezier(0.22, 0.8, 0.3, 1) both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-in { animation: none; }
  .btn { transition: none; }
}

.hero .lede { max-width: 58ch; }

.assurances {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  color: var(--ink-soft);
  font-size: 0.98rem;
  font-weight: 600;
}
.assurances li { display: flex; align-items: center; gap: 8px; }
.assurances svg { flex: none; }

/* ---------- Sections & panels ---------- */

section { padding: 56px 0; }
section.tight { padding: 36px 0; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 32px;
}

.panel-tint { background: var(--coral-tint); border-color: #F6D9CD; box-shadow: none; }

/* Finding (report excerpt) */

.finding { max-width: 760px; }
.finding h3 { margin-bottom: 0.35em; }
.finding p:last-child { margin-bottom: 0; }
.finding .label {
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 18px 0 2px;
}
.finding .label:first-of-type { margin-top: 14px; }

.chip {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}
.chip-crit { background: var(--coral-tint); color: var(--coral-deep); }
.chip-important { background: #FBF0DC; color: #7A4A08; }
.chip-pass { background: var(--teal-tint); color: var(--teal-deep); }

/* Check groups */

.check-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 30px;
}
.check-group {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
}
.check-group h3 { margin-bottom: 0.5em; }
.check-group ul { list-style: none; margin: 0; padding: 0; }
.check-group li {
  padding: 7px 0 7px 22px;
  position: relative;
  color: var(--ink-soft);
}
.check-group li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}
.check-group li strong { color: var(--ink); }

/* Steps */

ol.steps {
  list-style: none;
  counter-reset: step;
  margin: 30px 0 0;
  padding: 0;
  max-width: 780px;
}
ol.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 30px 74px;
}
ol.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -4px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--coral-tint);
  color: var(--coral-deep);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
ol.steps h3 { margin-bottom: 0.25em; }
ol.steps p { color: var(--ink-soft); margin-bottom: 0; max-width: 60ch; }

/* Pricing */

.price-panel { max-width: 680px; margin: 30px auto 0; text-align: left; }
.price-amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.2rem;
  line-height: 1;
}
.price-amount span { font-size: 1.1rem; font-family: var(--font-body); font-weight: 700; color: var(--ink-soft); }
.included { list-style: none; margin: 20px 0 26px; padding: 0; }
.included li { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; }
.included svg { flex: none; margin-top: 5px; }

/* Plain lists */

.plain-list { list-style: none; margin: 14px 0 0; padding: 0; max-width: 720px; }
.plain-list li { padding: 9px 0 9px 26px; position: relative; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.plain-list li:last-child { border-bottom: none; }
.plain-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 19px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--coral);
}
.plain-list strong { color: var(--ink); }

/* FAQ */

.faq-list { max-width: 800px; margin-top: 26px; }
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 4px 26px;
  margin-bottom: 12px;
}
.faq-list summary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.16rem;
  cursor: pointer;
  padding: 16px 0;
  list-style-position: outside;
}
.faq-list details p { color: var(--ink-soft); padding-bottom: 18px; margin: 0; max-width: 68ch; }

/* Prose pages (privacy / terms / about) */

.prose { max-width: 760px; }
.prose h2 { margin-top: 1.4em; font-size: 1.5rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose strong { color: var(--ink); }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }

/* Sample report header */

.report-head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px 30px;
  margin: 26px 0 34px;
}
.report-head dt { font-size: 0.85rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-soft); }
.report-head dd { margin: 2px 0 0; font-weight: 700; }

.pass-list { list-style: none; margin: 12px 0 0; padding: 0; }
.pass-list li { display: flex; gap: 10px; padding: 5px 0; align-items: flex-start; }
.pass-list svg { flex: none; margin-top: 5px; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 38px 0 46px;
  color: var(--ink-soft);
  font-size: 0.97rem;
}
.footer-in { display: flex; flex-wrap: wrap; gap: 10px 34px; align-items: baseline; justify-content: space-between; }
.footer-brand { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--ink); }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer nav a { color: var(--ink-soft); font-weight: 600; }
.site-footer nav a:hover { color: var(--coral-deep); }
.footer-meta { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 22px; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .check-groups { grid-template-columns: 1fr; }
  .hero { padding: 52px 0 48px; }
  section { padding: 44px 0; }
}

@media (max-width: 680px) {
  .nav { display: none; }
  .nav-mobile { display: block; position: relative; }
  .nav-mobile summary {
    font-weight: 700;
    cursor: pointer;
    padding: 9px 18px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    list-style: none;
  }
  .nav-mobile summary::-webkit-details-marker { display: none; }
  .nav-mobile nav {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    padding: 14px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 210px;
  }
  .nav-mobile nav a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 4px;
  }
  .nav-mobile nav a.btn { color: #fff; text-align: center; margin-top: 8px; }
  .panel { padding: 24px; }
  .check-group { padding: 22px; }
  ol.steps li { padding-left: 62px; }
  ol.steps li::before { width: 42px; height: 42px; font-size: 1.12rem; }
}
