/* The homepage: hero with the app on stage, then the story in chapters. Always Terracotta
   Morning, the theme the app opens in (tokens from CLAUDE.md). Legal pages use style.css only. */
:root {
  --terracotta: #c8694a;
  --sage-text: #4f6b4e;
  --sage-tint: #e7eee6;
  --caution: #8e4630;
  --caution-tint: #f6e3db;
  --glow: rgba(217, 168, 78, 0.22);
  --phone-edge: #e4d8c8;
  --shadow: 0 30px 80px -30px rgba(59, 46, 42, 0.35);
  --action-tint: #f6e3db;
  --action-pressed: #8e4630;
  /* The app's light action fill and its text (white on it is 4.8:1). */
  --action-fill: #b05a3c;
  --on-action: #ffffff;
  --action-text: #9e5034;
}


body.home-page {
  position: relative;
  overflow-x: hidden;
  /* clip, unlike hidden, also stops sideways panning on iOS. */
  overflow-x: clip;
}

.wrap.wide {
  max-width: 1120px;
}

em {
  font-style: italic;
  color: var(--terracotta);
}

/* The night sky behind the hero. */
.sky {
  position: absolute;
  inset: 0 0 auto 0;
  width: 100%;
  height: 900px;
  pointer-events: none;
  z-index: 0;
}
.sky .lines polyline,
.mini-sky polyline {
  fill: none;
  stroke: var(--terracotta);
  stroke-opacity: 0.22;
  stroke-width: 1;
}
.sky .stars circle,
.mini-sky circle {
  fill: var(--gold);
  opacity: 0.7;
}
.sky .dust circle {
  fill: var(--terracotta);
  opacity: 0.35;
}
.tw {
  animation: twinkle 3.2s ease-in-out infinite;
}
.tw.d2 {
  animation-delay: 1.1s;
}
.tw.d3 {
  animation-delay: 2.2s;
}
@keyframes twinkle {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 1;
  }
}

header.site,
main,
footer.site {
  position: relative;
  z-index: 1;
}

/* Hero */
.hero2 {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 80px;
}
.eyebrow,
.num {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-text);
  margin: 0 0 14px;
}
.hero2 h1 {
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}
.lede {
  font-size: 19px;
  color: var(--cocoa-soft);
  max-width: 460px;
  margin: 0 0 32px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px 10px 18px;
  border-radius: 14px;
  background: var(--cocoa);
  color: var(--cream);
  line-height: 1.1;
  font-weight: 500;
  font-size: 19px;
}
.store-badge svg {
  width: 26px;
  height: 26px;
}
.store-badge small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  opacity: 0.8;
}

.hero-stage {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 600px;
  align-items: center;
}
.glow {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow) 0%, transparent 65%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%);
}

/* The phone and the app screen inside it. */
.phone {
  position: relative;
  width: 300px;
  height: 610px;
  border-radius: 48px;
  background: var(--cream);
  border: 10px solid var(--phone-edge);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.phone.tilt {
  transform: rotate(4deg);
}
.island {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 92px;
  height: 26px;
  border-radius: 20px;
  background: #0b0b0b;
  transform: translateX(-50%);
}
.screen {
  padding: 50px 16px 16px;
  font-size: 12px;
  line-height: 1.45;
}
.app-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mini-word {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 20px;
  display: inline-flex;
}
.mini-word .i,
.wordmark .i {
  position: relative;
}
.mini-word .i svg {
  position: absolute;
  top: -0.05em;
  left: 50%;
  width: 0.36em;
  height: 0.36em;
  transform: translateX(-50%);
}
.moon-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--gold-text);
  background: var(--sand);
  padding: 4px 9px;
  border-radius: 12px;
}
.moon-chip b {
  font-weight: 400;
  color: var(--cocoa-soft);
}
.moon-chip i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent 50%, var(--gold) 50%);
  border: 1px solid var(--gold);
}
.app-date {
  margin: 16px 0 0;
  color: var(--cocoa-soft);
  font-size: 10px;
}
.app-hello {
  margin: 0 0 12px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 20px;
}
.reading,
.panel {
  background: var(--white);
  border-radius: 18px;
  padding: 14px;
}
.r-eyebrow {
  margin: 0 0 6px;
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-text);
}
.r-title {
  margin: 0 0 6px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 16px;
  line-height: 1.2;
}
.r-body {
  margin: 0 0 10px;
}
.tag-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
  font-size: 10px;
}
.tag {
  flex: none;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
}
.tag.sage {
  background: var(--sage-tint);
  color: var(--sage-text);
}
.tag.warn {
  background: var(--caution-tint);
  color: var(--caution);
}
.why-link {
  margin: 8px 0 0;
  font-size: 10px;
  color: var(--action-text);
}
.coming,
.day,
.day-face {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--sand);
  border-radius: 16px;
  padding: 10px 12px;
  margin-top: 10px;
}
.coming .see-more {
  margin-left: auto;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 700;
  color: var(--action-text);
}
.coming small,
.day small {
  display: block;
  color: var(--cocoa-soft);
  font-size: 9px;
}
.date-badge {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 38px;
  padding: 4px 0;
  border-radius: 10px;
  background: var(--white);
  font-family: 'Fraunces', Georgia, serif;
  font-size: 17px;
  line-height: 1.05;
}
.date-badge b {
  font-family: 'DM Sans', sans-serif;
  font-size: 8px;
  letter-spacing: 0.8px;
  color: var(--gold-text);
}

.ask-title {
  margin: 14px 0 6px;
  font-weight: 700;
  font-size: 12px;
}
.ask-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ask {
  flex: 1;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 20px;
  padding: 7px 12px;
  color: var(--cocoa-soft);
  font-size: 11px;
}
.ask-row i {
  flex: none;
  font-style: normal;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--action-fill);
  color: var(--on-action);
}

.chip {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: var(--sand);
  border-radius: 14px;
  font-size: 10px;
}

/* Stars for the rest of the page (the hero has its own sky above). */
.night {
  background: url('/stars-light.svg') center top / 1440px auto repeat;
}


/* The story: alternating chapters. */
.story {
  display: grid;
  gap: 120px;
  padding: 60px 20px 120px;
}
.chapter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}
.chapter.flip .chapter-copy {
  order: 2;
}
.chapter h2,
.finale h2 {
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
}
.chapter-copy p:not(.num) {
  color: var(--cocoa-soft);
  font-size: 18px;
  max-width: 440px;
}
.num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 15px;
}
.chapter-art {
  display: flex;
  justify-content: center;
}
.chapter-art > * {
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow);
  font-size: 14px;
}
.panel {
  padding: 22px;
  border-radius: 24px;
}

.why-row {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.why-row:first-of-type {
  border-top: 0;
}
.why-row .glyph {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sand);
  display: grid;
  place-items: center;
  color: var(--terracotta);
  font-size: 16px;
}
.why-row b {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: 16px;
}
.why-row span {
  color: var(--cocoa-soft);
}

/* Chapter 02: My Chart's Your nature, element balance and one way you're wired. */
.nature .n-head {
  margin: 0 0 8px;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.25;
}
.nature .n-body {
  margin: 0 0 18px;
}
.elements {
  display: flex;
  gap: 3px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.elements span {
  min-width: 52px;
  font-size: 12px;
  color: var(--cocoa-soft);
}
.elements i {
  display: block;
  height: 8px;
  margin-bottom: 6px;
}
.elements span:first-child i {
  border-radius: 999px 0 0 999px;
}
.elements span:last-child i {
  border-radius: 0 999px 999px 0;
}
.elements .earth { background: #8fa68e; }
.elements .water { background: #7c9cbf; }
.elements .air { background: #d9a84e; }
.elements .fire { background: #d9825f; }
.wired {
  display: flex;
  gap: 14px;
  padding-top: 16px;
}
.wired .glyph {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--action-tint);
  color: var(--action-pressed);
  display: grid;
  place-items: center;
  font-size: 17px;
}
.wired b {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 16px;
}
.wired span {
  display: block;
}
.wired em {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  color: var(--action);
}

/* The hero phone: the real Chat tab, top to bottom (header, thread, input, tab bar). */
.chat-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 44px 0 0;
}
.chat-head {
  padding: 4px 14px 10px;
  border-bottom: 1px solid var(--line);
}
.chat-title {
  margin: 0 0 8px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 20px;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.mini-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  color: var(--cocoa-soft);
  background: var(--sand);
  padding: 4px 8px;
  border-radius: 12px;
}
.mini-chip i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}
.chat-thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 7px;
  padding: 10px 14px 8px;
  overflow: hidden;
}
.day-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 9px;
  color: var(--cocoa-soft);
}
.day-divider::before,
.day-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.orli-label {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 2px 0 -2px;
  font-size: 9px;
  color: var(--cocoa-soft);
}
.orli-label svg {
  width: 9px;
  height: 9px;
}
.chat-thread .bubble {
  padding: 8px 10px;
  border-radius: 14px;
  font-size: 10.5px;
  line-height: 1.4;
}
.chat-thread .bubble.orli {
  max-width: 88%;
}
.chat-thread .bubble.you {
  align-self: flex-end;
}
.chat-thread .bubble {
  flex: none;
}
.chat-thread .bubble .days span {
  padding: 5px 7px;
  font-size: 9.5px;
}
.chat-thread .bubble .days b {
  font-size: 8.5px;
}
.chat-thread .bubble p {
  margin: 0 0 7px;
}
.chat-thread .why-link {
  margin: 7px 0 0 !important;
  font-size: 9.5px;
  font-weight: 700;
}
.chat-foot {
  padding: 0 14px 6px;
}
.suggest-row {
  display: flex;
  gap: 5px;
  margin-bottom: 7px;
  overflow: hidden;
  white-space: nowrap;
}
.suggest-row .chip {
  margin-top: 0;
  font-size: 9px;
  padding: 5px 9px;
}
.chat-foot .ask {
  padding: 7px 11px;
  font-size: 10px;
}
.chat-foot .ask-row i {
  width: 26px;
  height: 26px;
}
.disclaimer {
  margin: 5px 0 0;
  text-align: center;
  font-size: 7.5px;
  color: var(--cocoa-soft);
}
.tab-bar {
  display: flex;
  justify-content: space-around;
  border-top: 1px solid var(--line);
  padding: 6px 4px 16px;
}
.tab-bar span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 8px;
  color: var(--cocoa-soft);
}
.tab-bar span.on {
  color: var(--action-text);
  font-weight: 700;
}
.tab-bar svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.panel-reading {
  max-width: 380px;
  padding: 22px;
  font-size: 15px;
  line-height: 1.5;
  box-shadow: var(--shadow);
}
.panel-reading .r-eyebrow {
  font-size: 11px;
}
.panel-reading .r-title {
  font-size: 22px;
  margin-bottom: 10px;
}
.panel-reading .r-body {
  margin-bottom: 14px;
}
.panel-reading .tag-row {
  font-size: 13px;
  margin: 6px 0;
}
.panel-reading .tag {
  font-size: 11px;
}

.chat {
  display: grid;
  gap: 12px;
  background: var(--cream);
  border: 1px solid var(--line);
}
.bubble {
  margin: 0;
  padding: 12px 15px;
  border-radius: 20px;
}
.bubble.you {
  justify-self: end;
  max-width: 80%;
  background: var(--action-fill);
  color: var(--on-action);
  border-bottom-right-radius: 6px;
}

.bubble.orli {
  background: var(--white);
  border-bottom-left-radius: 6px;
}
.bubble.orli p {
  margin: 0 0 10px;
}
.bubble .days {
  display: flex;
  gap: 8px;
}
.bubble .days span {
  flex: 1;
  background: var(--sand);
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 12px;
}
.bubble .days b {
  display: block;
  color: var(--gold-text);
  font-size: 11px;
}

.days-stack {
  display: grid;
  gap: 10px;
  box-shadow: none !important;
}
.days-stack .day {
  background: var(--white);
  margin: 0;
  padding: 14px;
  box-shadow: var(--shadow);
}
.day small {
  font-size: 12px;
}
.days-stack .date-badge {
  background: var(--sand);
  width: 46px;
}
.day.swiped {
  position: relative;
  padding: 0;
  overflow: hidden;
}
.day.swiped .actions {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: flex-end;
}
.act {
  width: 70px;
  display: grid;
  place-items: center;
  align-content: center;
  font-size: 12px;
}
.act small {
  display: block;
  font-size: 11px;
}
.act.remind {
  background: var(--sand);
  color: var(--action);
}
.act.hide {
  background: var(--action-fill);
  color: var(--on-action);
}
.day.swiped .day-face {
  position: relative;
  margin: 0;
  padding: 14px;
  background: var(--white);
  /* Mid-swipe: the card makes room for its two actions (kept legible for the page). */
  width: calc(100% - 140px);
  border-radius: 16px 0 0 16px;
}

.memory-screen {
  box-shadow: none !important;
}
.memory-screen .panel {
  box-shadow: var(--shadow);
  padding: 4px 18px;
  border-radius: 20px;
}
.mem-head {
  margin: 16px 4px 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--cocoa-soft);
}
.mem-head:first-child {
  margin-top: 0;
}
.memory .mem-note:first-child {
  border-top: 0;
}
.memory .mem-note.swiped {
  margin: 0 -18px;
  padding-left: 18px;
  overflow: hidden;
}
.mem-delete {
  align-self: stretch;
  display: grid;
  place-items: center;
  width: 84px;
  margin: -12px 0;
  background: var(--action-fill);
  color: var(--on-action);
  font-size: 13px;
}
.memory .mem-note {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.memory .mem-note small {
  display: block;
  color: var(--cocoa-soft);
}
.memory .mem-note i {
  font-style: normal;
  color: var(--cocoa-soft);
}

/* Closing */
.finale {
  text-align: center;
  padding: 40px 20px 140px;
}
.finale p {
  color: var(--cocoa-soft);
  margin: 0 auto 28px;
  max-width: 420px;
}
.mini-sky {
  width: 220px;
  margin: 0 auto 24px;
  display: block;
}

/* Sections ease in once (only when JavaScript runs, so nothing is ever hidden). */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}
@media print {
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tw {
    animation: none;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Phones and narrow windows: one column, the phone under the copy. */
@media (max-width: 820px) {
  .hero2,
  .chapter {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero2 {
    text-align: center;
    padding-top: 16px;
  }
  .lede {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-stage {
    min-height: 0;
    text-align: left;
  }
  .phone.tilt {
    transform: none;
  }
  .glow {
    width: min(380px, 100vw);
    height: min(380px, 100vw);
  }
  .chapter.flip .chapter-copy {
    order: 0;
  }
  /* One column: copy and art share the same centered column. */
  .chapter {
    justify-items: center;
  }
  .chapter-copy,
  .chapter-art {
    width: 100%;
    max-width: 440px;
  }
  .chapter-art > * {
    max-width: none;
  }
  .story {
    gap: 80px;
  }
}
