/* FrenchBriefs homepage. Slate and newsprint from the logo; the yellow marker is the one loud thing. */
:root {
  --slate: #2b3f47;
  --slate-2: #22333b;
  --news: #dfdacf;
  --paper: #f3f0e8;
  --surface: #fbfaf6;
  --ink: #22333b;
  --muted: #5f6a6d;
  --rule: #dcd6ca;
  --marker: #f4cd4f;
  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(1.1rem, 5vw, 2.5rem);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--marker); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 var(--gutter); }

.btn { display: inline-flex; align-items: center; justify-content: center; font: 600 1rem/1 var(--sans); padding: 0.95rem 1.4rem; border-radius: 999px; text-decoration: none; border: 1.5px solid currentColor; }
.btn.primary { background: var(--marker); border-color: var(--marker); color: var(--slate-2); }
.btn.ghost { color: var(--news); border-color: rgba(223, 218, 207, 0.45); }

/* hero */
.hero { background: var(--slate); color: var(--news); padding: env(safe-area-inset-top, 0px) 0 clamp(3rem, 8vw, 5.5rem); }
.top { max-width: 68rem; margin: 0 auto; padding: 1rem var(--gutter); display: flex; align-items: center; gap: 1.3rem; }
.top-mark { width: 2.6rem; height: auto; margin-right: auto; }
.top-link { font-weight: 500; text-decoration: none; opacity: 0.85; }
.top-cta { font-weight: 600; text-decoration: none; padding: 0.5rem 1rem; border: 1.5px solid rgba(223, 218, 207, 0.5); border-radius: 999px; }
.hero-inner { max-width: 44rem; margin: 0 auto; padding: 1.5rem var(--gutter) 0; text-align: center; }
.hero-logo { width: min(26rem, 88%); height: auto; margin: 0 auto 1.6rem; }
.hero h1 { font: 500 clamp(2rem, 5.6vw, 3.4rem)/1.08 var(--serif); letter-spacing: -0.02em; margin: 0 0 1.1rem; color: #f6f2e9; }
.hero mark { background: linear-gradient(transparent 58%, rgba(244, 205, 79, 0.55) 58%, rgba(244, 205, 79, 0.55) 92%, transparent 92%); color: inherit; }
.hero-sub { font-size: 1.15rem; line-height: 1.55; opacity: 0.88; margin: 0 auto 1.8rem; max-width: 36rem; }
.hero-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.hero-note { font-size: 0.88rem; opacity: 0.65; margin: 1rem 0 0; }

/* sections */
section { padding: clamp(3rem, 8vw, 5rem) 0; }
section h2 { font: 500 clamp(1.7rem, 4vw, 2.4rem)/1.15 var(--serif); letter-spacing: -0.015em; margin: 0 0 0.5rem; }
.section-sub { color: var(--muted); margin: 0 0 2rem; font-size: 1.05rem; }

/* sample briefs */
.sample-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; }
.brief { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 1.1rem 1.2rem 1.3rem; text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease; }
a.brief:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -18px rgba(34, 51, 59, 0.45); }
.brief img { width: calc(100% + 2.4rem); max-width: none; margin: -1.1rem -1.2rem 0.9rem; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 13px 13px 0 0; }
.brief-meta { font-size: 0.82rem; color: var(--muted); margin: 0 0 0.35rem; display: flex; justify-content: space-between; gap: 0.5rem; }
.brief-level { font-weight: 700; color: var(--slate); background: var(--news); border-radius: 999px; padding: 0.05rem 0.5rem; }
.brief h3 { font: 600 1.25rem/1.22 var(--serif); margin: 0 0 0.4rem; }
.brief p:last-child { margin: 0; color: var(--muted); font: 400 1rem/1.5 var(--serif); }
.brief.placeholder { opacity: 0.7; }

/* how */
.how { background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr)); gap: 2rem 2.2rem; margin-top: 2.2rem; }
.how-n { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--slate); color: var(--news); font: 700 0.95rem var(--sans); }
.how-item h3 { font: 600 1.3rem/1.2 var(--serif); margin: 0.7rem 0 0.4rem; }
.how-item p { margin: 0 0 0.6rem; color: var(--muted); }
.demo { font: 400 1.1rem/1.5 var(--serif) !important; color: var(--ink) !important; background: var(--paper); border-radius: 10px; padding: 2.6rem 0.9rem 0.8rem; position: relative; }
.demo-word { background: var(--marker); border-radius: 2px; position: relative; }
.demo-pop { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); background: var(--slate); color: var(--news); font: 600 0.85rem var(--sans); padding: 0.35rem 0.7rem; border-radius: 8px; white-space: nowrap; }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.2rem; max-width: 52rem; }
.tier { background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; padding: 1.6rem 1.6rem 1.8rem; position: relative; display: flex; flex-direction: column; }
.tier.pro { background: var(--slate); color: var(--news); border-color: var(--slate); }
.tier h3 { font: 600 1.4rem var(--serif); margin: 0; }
.amount { font: 600 2.6rem/1.1 var(--serif); margin: 0.4rem 0 0; }
.amount small { font: 400 1rem var(--sans); opacity: 0.75; }
.amount-alt { margin: 0.2rem 0 0; font-size: 0.92rem; opacity: 0.8; }
.tier ul { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; display: grid; gap: 0.55rem; flex: 1; }
.tier li { padding-left: 1.5rem; position: relative; }
.tier li::before { content: ''; position: absolute; left: 0; top: 0.5rem; width: 0.75rem; height: 0.55rem; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); opacity: 0.8; }
.tier .btn { align-self: flex-start; }
.tier-badge { position: absolute; top: -0.8rem; right: 1.4rem; background: var(--marker); color: var(--slate-2); font: 700 0.8rem var(--sans); padding: 0.35rem 0.8rem; border-radius: 999px; }

/* faq */
.faq .wrap { max-width: 46rem; }
.faq details { border-top: 1px solid var(--rule); padding: 0.4rem 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font: 600 1.15rem/1.4 var(--serif); padding: 0.75rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 400 1.4rem/1 var(--sans); color: var(--muted); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0 0 1rem; color: var(--muted); }

/* closing & footer */
.closing { background: var(--slate); color: var(--news); text-align: center; }
.closing img { width: 9rem; height: auto; margin: 0 auto 1rem; }
.closing h2 { color: #f6f2e9; margin-bottom: 1.4rem; }
.foot { background: var(--slate-2); color: rgba(223, 218, 207, 0.8); padding: 1.6rem 0 calc(1.6rem + env(safe-area-inset-bottom, 0px)); font-size: 0.92rem; }
.foot-inner { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: center; }
.foot-inner span:first-child { margin-right: auto; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } a.brief { transition: none; } }
