/* The front page. The sky warms from dawn to day as you read down it. */
@property --era { syntax: "<number>"; inherits: true; initial-value: 0; }
html { --era: 0; scroll-behavior: smooth; scroll-padding-top: 90px; }
.landing { overflow-x: hidden; }
.sky {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(90% 70% at calc(6% + var(--era) * 88%) calc(30% - var(--era) * 34%), color-mix(in oklab, #f08a55 calc((1 - var(--era)) * 100%), #fbd98d) 0%, transparent 60%),
    linear-gradient(180deg, color-mix(in oklab, #f6c4a0 calc((1 - var(--era)) * 100%), #fdf3d6) 0%, var(--daylight) 70%);
  opacity: calc(0.75 - var(--era) * 0.25);
}
.eyebrow { font: 600 0.8rem var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.lead { font: 400 clamp(1.15rem, 1.7vw, 1.4rem)/1.5 var(--serif); color: var(--ink-soft); max-width: 32em; }
section { padding: clamp(60px, 10vw, 130px) clamp(18px, 5vw, 64px); }
section > h2 { max-width: 18em; margin-inline: auto; margin-bottom: 1.2em; font-size: clamp(1.8rem, 3.8vw, 2.9rem); letter-spacing: -0.015em; }

.l-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px clamp(18px, 5vw, 64px); background: color-mix(in srgb, var(--daylight) 70%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.l-top nav { display: flex; align-items: center; gap: clamp(10px, 2.4vw, 30px); }
.l-top nav a:not(.btn) { color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.l-top nav a:not(.btn):hover { color: var(--ink); }

/* hero */
.l-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 90px); align-items: center; max-width: 1400px; margin: 0 auto; padding-top: clamp(36px, 7vw, 96px); }
.l-hero h1 { font-size: clamp(2.5rem, 6vw, 4.9rem); letter-spacing: -0.025em; line-height: 1.04; margin-bottom: 0.5em; }
.l-hero h1 em, .l-last h2 em { font-style: italic; background: var(--dawn); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.08em; }
.l-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 34px; }
.btn.primary.big { box-shadow: 0 12px 34px rgba(201, 64, 58, 0.3); }

/* a print and the sheet of paper beside it: the product in miniature */
.l-demo { position: relative; min-height: 470px; }
.l-print { margin: 0; padding: 12px 12px 14px; background: #fdfaf3; border-radius: 3px; box-shadow: 0 2px 6px rgba(35, 38, 44, 0.16), 0 30px 70px rgba(35, 38, 44, 0.26); }
.l-print svg { display: block; width: 100%; height: auto; border-radius: 1px; filter: saturate(0.92) contrast(0.97); }
.l-demo .l-print { position: absolute; left: 0; top: 0; width: 76%; }
.tilt-a { transform: rotate(-3.2deg); }
.tilt-b { transform: rotate(-5deg); }
.tilt-c { transform: rotate(4deg); }
.l-paper { position: absolute; right: 0; bottom: 0; width: 62%; padding: 24px 24px 20px 28px; background: linear-gradient(180deg, #fdf8ee, #f8f0e1); border-radius: 5px 16px 16px 5px; box-shadow: 0 30px 70px rgba(35, 38, 44, 0.28); transform: rotate(1.4deg); }
.l-paper::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; border-radius: 5px 0 0 5px; background: linear-gradient(180deg, #f7b15c, #f08049 45%, #d9473d); }
.l-date { font: 500 1.5rem var(--serif); margin: 0 0 14px; }
.l-words { font: 400 1.05rem/1.6 var(--serif); margin: 18px 0 0; }
.l-words::first-letter { font-size: 1.9em; line-height: 1; color: var(--accent-ink); }
.l-by { margin: 8px 0 0; font-size: 0.85rem; color: var(--muted); }
.voice { display: flex; align-items: center; gap: 12px; }
.voice-play { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--dawn); color: #fff; box-shadow: 0 6px 18px rgba(217, 71, 61, 0.35); }
.voice-line { flex: 1; display: flex; align-items: center; gap: 2px; height: 46px; min-width: 0; }
.voice-line i { flex: 1; height: calc(var(--h) * 1%); min-height: 3px; border-radius: 3px; background: rgba(35, 38, 44, 0.2); transition: background 0.25s; }
.voice-line i.on { background: #e9703f; box-shadow: 0 0 8px rgba(247, 177, 92, 0.7); }
.voice-time { font: 500 0.85rem var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }

/* how it works */
.l-band { background: rgba(255, 253, 249, 0.72); border-block: 1px solid var(--line-soft); }
.l-steps, .l-grid, .l-plans { display: grid; gap: clamp(18px, 3vw, 34px); max-width: 1240px; margin: 0 auto; }
.l-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.l-steps article { padding: 26px; border-radius: 18px; }
.l-steps article.featured { background: var(--dusk); color: var(--on-dusk); box-shadow: 0 30px 70px rgba(27, 30, 37, 0.3); transform: translateY(-14px); }
.l-steps h3 { font-size: 1.45rem; margin: 20px 0 10px; }
.l-steps p { margin: 0; color: inherit; opacity: 0.86; }
.l-step-art { position: relative; height: 190px; display: grid; place-items: center; }
.l-print.small { position: absolute; width: 58%; padding: 7px 7px 9px; }
.l-print.small.tilt-b { left: 4%; top: 14px; }
.l-print.small.tilt-c { right: 4%; bottom: 6px; }
.l-sun { position: relative; width: 104px; height: 104px; border-radius: 50%; background: var(--dawn); display: grid; place-items: center; animation: speak 2.6s ease-in-out infinite; }
.l-sun span { width: 30px; height: 30px; border-radius: 8px; background: #fff; }
@keyframes speak {
  0%, 100% { box-shadow: 0 0 0 8px rgba(247, 177, 92, 0.25), 0 0 40px rgba(240, 128, 73, 0.7); transform: scale(1); }
  20% { box-shadow: 0 0 0 30px rgba(247, 177, 92, 0.2), 0 0 90px rgba(240, 128, 73, 0.9); transform: scale(1.1); }
  35% { box-shadow: 0 0 0 14px rgba(247, 177, 92, 0.25), 0 0 50px rgba(240, 128, 73, 0.75); transform: scale(1.03); }
  55% { box-shadow: 0 0 0 36px rgba(247, 177, 92, 0.18), 0 0 100px rgba(240, 128, 73, 0.9); transform: scale(1.13); }
  75% { box-shadow: 0 0 0 12px rgba(247, 177, 92, 0.25), 0 0 46px rgba(240, 128, 73, 0.7); transform: scale(1.02); }
}
.l-faces { display: flex; }
.l-faces span { display: grid; place-items: center; width: 68px; height: 68px; margin-left: -14px; border-radius: 50%; font: 600 1.05rem var(--sans); color: var(--ink); border: 3px solid transparent; background-image: linear-gradient(#fffdf9, #fffdf9), var(--dawn); background-origin: border-box; background-clip: padding-box, border-box; box-shadow: 0 8px 20px rgba(35, 38, 44, 0.14); }
.l-faces span:first-child { margin-left: 0; }
.l-faces span:last-child { background-image: linear-gradient(var(--surface), var(--surface)), linear-gradient(var(--line), var(--line)); color: var(--muted); }

/* the horizon */
.l-day { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(30px, 6vw, 80px); align-items: center; max-width: 1340px; margin: 0 auto; }
.l-day h2 { font-size: clamp(1.8rem, 3.8vw, 2.9rem); }
.l-horizon { position: relative; height: 200px; padding: 0 6px; border-bottom: 3px solid var(--ink); display: flex; align-items: flex-end; gap: 3px; }
.l-horizon .yr { position: relative; flex: 1; height: calc(var(--n) * 100%); border-radius: 3px 3px 0 0; background: rgba(35, 38, 44, 0.15); transform-origin: bottom; transform: scaleY(0); transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: calc(var(--i) * 18ms); }
.l-horizon .yr::after { content: ""; position: absolute; inset: auto 0 0 0; height: calc(var(--t) * 100%); border-radius: inherit; background: linear-gradient(180deg, #f7b15c, #e2603f); }
.l-horizon.seen .yr { transform: scaleY(1); }
.l-horizon .sun { position: absolute; left: calc(4% + var(--era) * 92%); top: calc(64% - var(--era) * 70%); width: 34px; height: 34px; margin-left: -17px; border-radius: 50%; background: var(--dawn); box-shadow: 0 0 0 10px rgba(247, 177, 92, 0.25), 0 0 50px rgba(240, 128, 73, 0.8); }
.l-horizon .cap { position: absolute; bottom: -34px; font: 500 0.85rem var(--sans); color: var(--muted); }
.l-horizon .cap.b { right: 0; }

/* promises, price, questions */
.l-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.l-grid article { padding-top: 18px; border-top: 3px solid; border-image: var(--dawn) 1; }
.l-grid h3 { font-size: 1.25rem; }
.l-grid p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.l-honest { max-width: 46em; margin: 44px auto 0; }
.l-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 880px; }
.plan-card { display: flex; flex-direction: column; padding: 32px; border-radius: 20px; background: var(--card); border: 1px solid var(--line-soft); box-shadow: var(--shadow); }
.plan-card.best { border: 2px solid transparent; background-image: linear-gradient(var(--card), var(--card)), var(--dawn); background-origin: border-box; background-clip: padding-box, border-box; box-shadow: 0 30px 70px rgba(201, 64, 58, 0.16); }
.plan-card h3 { font-size: 1.6rem; margin: 0; }
.amount { margin: 6px 0 16px; font-size: 1.05rem; color: var(--ink-soft); }
.amount strong { font: 500 3rem/1 var(--serif); color: var(--ink); margin-right: 4px; }
.plan-card ul { flex: 1; margin: 0 0 26px; padding-left: 20px; color: var(--ink-soft); display: grid; gap: 8px; }
.l-faq { max-width: 800px; margin: 0 auto; }
.l-faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.l-faq details:last-of-type { border-bottom: 1px solid var(--line); }
.l-faq summary { padding: 16px 30px 16px 0; font: 500 1.2rem var(--serif); cursor: pointer; list-style: none; position: relative; }
.l-faq summary::-webkit-details-marker { display: none; }
.l-faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 400 1.6rem var(--sans); color: var(--accent); transition: transform 0.2s; }
.l-faq details[open] summary::after { transform: rotate(45deg); }
.l-faq details p { margin: 0 0 18px; color: var(--ink-soft); max-width: 40em; }
.l-last { text-align: center; background: var(--dusk); color: var(--on-dusk); }
.l-last h2 { font-size: clamp(1.9rem, 4.4vw, 3.3rem); max-width: 16em; margin: 0 auto 36px; }
.l-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding: 30px clamp(18px, 5vw, 64px); background: var(--dusk); color: #a7a39c; border-top: 1px solid rgba(243, 237, 228, 0.14); font-size: 0.9rem; }
.l-foot .wordmark { color: var(--on-dusk); }
.l-foot p { margin: 0; }
.l-foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.l-foot a:not(.wordmark) { color: #d8d2c8; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.seen { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .l-hero, .l-day { grid-template-columns: 1fr; }
  .l-steps { grid-template-columns: 1fr; max-width: 520px; }
  .l-steps article.featured { transform: none; }
  .l-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .l-demo { min-height: 0; padding-bottom: 46%; margin-top: 10px; }
}
@media (max-width: 640px) {
  .l-top nav a:not(.btn):not([href="/login"]) { display: none; }
  .l-plans, .l-grid { grid-template-columns: 1fr; }
  .l-demo { padding-bottom: 0; display: grid; gap: 0; }
  .l-demo .l-print, .l-paper { position: relative; width: 92%; }
  .l-paper { margin: -36px 0 0 8%; width: 92%; }
  .l-horizon { height: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .l-horizon .yr { transform: scaleY(1); }
}
