/* glendly.com — the marketing site. Plain CSS, no build step; fonts are served from /fonts (SIL OFL). */
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/playfair-display-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 400; font-display: swap; src: url('fonts/playfair-display-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/nunito-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/nunito-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/nunito-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/caveat-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Lora'; font-style: italic; font-weight: 400; font-display: swap; src: url('fonts/lora-latin-400-italic.woff2') format('woff2'); }

:root {
  --bg: #f6f0e7; --bg-deep: #ede2d2; --paper: #fdfaf4; --card: #fffdf9;
  --ink: #2f261d; --soft: #5f5142; --line: #e0d4c3;
  --brand: #a4573a; --brand-deep: #8a4529; --brand-ink: #fff; --brand-tint: #f3e3d9;
  --sage: #7d9a86; --sage-tint: #e4ece5; --gold: #e2b65c; --rose: #c98f98;
  --serif: 'Playfair Display', Georgia, serif; --sans: 'Nunito', system-ui, sans-serif;
  --hand: 'Caveat', cursive; --verse: 'Lora', Georgia, serif;
  --radius: 18px; --shadow: 0 1px 2px rgba(60, 40, 20, .06), 0 12px 32px rgba(60, 40, 20, .10);
  --wrap: 1080px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); }
img, svg { max-width: 100%; display: block; }
a { color: var(--brand-deep); text-underline-offset: 3px; }
a:hover { color: var(--brand); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 6vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
h1 em, h2 em { color: var(--brand); }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 14px; z-index: 10; }
.eyebrow { font: 800 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.hand { font-family: var(--hand); font-weight: 600; }
.muted { color: var(--soft); }

/* Header */
.site-head { position: sticky; top: 0; z-index: 5; background: rgba(246, 240, 231, .92); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; }
.site-head.scrolled { border-bottom-color: var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: italic 400 1.6rem/1 var(--serif); }
.logo img { width: 34px; height: 34px; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; color: var(--soft); font-weight: 700; font-size: .95rem; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--ink); }
.nav .btn { color: var(--brand-ink); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font: 700 .95rem var(--sans); color: var(--ink); cursor: pointer; }
@media (max-width: 760px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a.btn { margin-top: 12px; border-bottom: 0; text-align: center; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 1px solid var(--brand); background: var(--brand); color: var(--brand-ink); font: 800 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .15s, transform .15s; }
.btn:hover { background: var(--brand-deep); color: var(--brand-ink); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand-deep); background: transparent; }
.btn.sm { min-height: 40px; padding: 8px 18px; font-size: .92rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Hero */
.hero { padding: 56px 0 72px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero .lead { font-size: 1.2rem; color: var(--soft); max-width: 34em; }
.beta-pill { display: inline-flex; gap: 8px; align-items: center; background: var(--sage-tint); color: #3f5a47; border-radius: 999px; padding: 6px 14px; font-weight: 800; font-size: .85rem; margin-bottom: 20px; }
.beta-pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }
.hero .note { font-size: .92rem; margin-top: 14px; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; gap: 40px; } .hero { padding-top: 32px; } }

/* The page mock-ups: drawn in CSS so they stay crisp and need no photos. */
.stack { position: relative; min-height: 470px; }
.page { position: absolute; width: min(330px, 78%); aspect-ratio: 8 / 10; background: var(--paper); border-radius: 6px; box-shadow: 0 2px 4px rgba(60, 40, 20, .08), 0 18px 40px rgba(60, 40, 20, .18); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.page.back { right: 4%; top: 10px; transform: rotate(5deg); background: #f4ede0; }
.page.front { left: 4%; top: 40px; transform: rotate(-3deg); }
.page .tape { position: absolute; width: 96px; height: 26px; top: -12px; left: 50%; margin-left: -48px; background: rgba(226, 182, 92, .7); transform: rotate(-4deg); }
.page.back .tape { background: rgba(125, 154, 134, .55); transform: rotate(6deg); left: 30%; }
.page .ph { flex: 1; border-radius: 3px; border: 6px solid #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.ph.a { background: radial-gradient(circle at 30% 70%, #f3d9b8 0 18%, transparent 19%), radial-gradient(circle at 70% 35%, #fff4dc 0 14%, transparent 15%), linear-gradient(160deg, #e9b9a3, #c98f98 60%, #a77a8c); }
.ph.b { background: radial-gradient(circle at 60% 60%, #f6e7c9 0 22%, transparent 23%), linear-gradient(200deg, #b8cdb9, #7d9a86 70%, #5f7d6a); }
.ph.c { background: radial-gradient(circle at 40% 40%, #fff7e8 0 16%, transparent 17%), linear-gradient(180deg, #f1d3a2, #e2b65c); }
.page .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex: 1; }
.page .pt { font: italic 400 1.35rem/1.15 var(--serif); margin: 4px 0 0; }
.page .wk { font: 800 .68rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.page .cap { font: 600 1.25rem/1.1 var(--hand); color: var(--soft); }
.sticker { position: absolute; right: -14px; top: 22px; width: 54px; height: 54px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); font: 600 1.05rem/1 var(--hand); color: var(--brand); transform: rotate(10deg); }
@media (max-width: 520px) { .stack { min-height: 380px; } .page { width: 72%; } }

/* Sections */
section { padding: 72px 0; }
.band { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head .lead { font-size: 1.12rem; color: var(--soft); }

/* The weekly loop */
.loop { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.loop li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; position: relative; counter-increment: step; }
.loop li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-deep); font: 800 1rem/1 var(--sans); margin-bottom: 14px; }
.loop h3 { font-size: 1.2rem; margin-bottom: .35em; }
.loop p { margin: 0; color: var(--soft); font-size: .98rem; }
@media (max-width: 900px) { .loop { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .loop { grid-template-columns: 1fr; } }

/* Prompt + verse card (mirrors the app's Book tab) */
.prompt-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.prompt-card { background: linear-gradient(135deg, #f8ece6, #f1e2e2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.prompt-card .eyebrow { margin-bottom: 10px; color: #8a4a5a; }
.prompt-card .q { font: italic 400 1.5rem/1.3 var(--serif); margin: 0 0 18px; }
.prompt-card blockquote { margin: 0; background: rgba(255, 255, 255, .55); border-left: 3px solid var(--rose); border-radius: 10px; padding: 14px 18px; font: italic 400 1.05rem/1.5 var(--verse); }
.prompt-card cite { display: block; font: normal 400 .9rem var(--sans); color: var(--soft); margin-top: 6px; }
@media (max-width: 860px) { .prompt-demo { grid-template-columns: 1fr; gap: 28px; } }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand-deep); margin-bottom: 14px; }
.feature .ic svg { width: 24px; height: 24px; }
.feature:nth-child(3n+2) .ic { background: var(--sage-tint); color: #4b6a55; }
.feature:nth-child(3n) .ic { background: #f6ead0; color: #8a6a22; }
.feature h3 { font-size: 1.18rem; margin-bottom: .35em; }
.feature p { margin: 0; color: var(--soft); font-size: .98rem; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* Trust strip */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.trust h3 { font-size: 1.15rem; }
.trust p { color: var(--soft); margin: 0; }
@media (max-width: 760px) { .trust { grid-template-columns: 1fr; gap: 24px; } }

/* Call to action */
.cta { background: var(--brand); color: var(--brand-ink); border-radius: 28px; padding: 56px 40px; text-align: center; position: relative; overflow: hidden; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .88); max-width: 34em; margin: 0 auto 24px; font-size: 1.1rem; }
.cta .btn { background: #fff; color: var(--brand-deep); border-color: #fff; }
.cta .btn:hover { background: var(--bg); }
@media (max-width: 520px) { .cta { padding: 40px 22px; border-radius: 22px; } }

/* Pricing */
.plans { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: stretch; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.plan .price { font: 400 3rem/1 var(--serif); margin: 10px 0 4px; }
.plan .price small { font: 700 1rem var(--sans); color: var(--soft); }
.plan ul { padding: 0; margin: 20px 0 28px; list-style: none; display: grid; gap: 10px; }
.plan li { padding-left: 30px; position: relative; }
.plan li::before { content: ''; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--sage-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%234b6a55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.plan .btn { margin-top: auto; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 32px 18px 0; font: 800 1.05rem/1.4 var(--sans); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 14px; font: 400 1.6rem/1 var(--sans); color: var(--brand); }
.faq details[open] summary::after { content: '–'; }
.faq details > div { padding-bottom: 18px; color: var(--soft); }
.faq details > div p:last-child { margin-bottom: 0; }

/* Legal / prose pages */
.prose { padding: 48px 0 72px; }
.prose h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose .updated { color: var(--soft); font-size: .95rem; }
.callout { background: var(--sage-tint); border-radius: 14px; padding: 16px 20px; margin: 0 0 24px; color: #2f4536; }

/* Join form */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.field { display: block; margin-bottom: 18px; }
.field > span { display: block; font-weight: 800; margin-bottom: 6px; }
.field small { display: block; color: var(--soft); font-size: .88rem; margin-top: 4px; }
.field input, .field select, .field textarea { width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(164, 87, 58, .25); border-color: var(--brand); }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px; font-size: .95rem; color: var(--soft); }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { border-radius: 12px; padding: 14px 18px; margin-bottom: 20px; }
.form-msg.ok { background: var(--sage-tint); color: #2f4536; }
.form-msg.err { background: #f7e1dc; color: #7a2e1c; }
.join-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .join-grid { grid-template-columns: 1fr; gap: 28px; } .form-card { padding: 24px 20px; } }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--soft); font-size: .95rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-foot a { color: var(--soft); text-decoration: none; font-weight: 700; }
.site-foot a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } .btn:hover { transform: none; } }
