/* Frieda landing page – self-contained, system fonts only.
   Palette taken from the family guide PDF (scripts/build_family_guide.py). */

:root {
  --sage-50: #f4f7f1;
  --sage-100: #eef3ea;
  --sage-200: #dfe9d9;
  --sage-700: #3f5a3a;
  --sage-800: #2f4529;
  --cream: #f6efdc;
  --cream-50: #fbf6ea;
  --rust: #7a3d1e;
  --rust-dark: #5e2d14;
  --mustard: #d9a227;
  --ink: #2c2d29;
  --text: #33342f;
  --muted: #565b4e;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(47, 69, 41, .12);
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Noto Serif", Georgia, serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "DejaVu Sans Mono", monospace;
}

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

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

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

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; }
h1, h2 { font-family: var(--font-serif); color: var(--rust); }
h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); }
h3 { font-size: 1.15rem; color: var(--sage-800); }
p { margin: 0 0 1em; }

a { color: var(--rust); text-underline-offset: 3px; }
a:hover { color: var(--rust-dark); }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; border-radius: 4px; }

q { quotes: "„" "“" "‚" "‘"; font-style: italic; color: var(--rust); }
em { color: var(--rust); }

code {
  font-family: var(--font-mono);
  font-size: .88em;
  background: var(--sage-100);
  color: var(--sage-800);
  padding: .1em .4em;
  border-radius: 6px;
  white-space: nowrap;
}

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(820px, 100% - 2.5rem); }
.center { text-align: center; }
.small { font-size: .95rem; color: var(--muted); }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--rust); color: var(--white); padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; color: var(--white); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--sage-200);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--font-serif);
  font-size: 1.4rem; font-weight: 700; color: var(--rust); }
.brand img { width: 40px; height: 40px; }
.nav-list { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; padding: 0; }
.nav-list a { text-decoration: none; color: var(--sage-800); font-weight: 600; font-size: .97rem; padding: .3rem 0; }
.nav-list a:hover { color: var(--rust); text-decoration: underline; }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: .85rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--rust); color: var(--white); }
.btn-primary:hover { background: var(--rust-dark); color: var(--white); }
.btn-ghost { border-color: var(--sage-700); color: var(--sage-800); background: transparent; }
.btn-ghost:hover { background: var(--sage-100); color: var(--sage-800); }

/* Hero */
.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(217, 162, 39, .18), transparent 40%),
    linear-gradient(180deg, var(--sage-100) 0%, var(--sage-200) 100%);
  padding: clamp(2.5rem, 6vw, 5rem) 0;
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; font-weight: 700; color: var(--sage-700); margin-bottom: .75rem; }
.hero h1 { font-size: clamp(2.5rem, 1.5rem + 4vw, 4.25rem); margin-bottom: .4em; }
.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--text); max-width: 36em; }
.hero-note { font-weight: 700; color: var(--sage-800); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 2rem; }
.badges { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; }
.badges li {
  background: var(--white); color: #5c4a1c; font-size: .9rem; font-weight: 600;
  padding: .35rem .85rem; border-radius: 999px; box-shadow: 0 2px 8px rgba(47, 69, 41, .08);
}

.hero-visual { position: relative; justify-self: center; max-width: 420px; width: 100%; }
.hero-visual img { width: 100%; filter: drop-shadow(0 18px 30px rgba(47, 69, 41, .22)); }
.chat-bubble {
  position: absolute; left: -12%; bottom: 4%;
  display: grid; gap: .4rem; max-width: 260px; font-size: .9rem;
}
.chat-bubble p { margin: 0; padding: .55rem .85rem; border-radius: 16px; box-shadow: var(--shadow); }
.bubble-user { background: #e3f2d6; color: var(--ink); border-bottom-right-radius: 4px; justify-self: end; }
.bubble-frieda { background: var(--white); color: var(--ink); border-bottom-left-radius: 4px; }

/* Sections */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-tint { background: var(--sage-50); }
.section-warm { background: var(--cream-50); }
.section-lead { font-size: 1.15rem; max-width: 46em; color: var(--muted); margin-bottom: 2rem; }

.split { display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split-reverse { grid-template-columns: 1fr minmax(220px, 360px); }
.split-img { width: 100%; filter: drop-shadow(0 14px 24px rgba(47, 69, 41, .18)); }

/* Benefits */
.benefits {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem;
}
.benefits li {
  flex: 1 1 280px; max-width: 360px;
  background: var(--white); border-radius: var(--radius); padding: 1.5rem;
  border-top: 5px solid var(--mustard); box-shadow: var(--shadow);
}
.benefits p { margin: 0; color: var(--muted); }

/* Feature cards */
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.card {
  background: var(--white); border: 1px solid var(--sage-200); border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1rem; box-shadow: 0 4px 14px rgba(47, 69, 41, .06);
}
.card h3 { display: flex; align-items: center; gap: .6rem; font-size: 1.2rem; }
.icon {
  display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; flex: none;
  background: var(--cream); border-radius: 50%; font-size: 1.1rem;
}
.card ul { padding-left: 1.1rem; margin: 0; }
.card li { margin-bottom: .55rem; }
.card li::marker { color: #b9892a; }

/* Limits */
.checklist-no { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.checklist-no li { position: relative; padding-left: 2rem; margin-bottom: .5rem; }
.checklist-no li::before {
  content: "✕"; position: absolute; left: 0; top: .1em;
  width: 1.4rem; height: 1.4rem; display: grid; place-items: center;
  font-size: .75rem; font-weight: 700; color: var(--white); background: var(--rust); border-radius: 50%;
}

/* Steps */
.steps {
  list-style: none; counter-reset: step; padding: 0; margin: 1.5rem 0 2rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem;
}
.steps li {
  counter-increment: step; position: relative;
  background: var(--sage-50); border-radius: var(--radius); padding: 3.4rem 1.25rem 1.25rem;
}
.steps li::before {
  content: counter(step); position: absolute; top: 1rem; left: 1.25rem;
  width: 2rem; height: 2rem; display: grid; place-items: center;
  background: var(--sage-700); color: var(--white); font-weight: 700; border-radius: 50%;
}
.steps p { margin: 0; font-size: .97rem; }
.steps code { white-space: normal; }
.optional { font-weight: 400; color: var(--muted); font-size: .9rem; }

/* Commands table */
.table-scroll { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--white); margin-bottom: 1rem; }
table { width: 100%; border-collapse: collapse; font-size: .98rem; }
th { text-align: left; background: var(--sage-700); color: var(--white); padding: .8rem 1rem; }
td { padding: .7rem 1rem; border-bottom: 1px solid var(--sage-200); vertical-align: top; }
tbody tr:nth-child(even) td { background: var(--sage-50); }
tbody tr:last-child td { border-bottom: 0; }
.tag {
  display: inline-block; margin-left: .35rem; font-size: .75rem; font-weight: 700;
  background: var(--cream); color: var(--rust); padding: .05rem .5rem; border-radius: 999px;
}

/* Privacy */
.privacy { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; margin: 1.5rem 0 2rem; }
.privacy-item { border-left: 4px solid var(--sage-700); padding: .25rem 0 .25rem 1.1rem; }
.privacy-item p { margin: 0; color: var(--muted); font-size: .98rem; }

/* Closing */
.closing { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-50) 100%); padding: clamp(3rem, 6vw, 4.5rem) 0; }
.closing-inner { display: flex; align-items: center; justify-content: center; gap: 2rem; text-align: left; }
.closing-inner img { width: 160px; height: 160px; flex: none; }
.signature { font-family: var(--font-serif); font-style: italic; font-size: 1.4rem; color: var(--sage-800); }

/* Footer */
.site-footer { background: var(--sage-800); color: #e6ede1; padding: 1.5rem 0; font-size: .92rem; text-align: center; }
.site-footer p { margin: 0; }

/* Responsive */
@media (max-width: 860px) {
  .nav-list { display: none; }
  .hero-inner, .split, .split-reverse { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 320px; }
  .split-img { max-width: 260px; justify-self: center; }
  .split-reverse .split-img { order: -1; }
  .chat-bubble { left: auto; right: -4%; bottom: -2%; max-width: 220px; font-size: .82rem; }
}
@media (max-width: 560px) {
  .closing-inner { flex-direction: column; text-align: center; }
  .chat-bubble { position: static; margin-top: 1rem; max-width: none; }
  .features { grid-template-columns: 1fr; }
  code { white-space: normal; }
}
