/* PartFolk — partfolk.com
   Palette mirrors ios/Partfolk/Design/Theme.swift: warm paper by day, deep plum by night.
   System fonts only (New York / SF on Apple devices): no font requests, nothing to track. */

:root {
  color-scheme: light dark;
  --bg: #f6efe4;
  --surface: #fffaf2;
  --raised: #fffdf9;
  --sunken: #efe6d8;
  --hairline: #e6d9c8;
  --ink: #2e2430;
  --ink-soft: #655761;
  --ink-faint: #746570;
  --accent: #a5533a;
  --on-accent: #fff8f0;
  --glow: #d9a441;
  --core: #fff6df;
  --terracotta: #c0664a;
  --gold: #c9973c;
  --sage: #7e9a7a;
  --blue: #6f8ba8;
  --rose: #bc7c84;
  --calm: #eef2f4;
  --calm-edge: #d5dee3;

  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-card: 24px;
  --radius-chip: 14px;
  --gutter: 20px;
  --max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1520;
    --surface: #271e2c;
    --raised: #312637;
    --sunken: #160f19;
    --hairline: #3e3244;
    --ink: #f4ebe1;
    --ink-soft: #c4b6bd;
    --ink-faint: #9b8c95;
    --accent: #ec9a7e;
    --on-accent: #2a1a16;
    --glow: #f0c46e;
    --core: #fff1cf;
    --terracotta: #e38d70;
    --gold: #e8be6a;
    --sage: #a8c2a2;
    --blue: #9db6cf;
    --rose: #dda2a8;
    --calm: #1f2a33;
    --calm-edge: #2e3d49;
  }
}

/* ---------- base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1rem;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 1.6rem + 3vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }
p, li { text-wrap: pretty; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

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

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 10px;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ---------- header & footer ---------- */

.site-header { padding-block: 18px; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
}
.brand-mark { width: 36px; height: 36px; flex: none; }

.site-header ul, .site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.site-header nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  padding-block: 8px;
  display: inline-block;
}
.site-header nav a:hover { color: var(--ink); }
.site-header nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.4em;
}

.site-footer {
  margin-top: 64px;
  padding-block: 40px 48px;
  border-top: 1px solid var(--hairline);
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.site-footer ul { margin-bottom: 20px; }
.site-footer nav a { color: var(--ink); }
.site-footer p { max-width: 70ch; }
.site-footer a { color: var(--ink); }

/* ---------- the hearth ---------- */

.hearth .stop-glow { stop-color: var(--glow); }
.hearth .stop-core { stop-color: var(--core); }
.folk { fill-opacity: 0.88; }
.folk-terracotta { fill: var(--terracotta); }
.folk-gold { fill: var(--gold); }
.folk-sage { fill: var(--sage); }
.folk-blue { fill: var(--blue); }
.folk-rose { fill: var(--rose); }

@media (prefers-reduced-motion: no-preference) {
  .hearth-hero .folk,
  .hearth-hero .halo,
  .hearth-hero .self-glow,
  .hearth-hero .self {
    transform-box: fill-box;
    transform-origin: center;
    animation: breathe 7s ease-in-out infinite;
  }
  .hearth-hero .halo { animation-duration: 8s; }
  .hearth-hero .folk:nth-child(2) { animation-delay: -1.4s; }
  .hearth-hero .folk:nth-child(3) { animation-delay: -2.8s; }
  .hearth-hero .folk:nth-child(4) { animation-delay: -4.2s; }
  .hearth-hero .folk:nth-child(5) { animation-delay: -5.6s; }
  .hearth-hero .self-glow { animation-duration: 6s; }
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* ---------- hero ---------- */

.hero { padding-block: 24px 56px; }

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 40px;
}

.eyebrow {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75em;
}

.lede {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 34em;
}

.hero-art { display: flex; justify-content: center; }
.hearth-hero { width: min(100%, 440px); height: auto; aspect-ratio: 1; }

.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 28px; }
.cta-note { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.cta-center { justify-content: center; }

.store-badge { display: inline-block; line-height: 0; border-radius: 10px; }
.store-badge img { display: block; height: 50px; width: auto; }

.store-soon {
  margin: 0;
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
}

/* ---------- sections ---------- */

.features, .privacy-promise, .care, .pricing, .crisis-band { padding-block: 56px; }

.section-title { text-align: center; }
.section-lede {
  text-align: center;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1.2rem;
  max-width: 36em;
  margin: 0 auto 40px;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px 56px;
  padding-block: 28px;
}
.feature:nth-of-type(even) .feature-copy { order: 2; }
.feature-copy p { color: var(--ink-soft); max-width: 32em; }
.feature-copy h3 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem); }

.vignette { display: flex; justify-content: center; }

.mock {
  width: min(100%, 380px);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 22px 24px;
  box-shadow: 0 1px 2px rgb(46 36 48 / 0.05), 0 12px 32px -12px rgb(46 36 48 / 0.18);
  font-size: 0.98rem;
}
.mock p:last-child { margin-bottom: 0; }

.mock-label {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.4em;
}
.mock-text, .mock-question, .mock-title { font-family: var(--serif); font-size: 1.12rem; line-height: 1.45; }
.mock-title { margin-bottom: 0.8em; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-chip);
  background: var(--sunken);
  border: 1px solid var(--hairline);
  font-size: 0.9rem;
}
.chip-terracotta, .chip-blue, .chip-sage { border-color: transparent; color: var(--ink); }
.chip-terracotta { background: color-mix(in srgb, var(--terracotta) 26%, var(--surface)); }
.chip-blue { background: color-mix(in srgb, var(--blue) 26%, var(--surface)); }
.chip-sage { background: color-mix(in srgb, var(--sage) 28%, var(--surface)); }

.option {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: var(--raised);
  font-weight: 500;
}
.option:first-of-type { border-color: var(--terracotta); }
.option-note { flex-basis: 100%; padding-left: 26px; color: var(--ink-soft); font-size: 0.85rem; font-weight: 400; }
.option-new { color: var(--ink-soft); border-style: dashed; }
.dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.dot-terracotta { background: var(--terracotta); }
.dot-gold { background: var(--gold); }
.dot-new { border: 2px dashed var(--ink-faint); }

.mock-question { margin-bottom: 1.1em; }
.mock-note {
  background: var(--sunken);
  border-radius: 16px;
  padding: 14px 16px;
  color: var(--ink-soft);
}
.mock-note p:last-child { margin: 0; font-family: var(--serif); color: var(--ink); }

.map { width: min(100%, 400px); height: auto; overflow: visible; }
.map-link { stroke: var(--ink-faint); stroke-width: 1.5; opacity: 0.6; }
.map-link-soft { stroke-dasharray: 4 5; }
/* Opaque tints (not fill-opacity) so the links stop at each part's edge. */
.map-part { fill-opacity: 1; stroke-width: 2; }
.map-part.folk-gold { stroke: var(--gold); fill: color-mix(in srgb, var(--gold) 45%, var(--bg)); }
.map-part.folk-terracotta { stroke: var(--terracotta); fill: color-mix(in srgb, var(--terracotta) 45%, var(--bg)); }
.map-part.folk-rose { stroke: var(--rose); fill: color-mix(in srgb, var(--rose) 45%, var(--bg)); }
.map-part.folk-sage { stroke: var(--sage); fill: color-mix(in srgb, var(--sage) 45%, var(--bg)); }
.map-label { fill: var(--ink); font-family: var(--sans); font-size: 14px; font-weight: 600; }
.map-label-small { font-size: 11.5px; }

/* privacy promise */

.privacy-promise { background: var(--surface); border-block: 1px solid var(--hairline); }

.promise-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 36px;
}
.promise-list h3 { font-size: 1.15rem; margin-bottom: 0.35em; }
.promise-list p { color: var(--ink-soft); margin: 0; }
.promise-list li { padding-left: 18px; border-left: 3px solid var(--glow); }
.privacy-promise .wrap > p:last-child { text-align: center; margin: 0; }

.text-link { font-weight: 600; }
.text-link::after { content: " →"; }

/* care */

.care-inner > div { max-width: 44em; margin-inline: auto; text-align: center; }
.care p { color: var(--ink-soft); }

/* pricing */

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 300px));
  justify-content: center;
  gap: 20px;
  margin-bottom: 28px;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 26px 26px 22px;
  text-align: center;
}
.plan-featured { border: 2px solid var(--accent); }
.plan h3 { margin-bottom: 0.3em; }
.plan-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.82rem;
  font-weight: 600;
}
.plan-price { font-size: 1.1rem; margin-bottom: 0.4em; }
.plan-price strong { font-family: var(--serif); font-size: 2.1rem; font-weight: 500; }
.plan-note { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

.fine-print {
  max-width: 46em;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 0.88rem;
  text-align: center;
}

/* crisis */

.calm-card {
  background: var(--calm);
  border: 1px solid var(--calm-edge);
  border-radius: var(--radius-card);
  padding: 26px 28px;
}
.calm-card h2 { font-size: 1.4rem; }
.calm-card p:last-child { margin-bottom: 0; }
.crisis-band .calm-card { max-width: 46em; margin-inline: auto; }

/* ---------- inner pages ---------- */

.page { max-width: 820px; padding-top: 24px; }
.page-header { margin-bottom: 32px; }

.contact-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 26px 28px;
  margin-bottom: 24px;
}
.contact-card h2, .page .calm-card h2 { font-size: 1.4rem; }
.contact-email { font-family: var(--serif); font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem); overflow-wrap: anywhere; }
.contact-company { color: var(--ink-soft); margin: 0; }
.crisis-lines { padding-left: 1.2em; }
.crisis-lines li { margin-bottom: 0.4em; }
a[href^="tel:"], a[href^="sms:"] { white-space: nowrap; }

.faq { margin-top: 48px; }
.faq h3 { margin-top: 1.8em; }
.faq-index ul { padding-left: 1.2em; }
.faq-index li { margin-bottom: 0.25em; }

.prose { max-width: 72ch; }
.prose h1 { margin-bottom: 0.4em; }
.prose h2 { font-size: 1.55rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.45em; }
.prose a { overflow-wrap: anywhere; }

.table-scroll {
  overflow-x: auto;
  margin: 0 0 1.4em;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: var(--surface);
}
.table-scroll table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 0.92rem; line-height: 1.5; }
.table-scroll th, .table-scroll td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--hairline); }
.table-scroll th { background: var(--sunken); font-weight: 600; }
.table-scroll tr:last-child td { border-bottom: 0; }

.not-found { text-align: center; padding-block: 40px 24px; }
.not-found .lede { margin-inline: auto; }
.hearth-lost { width: 160px; height: 160px; margin-bottom: 16px; }
.not-found-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 24px; margin-top: 28px; }

.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}
.button:hover { filter: brightness(1.06); }

/* ---------- small screens ---------- */

@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; gap: 8px; }
  .hero-art { order: -1; }
  .hearth-hero { width: min(64vw, 280px); }
  .hero { padding-top: 0; }
  .feature { grid-template-columns: 1fr; gap: 20px; padding-block: 24px; }
  .feature:nth-of-type(even) .feature-copy { order: 0; }
  .promise-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  :root { --gutter: 16px; }
  body { font-size: 1rem; }
  .site-header { padding-block: 14px; }
  .brand { font-size: 1.3rem; }
  .brand-mark { width: 30px; height: 30px; }
  .promise-list { grid-template-columns: 1fr; }
  .care-inner > div, .fine-print { text-align: left; }
  .care .section-title { text-align: left; }
  .plans { grid-template-columns: 1fr; }
  .features, .privacy-promise, .care, .pricing, .crisis-band { padding-block: 40px; }
  .calm-card, .contact-card { padding: 22px 20px; }
  .mock { padding: 18px 18px; }
}

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

@media print {
  .site-header nav, .skip-link, .hero-art, .vignette { display: none; }
  body { background: #fff; color: #000; }
}
