/* Wordhaven website: shared styles. Colors match the app in light mode: warm cream, a light green wash like the onboarding, charcoal text and a sage-green accent. */

@font-face { font-family: "Lora"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/lora-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/lora-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/lora-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }

:root {
  --bg: #f6f3ea;
  --bg-raised: #ffffff;
  --line: #dfe4d6;
  --text: #262b33;
  --muted: #5a606b;
  --gold: #4e9a6b;
  --gold-ink: #ffffff;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --radius: 16px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: linear-gradient(180deg, #e2edd9 0, #e9f0e1 360px, var(--bg) 900px) no-repeat, var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* --- Header --- */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(232, 240, 226, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 1.2rem; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav { display: flex; gap: 20px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* --- Buttons --- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 0.98rem; text-decoration: none; border: 0; }
.btn-accent, .btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-ghost { color: var(--text); border: 1px solid #c9d4bf; background: rgba(255,255,255,0.5); }
.btn[aria-disabled="true"] { cursor: default; }
.btn svg { width: 20px; height: 20px; }

/* --- Hero --- */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--gold); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 14px; }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.4rem, 5.5vw, 3.9rem); line-height: 1.08; margin: 0 0 18px; letter-spacing: -0.01em; }
.hero h1 em { color: var(--gold); font-style: italic; font-weight: 400; }
.lede { color: var(--muted); font-size: 1.12rem; max-width: 34em; margin: 0 0 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-note { color: var(--muted); font-size: 0.85rem; margin-top: 14px; }

/* --- Phone mockup: the word feed as it looks in the app (drawn in CSS over a real theme photo) --- */
.phone {
  position: relative; width: min(300px, 78vw); aspect-ratio: 9 / 19.5; margin: 0 auto;
  border-radius: 46px; padding: 10px; background: #1d2330;
  box-shadow: 0 0 0 1px #303849, 0 40px 80px -20px rgba(0, 0, 0, 0.7), 0 0 120px -30px rgba(154, 212, 168, 0.25);
}
.phone-screen { position: relative; height: 100%; border-radius: 37px; overflow: hidden; background: #121722 center / cover no-repeat; container-type: inline-size; }
.phone-screen::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.4); }
.phone-screen svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.phone-notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 32%; height: 22px; border-radius: 20px; background: #000; z-index: 3; }
.phone-top { position: absolute; top: 40px; left: 12px; right: 12px; display: flex; gap: 5px; align-items: center; z-index: 2; color: #fff; }
.phone-top .spacer { flex: 1; }
.phone-top .chip { display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 8px; border-radius: 999px; background: rgba(255,255,255,0.14); font-size: 0.58rem; font-weight: 600; }
.phone-top .chip.round { width: 26px; padding: 0; justify-content: center; }
.phone-top svg { width: 11px; height: 11px; }
.phone-top .flame { fill: #ff7a63; stroke: #ff7a63; }
.phone-card { position: absolute; inset: 70px 0 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 20px; color: #fff; z-index: 1; gap: 8px; }
.phone-card .tags { display: flex; gap: 5px; }
.phone-card .tags span, .phone-card .similar span:not(.label) { font-size: 0.55rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.85); }
.phone-card .word { font-family: var(--serif); font-weight: 400; font-size: 2.15rem; line-height: 1.05; margin: 2px 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,0.12); font-size: 0.66rem; color: rgba(255,255,255,0.85); }
.phone-card .def { font-family: var(--serif); font-size: 0.86rem; line-height: 1.35; color: #fff; margin: 2px 0 0; }
.phone-card .ex { font-family: var(--serif); font-style: italic; font-size: 0.74rem; line-height: 1.35; color: rgba(255,255,255,0.78); margin: 0; }
.phone-card .ex b { color: #fff; }
.phone-card .similar { display: flex; gap: 5px; align-items: center; margin: 0; }
.phone-card .similar span:not(.label) { text-decoration: underline; }
.phone-card .similar .label { font-size: 0.55rem; font-weight: 600; color: rgba(255,255,255,0.7); }
.phone-actions { display: flex; justify-content: center; gap: 12px; margin-top: 12px; color: #fff; }
.phone-actions span { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.12); display: grid; place-items: center; }
.phone-actions svg { width: 15px; height: 15px; }
.phone-actions .on svg { fill: #ff6b6b; stroke: #ff6b6b; }
.phone-card .known { font-size: 0.6rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,0.12); margin-top: 4px; }
.phone-nav { position: absolute; left: 10px; right: 10px; bottom: 12px; height: 46px; border-radius: 24px; background: rgba(24,29,40,0.8); border: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-around; align-items: center; font-size: 0.5rem; color: rgba(255,255,255,0.55); z-index: 2; }
.phone-nav span { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.phone-nav span.active { color: #fff; }
.phone-nav svg { width: 15px; height: 15px; }

/* --- Sections --- */
section { padding: 64px 0; }
.section-title { font-family: var(--serif); font-weight: 600; font-size: clamp(1.7rem, 3.6vw, 2.4rem); line-height: 1.15; margin: 0 0 10px; }
.section-sub { color: var(--muted); margin: 0 0 32px; max-width: 38em; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 8px 24px -18px rgba(60, 90, 60, 0.35); }
.feature .icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(78,154,107,0.12); margin-bottom: 14px; }
.feature .icon svg { width: 20px; height: 20px; stroke: var(--gold); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin: 0 0 6px; font-size: 1.02rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.93rem; }

.themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.theme { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 5; }
.theme img { width: 100%; height: 100%; object-fit: cover; }
.theme span { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 10px; background: linear-gradient(transparent, rgba(0,0,0,0.6)); color: #fff; font-size: 0.85rem; font-weight: 500; }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 760px; }
.plan { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: 0 8px 24px -16px rgba(60, 90, 60, 0.35); }
.plan.featured { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.plan h3 { margin: 0 0 4px; font-family: var(--serif); font-size: 1.4rem; font-weight: 600; }
.price { color: var(--muted); margin: 0 0 18px; font-size: 0.95rem; }
.price strong { color: var(--text); font-size: 1.5rem; font-weight: 600; }
.plan ul { list-style: none; padding: 0; margin: 0; }
.plan li { padding: 6px 0 6px 26px; position: relative; font-size: 0.94rem; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 12px; height: 7px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.plan .small { color: var(--muted); font-size: 0.82rem; margin: 16px 0 0; }

/* --- Text pages (privacy, support) --- */
.doc { max-width: 700px; padding-top: 48px; padding-bottom: 64px; }
.doc h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 5vw, 2.6rem); line-height: 1.15; margin: 0 0 6px; }
.doc h2 { font-size: 1.15rem; margin: 36px 0 8px; }
.doc h3 { font-size: 1rem; margin: 22px 0 4px; }
.doc p, .doc ul { margin: 0 0 12px; color: #3d434d; }
.doc ul { padding-left: 1.25em; }
.doc li { margin-bottom: 6px; }
.updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 26px !important; }
.callout { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 8px; }
.callout h2 { margin-top: 0; }
.callout ul { margin-bottom: 0; }
details { background: var(--bg-raised); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0 !important; }

/* --- Footer --- */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 0.88rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* --- Phones and tablets --- */
@media (max-width: 860px) {
  .hero { padding-top: 44px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .features { grid-template-columns: 1fr 1fr; }
  .themes { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .nav { gap: 14px; }
  .nav a.hide-sm { display: none; }
  .features, .plans { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
}
