/* d'Event web landing — on top of css/tokens.css (house neutrals) and
 * src/css/base.css (reset, focus ring). Mobile-first at 390px like the sites;
 * the desktop layout is one grid switch at 860px. No JS-dependent layout:
 * the FAQ is <details>, the toggles only re-paint. */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(../fonts/fraunces-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html { -webkit-text-size-adjust: 100%; }
body {
  font-size: 1.0625rem;
  line-height: 1.55;
  font-feature-settings: 'kern', 'liga';
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
  letter-spacing: -.01em;
  line-height: 1.08;
  color: var(--primary);
  text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 5.2vw + 1rem, 4.1rem); }
h2 { font-size: clamp(1.85rem, 3vw + 1rem, 2.75rem); }
h3 { font-size: 1.22rem; line-height: 1.25; font-variation-settings: 'opsz' 48; }
p  { max-width: var(--measure); }
a  { color: inherit; }
.lead { font-size: 1.15rem; color: var(--muted); }
.kicker {
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.1rem;
}

/* ---- buttons -------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.35rem; border-radius: 999px;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1; text-decoration: none;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--primary); }
.btn-small { padding: .5rem .95rem; font-size: .88rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.7rem; }

/* ---- header --------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 1rem;
  padding: .75rem clamp(1rem, 4vw, 2.5rem);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.wordmark { display: inline-flex; color: var(--ink); text-decoration: none; }
.wordmark svg { height: 22px; width: auto; display: block; }
.header-nav { display: none; gap: 1.4rem; margin-left: 1.2rem; font-size: .93rem; }
.header-nav a { text-decoration: none; color: var(--muted); }
.header-nav a:hover { color: var(--ink); }
.header-right { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.lang-toggle { display: inline-flex; align-items: center; gap: .3rem; font-size: .82rem; color: var(--muted); }
.lang-toggle button {
  font: inherit; font-weight: 600; letter-spacing: .04em; color: var(--muted);
  background: none; border: 0; padding: .3rem .2rem; cursor: pointer;
}
.lang-toggle button.active { color: var(--ink); text-decoration: underline; text-underline-offset: .3em; }
.theme-toggle {
  font: inherit; font-size: 1rem; line-height: 1; background: none; border: 0;
  padding: .35rem; cursor: pointer; border-radius: 50%;
}
.header .btn-small { display: none; }
@media (min-width: 860px) {
  .header-nav { display: flex; }
  .header .btn-small { display: inline-flex; }
}

/* ---- sections ------------------------------------------------------- */
.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1rem, 4vw, 2.5rem);
  max-width: calc(var(--wide) + 5rem); margin: 0 auto;
}
.section-tint { max-width: none; background: var(--tint); }
.section-narrow { max-width: calc(var(--measure) + 8rem); }
.section-head { margin-bottom: 2.4rem; }
.section-head .lead { margin-top: .7rem; }

/* ---- hero ----------------------------------------------------------- */
.hero {
  display: grid; gap: 3rem; align-items: center;
  padding: clamp(2.5rem, 7vw, 6rem) clamp(1rem, 4vw, 2.5rem) clamp(3rem, 7vw, 5rem);
  max-width: calc(var(--wide) + 5rem); margin: 0 auto;
}
.hero .lead { margin-top: 1.2rem; }
.demo-note { margin-top: .9rem; font-size: .85rem; color: var(--muted); }
.chips { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li {
  font-size: .82rem; padding: .38rem .8rem; border-radius: 999px;
  border: 1px solid var(--rule); background: var(--card); color: var(--muted);
}
.chips li::before { content: '✓ '; color: var(--accent); }
@media (min-width: 860px) {
  .hero { grid-template-columns: 1.15fr .85fr; gap: 3rem; }
}

/* ---- phones (real screenshots, ops/shoot-demos.mjs) ------------------ */
.phone-wrap { display: flex; justify-content: center; }
.phone {
  display: block; width: min(300px, 78vw);
  padding: 10px; border-radius: 42px;
  background: #23221D; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255,255,255,.06) inset;
  position: relative; transition: transform .2s ease;
}
.phone:hover { transform: translateY(-3px); }
.phone::before { /* notch */
  content: ''; position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 34%; height: 22px; background: #23221D; border-radius: 0 0 16px 16px; z-index: 2;
}
.phone-screen { display: block; width: 100%; height: auto; border-radius: 32px; background: #F6F2E6; }
:root[data-theme="dark"] .phone { background: #3A3832; }
:root[data-theme="dark"] .phone::before { background: #3A3832; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .phone, :root:not([data-theme="light"]) .phone::before { background: #3A3832; }
}

/* ---- features ------------------------------------------------------- */
.feature-group + .feature-group { margin-top: 2.6rem; }
.group-title {
  font-family: var(--body); font-size: .8rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); font-variation-settings: normal;
  margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--rule);
}
.feature h4 { font-family: var(--display); font-weight: 500; font-size: 1.22rem; line-height: 1.25; font-variation-settings: 'opsz' 48; color: var(--primary); }
.features {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
}
.feature {
  padding: 1.35rem 1.35rem 1.45rem; border-radius: 16px;
  background: var(--card); border: 1px solid var(--rule);
}
.feature-n { display: block; font-family: var(--display); font-size: .9rem; color: var(--accent); margin-bottom: .7rem; }
.feature h4 { margin-bottom: .45rem; }
.feature p { font-size: .96rem; color: var(--muted); }

/* ---- steps ---------------------------------------------------------- */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1.5rem;
  counter-reset: step;
}
.step { position: relative; padding-left: 3.4rem; }
.step-n {
  position: absolute; left: 0; top: -.15rem;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display); font-size: 1.15rem; font-weight: 500;
  background: var(--ink); color: var(--paper);
}
.step h3 { margin-bottom: .4rem; }
.step p { color: var(--muted); }
.how-note { margin-top: 2.4rem; font-family: var(--display); font-style: italic; font-size: 1.2rem; color: var(--primary); }
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .step { padding-left: 0; padding-top: 3.2rem; }
}

/* ---- themes --------------------------------------------------------- */
.themes {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
}
.theme-card { border-radius: 16px; overflow: hidden; border: 1px solid var(--rule); background: var(--card); }
.theme-swatch { position: relative; height: 13rem; overflow: hidden; background: var(--tp); }
.theme-shot { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
.theme-sample { font-family: var(--tf); font-size: 2.6rem; font-weight: 500; letter-spacing: -.01em; }
.theme-dots { position: absolute; right: .8rem; bottom: .7rem; display: flex; gap: .3rem; }
.theme-dots i {
  width: .9rem; height: .9rem; border-radius: 50%; display: block;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08) inset;
}
.theme-dots i.dark { display: grid; place-items: center; }
.theme-dots i.dark::after { content: ''; width: .35rem; height: .35rem; border-radius: 50%; background: currentColor; }
.theme-card h3 { margin: 1rem 1.2rem .35rem; }
.theme-card p { margin: 0 1.2rem; font-size: .95rem; color: var(--muted); }
.theme-fonts {
  display: grid; grid-template-columns: auto 1fr; gap: .1rem .6rem;
  margin: .9rem 1.2rem 1.2rem; font-size: .8rem; color: var(--muted);
}
.theme-fonts dt::after { content: ':'; }
.theme-fonts dd { margin: 0; color: var(--ink); }
.theme-demo {
  display: inline-block; margin: 0 1.2rem 1.2rem; font-size: .92rem; font-weight: 600;
  color: var(--ink); text-decoration: none; border-bottom: 1.5px solid var(--accent); padding-bottom: .1rem;
}
.theme-demo:hover { color: var(--accent); }
.theme-custom { border-style: dashed; background: transparent; }
.theme-custom .theme-swatch { display: grid; place-items: center; background: var(--tint); color: var(--accent); }
.theme-custom .theme-sample { font-family: var(--display); font-style: italic; }
.theme-custom p { margin-bottom: 1rem; }

/* ---- faq ------------------------------------------------------------ */
.faq { border-top: 1px solid var(--rule); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1.1rem 2.2rem 1.1rem 0; position: relative;
  font-family: var(--display); font-size: 1.22rem; font-weight: 500; color: var(--primary);
  font-variation-settings: 'opsz' 48;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: .2rem; top: 50%; transform: translateY(-50%);
  font-family: var(--body); font-size: 1.4rem; color: var(--accent); transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 0 1.3rem; color: var(--muted); }

/* ---- final + footer ------------------------------------------------- */
.final { text-align: center; }
.final .lead, .final p { margin-left: auto; margin-right: auto; }
.final .lead { margin-top: .8rem; }
.final .cta-row { justify-content: center; }
.footer {
  border-top: 1px solid var(--rule);
  padding: 2.5rem clamp(1rem, 4vw, 2.5rem) 3rem; text-align: center;
  font-size: .9rem; color: var(--muted);
}
.footer-mark { display: block; margin: 0 auto 1.2rem; color: var(--ink); opacity: .85; }
.footer-mark svg { height: 18px; width: auto; }
.footer p { margin: .3rem auto; }
.footer a { color: var(--ink); text-underline-offset: .2em; }
.footer-made { font-size: .82rem; }
