:root {
  --cream: #FAF5EE;
  --charcoal: #3A3A3A;
  --coral: #F26B4A;
  --coral-dark: #D9563A;
  --coral-soft: rgba(242, 107, 74, 0.10);
  --muted: #8A8478;
  --card: #FFFFFF;
  --border: rgba(58, 58, 58, 0.08);
  /* Accessible text variants (WCAG AA 4.5:1 for normal text) — brand coral
     stays for large display type and visual accents only. */
  --coral-text: #A8341B;
  --coral-btn: #C0431F;
  --muted-text: #6B655A;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* warm radial glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(700px 420px at 50% 12%, var(--coral-soft), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
a { color: var(--coral-text); }

/* ---------- header ---------- */
.site-header {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--charcoal);
}
.brand img { width: 36px; height: 36px; border-radius: 10px; display: block; }
.brand span { font-weight: 700; letter-spacing: 0.28em; text-indent: 0.28em; font-size: 14px; }
.nav { display: flex; gap: 28px; }
.nav a {
  color: var(--charcoal);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  opacity: 0.75;
  transition: opacity 0.15s ease, color 0.15s ease;
}
.nav a:hover, .nav a.active { opacity: 1; color: var(--coral-dark); }

/* ---------- layout ---------- */
.wrap { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.hero { text-align: center; padding: 72px 24px 56px; max-width: 760px; margin: 0 auto; background: url('/assets/sunrise-hero.svg') center top / cover no-repeat; border-radius: 0 0 32px 32px; }
.hero-animated { position: relative; overflow: hidden; background: none; max-width: none; border-radius: 0 0 32px 32px; }
.hero-animated #hero-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.hero-animated .hero-content { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.hero .mark { width: 96px; height: 96px; border-radius: 24px; margin: 0 auto 28px; display: block; box-shadow: 0 8px 28px rgba(242, 107, 74, 0.18); }
.hero .mark-lockup { width: 170px; max-width: 52vw; height: auto; border-radius: 28px; margin: 0 auto 28px; display: block; box-shadow: 0 8px 28px rgba(242, 107, 74, 0.18); }
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.32em; text-indent: 0.32em;
  text-transform: uppercase; color: var(--coral-text); margin-bottom: 20px;
}
.hero h1 {
  font-size: 46px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 18px;
}
.hero h1 .accent { color: var(--coral-dark); }
.lede { font-size: 18px; color: var(--muted-text); max-width: 620px; margin: 0 auto 32px; line-height: 1.65; }

.btn {
  display: inline-block; background: var(--coral-btn); color: #fff;
  font-size: 16px; font-weight: 600; text-decoration: none;
  padding: 14px 32px; border-radius: 999px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--coral-text); }
.btn-ghost {
  display: inline-block; background: transparent; color: var(--charcoal);
  font-size: 16px; font-weight: 600; text-decoration: none;
  padding: 13px 30px; border-radius: 999px; border: 1.5px solid var(--border);
  margin-left: 12px; transition: border-color 0.15s ease, transform 0.15s ease;
}
.btn-ghost:hover { border-color: var(--coral); transform: translateY(-1px); }
.cta-row { margin-top: 8px; }
.meta-line { margin-top: 22px; font-size: 13px; color: var(--muted-text); letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- sections ---------- */
.section { padding: 56px 0; }
.section-title { font-size: 30px; font-weight: 800; letter-spacing: -0.01em; text-align: center; margin-bottom: 12px; }
.section-sub { text-align: center; color: var(--muted-text); font-size: 17px; max-width: 640px; margin: 0 auto 40px; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid.two { grid-template-columns: repeat(2, 1fr); max-width: 800px; margin: 0 auto; }
.grid.two.single { grid-template-columns: 1fr; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  padding: 32px 28px; box-shadow: 0 8px 28px rgba(58, 58, 58, 0.05);
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--muted-text); }
.card .icon { font-size: 30px; margin-bottom: 14px; display: block; }
.card .tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--coral); margin-bottom: 12px;
}

.product-card { text-align: left; }
.product-card .lockup { width: 148px; max-width: 60%; height: auto; border-radius: 20px; display: block; margin-bottom: 18px; box-shadow: 0 8px 28px rgba(242, 107, 74, 0.14); }
.product-card .go { display: inline-block; margin-top: 16px; font-weight: 600; text-decoration: none; }
.product-card .go:hover { text-decoration: underline; }

/* principles band */
.band {
  background: var(--charcoal); color: var(--cream);
  border-radius: 28px; padding: 56px 48px; margin: 24px 0;
  text-align: center;
}
.band h2 { font-size: 28px; margin-bottom: 12px; }
.band h2 .accent { color: var(--coral-dark); }
.band p { color: rgba(250, 245, 238, 0.72); max-width: 640px; margin: 0 auto 32px; font-size: 16px; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: left; }
.principle h3 { font-size: 17px; margin-bottom: 8px; color: #fff; }
.principle h3 .dot { color: var(--coral); margin-right: 8px; }
.principle p { font-size: 14px; color: rgba(250, 245, 238, 0.65); margin: 0; }

/* FAQ */
.faq { max-width: 720px; margin: 0 auto; }
.faq-item {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 22px 26px; margin-bottom: 14px;
}
.faq-item h3 { font-size: 17px; margin-bottom: 8px; }
.faq-item p { font-size: 15px; color: var(--muted-text); margin: 0; }

/* prose pages */
.prose { max-width: 720px; margin: 0 auto; padding: 48px 24px 72px; }
.prose h1 { font-size: 36px; margin-bottom: 8px; letter-spacing: -0.01em; }
.prose .updated { color: var(--muted-text); font-size: 14px; margin-bottom: 32px; }
.prose h2 { font-size: 21px; margin: 32px 0 10px; }
.prose p, .prose li { font-size: 16px; margin-bottom: 12px; color: var(--charcoal); }
.prose ul { padding-left: 22px; }
.prose p.muted, .prose li.muted { color: var(--muted-text); }
.promise {
  background: #fff; border-left: 4px solid var(--coral);
  padding: 18px 22px; border-radius: 8px; margin: 28px 0; font-size: 17px;
}

/* ---------- footer ---------- */
.site-footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  margin-top: 40px; padding: 36px 24px 48px;
}
.footer-inner { max-width: 1080px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.24em; font-size: 13px; }
.footer-brand img { width: 28px; height: 28px; border-radius: 8px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--muted-text); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--coral-dark); }
.footer-note { width: 100%; font-size: 12px; color: rgba(138, 132, 120, 0.7); margin-top: 8px; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .grid, .grid.two, .principles { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .hero { padding: 40px 20px 28px; }
  .hero .mark { margin-bottom: 20px; }
  .hero .mark-lockup { margin-bottom: 20px; }
  .section { padding: 36px 0; }
  .section-sub { margin-bottom: 26px; }
  .countdown { margin: 20px 0 24px; }
  .launch-live-wrap { margin: 20px 0 24px; }
  .nav { gap: 16px; flex-wrap: wrap; row-gap: 8px; }
  .nav a { font-size: 14px; }
  .band { padding: 32px 24px; }
  .btn-ghost { margin-left: 0; margin-top: 12px; }
  .site-header { padding: 16px 18px; flex-wrap: wrap; row-gap: 10px; }
  .brand span { letter-spacing: 0.2em; }
}

/* Learn section */
.article-wrap { max-width: 680px; margin: 0 auto; padding: 40px 24px 80px; position: relative; z-index: 1; }
.article-meta { font-size: 12px; font-weight: 700; letter-spacing: .22em; text-indent: .22em; color: var(--coral); margin-bottom: 16px; }
.article-wrap h1 { font-size: clamp(30px, 5vw, 44px); letter-spacing: -.02em; line-height: 1.12; margin-bottom: 28px; }
.article-body p { font-size: 17px; line-height: 1.75; color: var(--muted-text); margin-bottom: 20px; }
.article-body p strong { color: var(--charcoal); }
.article-body h2 { font-size: 22px; letter-spacing: -.01em; margin: 34px 0 12px; }
.takeaway { background: var(--charcoal); border-radius: 18px; padding: 28px 30px; margin: 36px 0; }
.takeaway .kicker { font-size: 11px; font-weight: 800; letter-spacing: .24em; text-indent: .24em; color: var(--coral); margin-bottom: 12px; }
.takeaway p { color: var(--cream); font-size: 18px; font-weight: 600; line-height: 1.5; margin: 0; }
.article-nav { display: flex; justify-content: space-between; gap: 12px; margin: 44px 0 36px; }
.article-nav a { flex: 1; border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; font-size: 14px; font-weight: 600; color: var(--charcoal); }
.article-nav a span { display: block; font-size: 11px; letter-spacing: .18em; color: var(--muted-text); margin-bottom: 6px; font-weight: 700; }
.article-nav a.next { text-align: right; }
.learn-cta { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 32px; text-align: center; box-shadow: 0 12px 40px rgba(58,58,58,.06); }
.learn-cta h3 { font-size: 22px; margin-bottom: 8px; }
.learn-cta p { color: var(--muted-text); font-size: 15px; margin-bottom: 20px; }
.learn-cta .cta-row { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.learn-cta .cta-row .btn { width: 100%; max-width: 320px; text-align: center; }
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 8px 0 32px; }
.chip { border: 1px solid var(--border); background: var(--card); border-radius: 999px; padding: 10px 20px; font-size: 14px; font-weight: 700; cursor: pointer; color: var(--muted-text); }
.chip.on { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }
.learn-card { text-decoration: none; color: inherit; display: block; }
.learn-card h3 { font-size: 20px; margin: 12px 0 8px; letter-spacing: -.01em; }
.learn-card p { color: var(--muted-text); font-size: 15px; margin-bottom: 14px; }
.card-tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .2em; text-indent: .2em; color: var(--coral); }
.card-time { font-size: 12px; color: var(--muted-text); margin-left: 10px; }

/* Yuki demos — CSS-animated, classy and lightweight */
.yuki-demo{ text-align:center; margin:32px 0; padding:28px 20px; background:var(--card); border:1px solid var(--line); border-radius:20px; }
.yuki-demo img{ width:190px; border-radius:24px; box-shadow:0 12px 40px rgba(58,58,58,.10); animation:yuki-breathe 16s ease-in-out infinite; }
@keyframes yuki-breathe{
  0%{ transform:scale(1); } 25%{ transform:scale(1.08); }
  50%{ transform:scale(1.08); } 75%{ transform:scale(1); }
  100%{ transform:scale(1); }
}
.yuki-demo .yuki-phase{ font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--coral); min-height:1.7em; margin:14px 0 4px; }
.yuki-demo p{ margin:0 auto; max-width:34ch; }

/* ---------- launch countdown + waitlist ---------- */
.launch-panel { padding-top: 8px; }
.launch-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 28px;
  padding: 48px 40px; text-align: center; max-width: 720px; margin: 0 auto;
  box-shadow: 0 8px 28px rgba(58, 58, 58, 0.05);
}
.launch-card .eyebrow { margin-bottom: 12px; }
.launch-card .section-title { margin-bottom: 4px; }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; justify-content: center; margin: 28px 0 36px; max-width: 480px; margin-left: auto; margin-right: auto; }
.cd-unit {
  background: var(--cream); border: 1px solid var(--border); border-radius: 16px;
  padding: 16px 4px 12px; min-width: 0;
}
.cd-num {
  display: block; font-size: 34px; font-weight: 800; color: var(--charcoal);
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.cd-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-indent: 0.18em;
  text-transform: uppercase; color: var(--muted-text);
}
.launch-live-wrap { margin: 28px 0 36px; }
.launch-live { font-size: 26px; font-weight: 800; margin-bottom: 18px; }
.waitlist { border-top: 1px solid var(--border); padding-top: 32px; }
.waitlist-title { font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.waitlist-row { display: flex; flex-wrap: wrap; gap: 10px; max-width: 640px; margin: 0 auto 12px; justify-content: center; }
.waitlist-row input[type="email"] {
  flex: 1; min-width: 0; padding: 14px 20px; border-radius: 999px;
  border: 1.5px solid var(--border); font-size: 15px;
  background: var(--cream); color: var(--charcoal); font-family: inherit;
}
.waitlist-row input[type="email"]:focus { outline: none; border-color: var(--coral); }
.waitlist-row .btn { border: none; cursor: pointer; white-space: nowrap; font-family: inherit; }
.waitlist-row .btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.btn-social { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.btn-social svg { flex-shrink: 0; }
.consent {
  display: flex; gap: 10px; align-items: flex-start; justify-content: center;
  font-size: 14px; color: var(--muted-text); cursor: pointer;
  max-width: 480px; margin: 0 auto; text-align: left; line-height: 1.5;
}
.consent input { margin-top: 4px; accent-color: var(--coral); flex-shrink: 0; width: 16px; height: 16px; }
.waitlist-msg { min-height: 1.6em; font-size: 14px; margin-top: 12px; }
.waitlist-msg.err { color: var(--coral-dark); }
.waitlist-msg.ok { color: var(--muted-text); }
.waitlist-done { font-size: 18px; font-weight: 600; }
.referral-banner { font-size: 15px; font-weight: 600; color: var(--charcoal); background: #FFF8F3; border: 1px solid var(--border); border-radius: 16px; padding: 14px 18px; margin-bottom: 18px; line-height: 1.5; }
.referral-box { margin-top: 20px; text-align: left; }
.referral-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; line-height: 1.5; }
.referral-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.referral-link { font-family: ui-monospace, monospace; font-size: 14px; background: rgba(58,58,58,.06); padding: 10px 14px; border-radius: 10px; word-break: break-all; }
.referral-pos { font-size: 15px; color: var(--muted-text); margin-bottom: 12px; min-height: 1.4em; }
.referral-pos strong { color: var(--coral-dark); }
.referral-share { margin-bottom: 14px; }
.referral-fine { font-size: 13px; color: var(--muted-text); }
.referral-note { font-size: 13px; color: var(--muted-text); margin-top: 8px; min-height: 18px; }
@media (max-width: 560px) {
  .launch-card { padding: 28px 20px; }
  .waitlist { padding-top: 24px; }
  .countdown { gap: 8px; }
  .cd-unit { padding: 12px 4px 10px; }
  .cd-num { font-size: 26px; }
  .waitlist-row { flex-direction: column; }
  .waitlist-row .btn { width: 100%; }
}

/* Store badges — download CTAs (placeholders until listing URLs go live Oct 20) */
.store-badges { display: flex; gap: 12px; justify-content: center; align-items: stretch; flex-wrap: wrap; margin: 18px 0 6px; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; background: var(--charcoal); color: var(--cream); border-radius: 12px; padding: 10px 18px; font-weight: 700; font-size: 15px; text-decoration: none; line-height: 1.25; transition: transform .15s ease; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge .sb-sub { display: block; font-size: 11px; font-weight: 600; opacity: .7; }
.store-badge.soon { cursor: default; opacity: .92; }
.store-note { font-size: 13px; color: var(--muted-text); margin-top: 8px; }
.launch-notice { font-size: 16px; color: var(--muted-text); margin: 0 0 8px; }
.countdown-inline { font-size: 14px; font-weight: 600; color: var(--coral); margin: 0 0 20px; letter-spacing: 0.5px; }
.countdown-inline span { font-variant-numeric: tabular-nums; }

/* Inside the app — screenshot galleries (fit.html / journal.html).
   Japanese-minimal: no device frames. Each shot floats on the cream
   page with a hairline border and a soft diffuse shadow. Uniform
   two-column grid: every shot the same width, resting together in
   clean aligned pairs, kept tight — minimal surrounding void. */
.section.gallery { padding: 48px 0 28px; }
.shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 288px));
  justify-content: center;
  column-gap: 24px;
  row-gap: 24px;
  margin-top: 36px;
}
.shot { margin: 0; text-align: center; }
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(58, 58, 58, 0.14);
  border-radius: 22px;
  box-shadow: 0 32px 64px -24px rgba(58, 58, 58, 0.25), 0 10px 28px -12px rgba(58, 58, 58, 0.10);
}
.shot figcaption {
  margin-top: 22px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.07em;
  color: var(--muted-text);
}
@media (max-width: 760px) {
  .section.gallery { padding: 28px 0 16px; }
  /* Mobile: the gallery turns into a horizontal swipe strip, so its
     vertical cost is one shot + its caption instead of a tall stack.
     Each shot takes 78% of the strip width — the next shot peeks in
     at the right edge and invites the swipe. The peek lives inside
     the scroll container; the page itself never overflows. */
  .shots {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    margin-top: 20px;
    padding: 10px 4px 14px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .shots::-webkit-scrollbar { display: none; }
  .shot {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }
  .shot figcaption { margin-top: 14px; }
}
