/* Clover — warm paper editorial. Palette mirrors the app (Theme.swift). */
:root {
  --paper: #faf9f7;
  --paper-deep: #f2f0eb;
  --raised: #efede7;
  --ink: #1a1a19;
  --ink-soft: #6b6b70;
  --terra: #b1bfa2;      /* moss green — direct replacement for clay (DESIGN.md) */
  --terra-deep: #809b64;  /* moss-600 — replaces terra-deep #a34e22 (DESIGN.md ramp) */
  --line: rgba(26, 26, 25, 0.1);
  --radius: 28px;
  --display: "Inter", -apple-system, sans-serif;
  --body: "Inter", -apple-system, "Segoe UI", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* paper grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  opacity: 0.05;
  pointer-events: none;
  z-index: 1000;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; }

/* ---------- nav ---------- */
nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.35rem; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { text-decoration: none; font-size: 0.95rem; color: var(--ink-soft); transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 12px 24px; border-radius: 999px; transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-terra { background: var(--terra); color: var(--ink); box-shadow: 0 8px 24px rgba(177, 191, 162, 0.35); }
.btn-terra:hover { background: var(--terra-deep); transform: translateY(-1px); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

/* ---------- hero ---------- */
header.hero { position: relative; padding: 110px 0 90px; overflow: hidden; }
.hero-halo {
  position: absolute; top: -240px; right: -180px; width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(193, 95, 46, 0.13), transparent 65%);
  border-radius: 50%;
}
.hero-halo.two { top: auto; right: auto; bottom: -300px; left: -220px; background: radial-gradient(circle, rgba(193, 95, 46, 0.08), transparent 65%); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--terra);
  margin-bottom: 26px;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--terra); }
h1 {
  font-family: var(--display);
  font-size: clamp(2.9rem, 7vw, 5.2rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.03em;
  max-width: 13ch;
}
h1 em { font-style: italic; color: var(--terra); }
.hero-sub { font-size: 1.22rem; color: var(--ink-soft); max-width: 54ch; margin: 28px 0 40px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: 0.88rem; color: var(--ink-soft); margin-top: 18px; }
.hero-ar {
  margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line);
  font-size: 1.15rem; color: var(--ink-soft); direction: rtl; text-align: right;
}
/* staggered load */
.rise { opacity: 0; transform: translateY(22px); animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.rise.d1 { animation-delay: 0.08s; } .rise.d2 { animation-delay: 0.2s; }
.rise.d3 { animation-delay: 0.34s; } .rise.d4 { animation-delay: 0.5s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- sections ---------- */
section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 64px; }
h2 { font-family: var(--display); font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; margin-top: 16px; }

/* features: asymmetric editorial grid */
.feat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.feat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; position: relative; overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.feat:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(26, 26, 25, 0.07); }
.feat.big { grid-column: span 4; }
.feat.small { grid-column: span 2; }
.feat.wide { grid-column: span 3; }
.feat h3 { font-family: var(--display); font-size: 1.45rem; font-weight: 650; letter-spacing: -0.01em; margin: 18px 0 10px; }
.feat p { color: var(--ink-soft); font-size: 0.98rem; }
.feat .glyph {
  width: 46px; height: 46px; border-radius: 14px; background: var(--raised);
  display: grid; place-items: center; font-size: 1.25rem;
}
.feat.accent { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.feat.accent h3 { color: var(--paper); }
.feat.accent p { color: rgba(250, 249, 247, 0.72); }
.feat.accent .glyph { background: rgba(250, 249, 247, 0.12); }
.feat.terra { background: var(--terra); border-color: var(--terra); color: var(--ink); }
.feat.terra h3 { color: var(--ink); }
.feat.terra p { color: rgba(255, 255, 255, 0.82); }
.feat.terra .glyph { background: rgba(255, 255, 255, 0.16); }

/* models strip */
.models { background: var(--paper-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 44px 0; }
.models .wrap { display: flex; gap: 14px 34px; flex-wrap: wrap; justify-content: center; align-items: baseline; }
.models span { font-family: var(--display); font-size: 1.05rem; color: var(--ink-soft); }
.models b { color: var(--ink); font-weight: 600; }

/* pricing */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.tier {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 38px 32px; display: flex; flex-direction: column;
}
.tier.hot { background: var(--ink); color: var(--paper); border-color: var(--ink); position: relative; transform: scale(1.03); }
.tier .name { font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.8rem; color: var(--terra); }
.tier .price { font-family: var(--display); font-size: 3rem; font-weight: 700; letter-spacing: -0.03em; margin: 14px 0 4px; }
.tier .per { font-size: 0.9rem; color: var(--ink-soft); }
.tier.hot .per { color: rgba(250, 249, 247, 0.6); }
.tier ul { list-style: none; margin: 26px 0 34px; flex: 1; }
.tier li { padding: 8px 0; font-size: 0.97rem; color: var(--ink-soft); display: flex; gap: 10px; }
.tier.hot li { color: rgba(250, 249, 247, 0.78); }
.tier li::before { content: "✓"; color: var(--terra); font-weight: 700; }
.badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--terra); color: #fff; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px;
}
.pricing-note { text-align: center; color: var(--ink-soft); font-size: 0.9rem; margin-top: 26px; }

/* contact + footer */
.contact { background: var(--paper-deep); border-radius: var(--radius); padding: 64px 48px; text-align: center; }
.contact h2 { margin-bottom: 12px; }
.contact p { color: var(--ink-soft); margin-bottom: 28px; }
footer { border-top: 1px solid var(--line); padding: 48px 0 64px; margin-top: 40px; }
.foot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; color: var(--ink-soft); font-size: 0.9rem; }
.foot a { color: var(--ink-soft); text-decoration: none; margin-right: 22px; }
.foot a:hover { color: var(--ink); }

/* legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 72px 24px 96px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 8px; }
.legal .updated { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 42px; }
.legal h2 { font-size: 1.4rem; margin: 38px 0 12px; }
.legal p, .legal li { color: #3d3d3f; font-size: 1rem; }
.legal ul { margin: 12px 0 12px 22px; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 880px) {
  .feat.big, .feat.small, .feat.wide { grid-column: span 6; }
  .tiers { grid-template-columns: 1fr; }
  .tier.hot { transform: none; }
  .nav-links a:not(.btn) { display: none; }
  header.hero { padding: 72px 0 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .rise, .reveal { animation: none; transition: none; opacity: 1; transform: none; }
}
