/* De Saison — same editorial palette as the app (Colors.xcassets/Theme). */
:root {
  --paper: #F6F0E4;
  --paper-raised: #FBF7EE;
  --octagon-fill: #EDE3D0;
  --octagon-stroke: #CDBFA6;
  --ink: #2E2418;
  --ink-secondary: #7A6A55;
  --accent: #B5562E;
  --leaf: #5E7D2E;
  --hairline: #DCCFB8;
  --shadow: 0 24px 60px rgba(46, 36, 24, 0.18), 0 4px 14px rgba(46, 36, 24, 0.10);
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --page: 1080px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1B1813;
    --paper-raised: #25211B;
    --octagon-fill: #302A22;
    --octagon-stroke: #4A4236;
    --ink: #F1E9DA;
    --ink-secondary: #B5A68F;
    --accent: #E07F54;
    --leaf: #9DBE6A;
    --hairline: #3A342B;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 4px 14px rgba(0, 0, 0, 0.3);
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }

.wrap { width: min(var(--page), 100% - 32px); margin-inline: auto; }

/* Header */
.site-header { padding-block: 20px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 20px; white-space: nowrap; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.lang-switch { display: flex; gap: 2px; font-size: 15px; color: var(--ink-secondary); white-space: nowrap; }
.lang-switch a { color: var(--ink-secondary); text-decoration: none; padding: 6px 10px; border-radius: 999px; }
.lang-switch a[aria-current="page"] { color: var(--ink); background: var(--octagon-fill); }

/* Typography */
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(44px, 8vw, 76px); }
h2 { font-size: clamp(32px, 4.6vw, 46px); }
h3 { font-size: 21px; line-height: 1.25; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--accent); margin: 0 0 12px; }
.lede { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.4vw, 25px); color: var(--ink-secondary); margin: 16px 0 0; }
.rule { width: 48px; height: 3px; border-radius: 2px; background: var(--accent); margin: 22px 0 0; }
p { margin: 14px 0 0; }
.muted { color: var(--ink-secondary); }

/* Hero */
.hero { padding-block: 24px 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 48px; }
.hero-icon { width: 104px; height: 104px; border-radius: 24px; box-shadow: var(--shadow); margin-bottom: 28px; }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 34px; }
.store-badge img { height: 52px; width: auto; }
.hero .note { font-size: 15px; color: var(--ink-secondary); margin: 0; }

/* Phone screenshots */
.phone { position: relative; width: min(330px, 100%); margin-inline: auto; }
.phone img { width: 100%; border-radius: 13% / 6%; box-shadow: var(--shadow); border: 1px solid var(--hairline); }
.phone .spark { position: absolute; top: -18px; right: -14px; width: 54px; color: var(--accent); }
.hero .phone { transform: rotate(2deg); }

/* Feature rows */
.feature { padding-block: 64px; border-top: 1px solid var(--hairline); }
.feature .wrap { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; }
.feature.flip .text { order: 2; }
.feature ul { margin: 18px 0 0; padding: 0; list-style: none; }
.feature li { position: relative; padding-left: 26px; margin-top: 10px; }
.feature li::before {
  content: ""; position: absolute; left: 0; top: 0.5em; width: 12px; height: 12px;
  background: var(--leaf);
  clip-path: polygon(29% 0, 71% 0, 100% 29%, 100% 71%, 71% 100%, 29% 100%, 0 71%, 0 29%);
}
.badge-ai { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-secondary); background: var(--octagon-fill); border-radius: 999px; padding: 5px 12px; margin-top: 18px; }
.badge-ai svg { width: 14px; color: var(--accent); }

/* Quote band */
.band { padding-block: 72px; text-align: center; background: var(--paper-raised); border-block: 1px solid var(--hairline); }
.band p { font-family: var(--serif); font-size: clamp(28px, 4vw, 40px); margin: 0; }
.band .accent { color: var(--accent); font-style: italic; }

/* Grid of smaller features */
.grid-section { padding-block: 80px; }
.grid-section h2 { max-width: 640px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.card { background: var(--paper-raised); border: 1px solid var(--hairline); border-radius: 18px; padding: 24px; }
.card p { font-size: 16px; color: var(--ink-secondary); margin-top: 8px; }
.octagon {
  width: 44px; height: 44px; margin-bottom: 16px; display: grid; place-items: center;
  background: var(--octagon-fill); color: var(--accent);
  clip-path: polygon(29% 0, 71% 0, 100% 29%, 100% 71%, 71% 100%, 29% 100%, 0 71%, 0 29%);
}
.octagon svg { width: 22px; height: 22px; }

/* Final call to action */
.cta { padding-block: 88px; text-align: center; border-top: 1px solid var(--hairline); }
.cta img.app-icon { width: 88px; height: 88px; border-radius: 20px; margin: 0 auto 24px; box-shadow: var(--shadow); }
.cta .store-badge { display: inline-block; margin-top: 28px; }

/* Footer */
.site-footer { padding-block: 32px 48px; border-top: 1px solid var(--hairline); font-size: 15px; color: var(--ink-secondary); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-footer a { color: var(--ink-secondary); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* Legal pages */
.legal { padding-block: 24px 80px; }
.legal .wrap { max-width: 720px; }
.legal h2 { font-size: 26px; margin-top: 44px; }
.legal li { margin-top: 8px; }
.legal .updated { color: var(--ink-secondary); font-size: 15px; margin-top: 12px; }

@media (max-width: 860px) {
  .hero .wrap, .feature .wrap { grid-template-columns: 1fr; gap: 40px; }
  .feature.flip .text { order: 0; }
  .grid { grid-template-columns: 1fr 1fr; }
  .hero { padding-bottom: 48px; }
  .feature { padding-block: 52px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid { grid-template-columns: 1fr; }
  .phone { width: min(280px, 100%); }
  .hero-icon { width: 84px; height: 84px; border-radius: 19px; }
}

@media (max-width: 400px) {
  .brand span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .phone { transform: none; }
}
