/* Glassy landing page */

.landing { background: var(--bg); overflow-x: hidden; }
.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }
.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }
.d1 { --i: 1; } .d2 { --i: 2; } .d3 { --i: 3; } .d4 { --i: 4; }

.ambient {
  position: fixed; inset: -20vh -20vw auto auto; width: 70vw; height: 70vw; pointer-events: none; z-index: -1;
  border-radius: 50%; background: radial-gradient(circle, rgba(196, 160, 104, 0.09), transparent 62%);
  animation: drift 28s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(-18vw, 30vh); } }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-strong); font-size: 21px; }
.brand-mark {
  display: inline-block; width: 22px; height: 22px; flex: none; background: var(--text-strong);
  /* The Glassy mark: half sun on a flat horizon. Drawn as a mask so it follows the text color in light and dark mode. */
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M5%2013a7%207%200%200%201%2014%200z%22/%3E%3Crect%20x%3D%222%22%20y%3D%2214%22%20width%3D%2220%22%20height%3D%221.8%22%20rx%3D%22.9%22/%3E%3Crect%20x%3D%227%22%20y%3D%2217.2%22%20width%3D%2210%22%20height%3D%221.6%22%20rx%3D%22.8%22/%3E%3Crect%20x%3D%229.5%22%20y%3D%2220.2%22%20width%3D%225%22%20height%3D%221.6%22%20rx%3D%22.8%22/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M5%2013a7%207%200%200%201%2014%200z%22/%3E%3Crect%20x%3D%222%22%20y%3D%2214%22%20width%3D%2220%22%20height%3D%221.8%22%20rx%3D%22.9%22/%3E%3Crect%20x%3D%227%22%20y%3D%2217.2%22%20width%3D%2210%22%20height%3D%221.6%22%20rx%3D%22.8%22/%3E%3Crect%20x%3D%229.5%22%20y%3D%2220.2%22%20width%3D%225%22%20height%3D%221.6%22%20rx%3D%22.8%22/%3E%3C/svg%3E") center / contain no-repeat;
}

.topbar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color 200ms ease;
}
.topbar.is-scrolled { border-bottom-color: var(--border); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.topnav { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.topnav a:not(.btn) { text-decoration: none; color: var(--muted); }
.topnav a:not(.btn):hover { color: var(--text-strong); }

.hero { padding: 96px 0 40px; position: relative; }
.hero::before {
  content: ''; position: absolute; inset: 0 0 30%; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px; opacity: 0.45;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 70%);
}
.hero-inner { display: grid; justify-items: center; text-align: center; gap: 22px; }
.hero-title { font-size: clamp(48px, 8.4vw, 104px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 400; }
.hero-title em { font-style: italic; color: var(--muted); }
.hero-sub { max-width: 620px; font-size: 18px; line-height: 1.6; color: var(--text); }
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }

/* Product mock */
.window {
  position: relative; margin: 72px auto 0; max-width: 1040px;
  border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: 0 30px 80px -40px rgba(17, 17, 17, 0.18);
}
.window-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--border); }
.window-bar > span:not(.window-title) { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.window-title { margin-left: 14px; color: var(--faint); font-size: 12px; }
.mock { padding: 24px; }
.mock-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 18px; }
.mock-title { font-size: 26px; color: var(--text-strong); letter-spacing: -0.02em; }
.mock-progress { display: flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.mock-progress i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--border-strong); }
.mock-progress i.on { background: var(--green); border-color: var(--green); }
.mock-progress i.plan { border-color: var(--blue); }
.mock-progress span { margin-left: 8px; }
.mock-seg { display: flex; gap: 2px; padding: 3px; border-radius: 8px; background: var(--surface-3); font-size: 12.5px; }
.mock-seg span { padding: 3px 10px; border-radius: 6px; color: var(--muted); }
.mock-seg .is-active { background: var(--surface); color: var(--text-strong); }
.mock-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.mock-day { min-height: 250px; padding: 10px 8px; border-right: 1px solid var(--border); display: grid; align-content: start; gap: 8px; }
.mock-day:last-child { border-right: 0; }
.mock-day b { font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.mock-day > span { font-size: 20px; color: var(--text-strong); line-height: 1; margin-top: -4px; }
.mock-day.today > span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-text); font-size: 16px; }
.mock-card { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--surface); }
.mock-card.draft { border-style: dashed; }
.mock-card p { padding: 7px 8px; font-size: 12px; line-height: 1.35; color: var(--text-strong); }
.mock-card p i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 5px; background: var(--border-strong); vertical-align: middle; }
.mock-card.live p i { background: var(--green); }
.mock-card.sched p i { background: var(--blue); }
.mock-card .mono { color: var(--muted); margin-right: 4px; }
.mock-img { aspect-ratio: 4 / 3; background-size: cover; background-position: center; filter: saturate(0.75) sepia(0.08); }
.img-a { background: var(--blue-bg); }
.img-b { background: var(--yellow-bg); }
.img-c { background: var(--green-bg); }
.mock-tag { justify-self: start; }
.mock-float {
  position: absolute; right: -28px; bottom: -36px; display: grid; gap: 4px; width: 230px; padding: 18px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: 0 20px 50px -24px rgba(17, 17, 17, 0.25);
}
.mock-float-num { font-size: 40px; line-height: 1; color: var(--text-strong); letter-spacing: -0.03em; }

/* Sections */
.section { padding: 128px 0 0; }
.section-title { font-size: clamp(34px, 5vw, 54px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 400; margin: 14px 0 28px; max-width: 820px; }
.prose { display: grid; gap: 18px; font-size: 18px; line-height: 1.7; }
.problem { padding-top: 160px; }

.steps-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--border); }
.steps-grid li { padding: 24px 24px 0 0; display: grid; gap: 10px; align-content: start; }
.steps-grid li + li { padding-left: 24px; border-left: 1px solid var(--border); }
.steps-grid h3 { font-size: 20px; font-weight: 500; }
.steps-grid p { color: var(--muted); }
.step-num { color: var(--faint); }

.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tile-l {
  display: grid; gap: 10px; align-content: start; padding: 32px; min-height: 230px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
  transition: box-shadow 200ms ease, opacity 600ms var(--ease), transform 600ms var(--ease);
}
.tile-l:hover { box-shadow: var(--shadow-hover); }
.tile-wide { grid-column: span 2; }
.tile-l h3 { font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 400; }
.tile-l p { max-width: 480px; }
.mini-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 14px; max-width: 420px; }
.mini-cal i { height: 54px; border-radius: 6px; border: 1px dashed var(--border-strong); }
.mini-cal i.b { border: 0; background: var(--blue-bg); }
.mini-cal i.g { border: 0; background: var(--green-bg); }

.case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.case { display: grid; gap: 12px; align-content: start; padding: 36px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.case .badge { justify-self: start; }
.case h3 { font-size: 30px; letter-spacing: -0.02em; font-weight: 400; }

.pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.price { display: grid; gap: 12px; align-content: start; padding: 32px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.price-featured { border-color: var(--text-strong); }
.price h3 { font-size: 15px; font-weight: 600; }
.price-num { font-size: 46px; line-height: 1; color: var(--text-strong); letter-spacing: -0.03em; }
.price-num span { font: 400 14px var(--sans); color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.price ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--muted); font-size: 14px; }
.price li { padding-left: 18px; position: relative; }
.price li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 8px; height: 1.5px; background: var(--text-strong); }

.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-size: 17px; font-weight: 500; color: var(--text-strong);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 400 22px/1 var(--mono); color: var(--muted); }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 640px; }

.pilot { padding-bottom: 128px; }
.pilot-card { padding: 44px; }
.pilot-card .section-title { margin-bottom: 14px; }
.waitlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.waitlist .field-wide, .waitlist .platforms, .waitlist .form-error, .waitlist button { grid-column: 1 / -1; }
.consent { align-items: flex-start; font-size: 13px; }
.consent input { margin-top: 2px; flex: none; }
.waitlist button { justify-self: start; }
.platforms { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.platforms legend { width: 100%; margin-bottom: 8px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--text-strong); }
.form-error { padding: 10px 12px; border-radius: 8px; background: var(--red-bg); color: var(--red); font-size: 13.5px; }
.waitlist-done { display: grid; gap: 8px; margin-top: 24px; padding: 24px; border-radius: 10px; background: var(--green-bg); }
.waitlist-done h3 { font-size: 26px; color: var(--green); font-weight: 400; }

.footer { border-top: 1px solid var(--border); padding: 40px 0 56px; }
.footer-inner { display: grid; grid-template-columns: auto 1fr; gap: 14px 32px; align-items: center; }
.footnav { display: flex; gap: 20px; justify-content: flex-end; font-size: 14px; }
.footnav a { color: var(--muted); text-decoration: none; }
.footer p { grid-column: 1 / -1; }

@media (max-width: 900px) {
  .topnav a:not(.btn):not([href="/app#/login"]) { display: none; }
  .topnav { gap: 14px; }
  .hero { padding-top: 64px; }
  .hero-sub { font-size: 16.5px; }
  .window { margin-top: 48px; }
  .mock { padding: 14px; overflow-x: auto; }
  .mock-week { min-width: 680px; }
  .mock-head { flex-wrap: wrap; gap: 10px; }
  .mock-float { position: static; width: auto; margin: 0 14px 14px; }
  .section { padding-top: 96px; }
  .problem { padding-top: 112px; }
  .steps-grid, .bento, .case-grid, .pricing { grid-template-columns: minmax(0, 1fr); }
  .steps-grid li, .steps-grid li + li { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--border); }
  .tile-wide { grid-column: auto; }
  .tile-l, .case, .price { padding: 24px; min-height: 0; }
  .pilot-card { padding: 24px; }
  .waitlist { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footnav { justify-content: flex-start; }
}

/* Legal + utility pages */
.doc { padding: 72px 0 120px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 400; margin: 12px 0 8px; }
.doc h2 { font-size: 20px; font-weight: 600; margin: 40px 0 10px; letter-spacing: -0.01em; }
.doc p, .doc li { font-size: 16px; line-height: 1.7; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 20px; display: grid; gap: 6px; }
.doc .note { margin: 24px 0; padding: 14px 16px; border-radius: 10px; background: var(--yellow-bg); color: var(--yellow); font-size: 14px; }
.doc .status-box { margin-top: 20px; padding: 18px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }

.doc-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0; }
.doc-table th, .doc-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.doc-table th { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.doc code { font-family: var(--mono); font-size: 0.9em; }

.story .prose p:first-child { font-family: var(--serif); font-size: 22px; line-height: 1.5; color: var(--text-strong); }
.signature { margin-top: 8px; font-style: italic; color: var(--muted); }
