/* ExitTime site, story version: one morning, chapter by chapter. */

@font-face { font-family: "Figtree"; src: url("assets/fonts/Figtree-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --cream: #F6F3ED;
  --white: #FFFFFF;
  --ink: #111413;
  --ink-2: #4F5753;
  --ink-3: #7C8480;
  --line: rgba(17, 20, 19, 0.08);
  --green: #008855;
  --green-deep: #006C44;
  --green-tint: #E3F2EA;
  --top: 60px;
  --gutter: 20px;
  --display: "Figtree", -apple-system, BlinkMacSystemFont, sans-serif;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--top); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body { overflow-x: clip; }
body {
  margin: 0; padding-top: var(--top);
  background: var(--cream); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2 { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -0.04em; }
p { margin: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--green); color: #fff; text-decoration: none; font-weight: 700;
  border-radius: 999px; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 136, 85, 0.28);
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--green-deep); }
.btn:active { transform: scale(.98); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 15px; }
.btn-lg { height: 58px; padding: 0 34px; font-size: 18px; min-width: 240px; }

/* Top bar */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--top);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.topbar-row { height: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand img { border-radius: 8px; }
.topbar-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang-btn { display: inline-grid; place-items: center; text-decoration: none; height: 40px; min-width: 40px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink-2); font: 700 13px var(--font); cursor: pointer; }

/* Shared bits */
.pill {
  display: inline-block; padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,.75); border: 1px solid var(--line);
  font-size: 13px; font-weight: 700; color: var(--ink-2); letter-spacing: .01em;
}
.pill-light { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.28); color: #fff; }
.sub { margin-top: 16px; max-width: 400px; font-size: 18px; line-height: 1.45; color: var(--ink-2); }

/* Hero */
/* The hero ends in the first chapter's colour, so the page flows on without a seam. */
.hero {
  padding: 56px var(--gutter) 88px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: linear-gradient(180deg, #F6F3ED 0%, #EAF3EC 45%, #EDEBF2 80%, #F1E8F4 100%);
}
.hero h1 { font-size: clamp(48px, 14vw, 96px); line-height: .98; color: var(--green); }
.inline-mascot { display: inline-block; height: .86em; width: auto; vertical-align: -0.1em; margin: 0 .02em; animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-6%) rotate(3deg); } }
/* Both badges side by side under the headline, down to a 320px phone */
.stores.stores-hero { margin-top: 28px; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; }
.stores-hero .store-badge { width: auto; height: 50px; padding: 0 14px 0 12px; gap: 8px; border-color: #000; }
.stores-hero .store-badge b { font-size: 17px; }
.stores-hero .store-badge small { font-size: 10px; }
.hero-shot { margin-top: 40px; width: min(320px, 86vw); height: auto; border-radius: 32px; box-shadow: 0 30px 60px rgba(0, 70, 40, .20), 0 8px 18px rgba(0, 70, 40, .10); }
.ch-phone { width: 260px; }


/* Chapters: one idea per screen */
.chapter {
  padding: 96px var(--gutter) 88px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.chapter h2 { margin-top: 18px; font-size: clamp(52px, 15vw, 112px); line-height: .95; }
.visual { margin-top: 40px; width: 100%; display: flex; justify-content: center; }

.ch-dawn    { background: linear-gradient(180deg, #F1E8F4 0%, #FBEADF 100%); padding-top: 40px; }
.ch-morning { background: linear-gradient(180deg, #FBEADF 0%, #E3EEF8 100%); }
.ch-go      { background: linear-gradient(180deg, #E3EEF8 0%, #FFE6C4 100%); }
.ch-late    { background: linear-gradient(180deg, #FFE6C4 0%, #FFD9CC 100%); }
.ch-arrive  { background: radial-gradient(120% 70% at 50% 0%, #12A86E 0%, #007A4C 70%); color: #fff; }
.ch-arrive .sub { color: rgba(255,255,255,.88); }

.ch-go h2 { color: #D9480F; }

.card-shot {
  width: 100%; max-width: 520px; height: auto; border-radius: 28px;
  box-shadow: 0 24px 50px rgba(20, 30, 50, .28), 0 6px 14px rgba(20, 30, 50, .12);
}
.tilt-l { transform: rotate(-2deg); }
.tilt-r { transform: rotate(2deg); }

.visual-check { position: relative; padding-bottom: 46px; }
.phone {
  width: 250px; background: #0E0F0F; border-radius: 44px; padding: 8px;
  box-shadow: 0 0 0 1.5px #3A3D3C inset, 0 30px 60px rgba(20, 40, 70, 0.22);
}
.phone img { width: 100%; height: auto; border-radius: 36px; }
.side-mascot { position: absolute; width: 112px; height: auto; right: max(0px, calc(50% - 230px)); bottom: 0; filter: drop-shadow(0 10px 14px rgba(0,0,0,.18)); }

.visual-late { position: relative; flex-direction: column; align-items: center; }
.late-mascot { width: 140px; height: auto; margin-bottom: -18px; position: relative; z-index: 1; animation: dash 1.6s ease-in-out infinite; }
@keyframes dash { 0%, 100% { transform: translateX(-6px); } 50% { transform: translateX(6px); } }
.crop-shot { width: 100%; max-width: 440px; height: auto; border-radius: 28px; box-shadow: 0 22px 46px rgba(20, 50, 90, .20); }
.buttons-shot { width: 100%; max-width: 520px; height: auto; border-radius: 22px; box-shadow: 0 22px 46px rgba(120, 50, 20, .28); }

.thumbs { margin-top: 30px; width: min(220px, 56vw); height: auto; filter: drop-shadow(0 18px 26px rgba(0,0,0,.25)); }
.stores { margin-top: 30px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px; height: 54px; width: 200px; padding: 0 18px;
  background: #000; color: #fff; border-radius: 14px; text-decoration: none; border: 1px solid rgba(255,255,255,.22);
}
.store-badge span { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.store-badge small { font-size: 11px; font-weight: 500; }
.store-badge b { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }

/* Plain blocks after the story */
.block { padding: 80px var(--gutter); max-width: 720px; margin: 0 auto; }
.block-white { max-width: none; background: var(--white); }
.block-white > * { max-width: 680px; margin-left: auto; margin-right: auto; }
.block-title { text-align: center; font-size: clamp(36px, 10vw, 56px); line-height: 1.02; }
.features { max-width: 1000px; }
.feat-list { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 34px; }
.feat-list li { display: flex; flex-direction: column; gap: 12px; }
/* Calm-style: no boxes, one soft gradient line icon above each title. */
.grad-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.feat-list svg {
  flex: none; width: 44px; height: 44px;
  fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.feat-list li:nth-child(1) svg { stroke: url(#g1); }
.feat-list li:nth-child(2) svg { stroke: url(#g2); }
.feat-list li:nth-child(3) svg { stroke: url(#g3); }
.feat-list li:nth-child(4) svg { stroke: url(#g4); }
.feat-list li:nth-child(5) svg { stroke: url(#g5); }
.feat-list li:nth-child(6) svg { stroke: url(#g6); }
.feat-list li:nth-child(7) svg { stroke: url(#g7); }
.feat-list li:nth-child(8) svg { stroke: url(#g8); }
.feat-list li:nth-child(9) svg { stroke: url(#g9); }
.feat-list h3 { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }
.feat-list p { margin-top: 6px; font-size: 16px; line-height: 1.55; color: var(--ink-2); }

.faq { margin-top: 28px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-size: 17px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111413' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-2); font-size: 16px; }
.faq a { color: var(--green); font-weight: 600; }

.footer { padding: 40px var(--gutter) 48px; max-width: 1120px; margin: 0 auto; }
.footer-top { display: flex; flex-direction: column; gap: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { text-decoration: none; color: var(--ink-2); font-size: 15px; }
.sources { margin-top: 26px; font-size: 12.5px; color: var(--ink-3); line-height: 1.55; max-width: 760px; }
.copy { margin-top: 10px; font-size: 12.5px; color: var(--ink-3); }

/* Gentle reveal; only when the script runs, never for reduced motion */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .inline-mascot, .late-mascot { animation: none; }
}

@media (min-width: 760px) {
  :root { --gutter: 32px; --top: 68px; }
  .hero-shot { width: 380px; }
  .ch-phone { width: 300px; }
  .side-mascot { width: 140px; right: calc(50% - 290px); }
  .chapter { min-height: 100svh; }
  .late-mascot { width: 160px; }
  .stores { flex-direction: row; }
  .feat-list { grid-template-columns: repeat(3, 1fr); column-gap: 48px; row-gap: 48px; }
  .stores-hero .store-badge { height: 54px; padding: 0 18px 0 14px; }
  .stores-hero .store-badge b { font-size: 19px; }
  .footer-top { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (min-width: 1020px) {
  .chapter h2 { font-size: clamp(88px, 8vw, 128px); }
  .sub { font-size: 20px; max-width: 480px; }
  .card-shot { max-width: 600px; }
}

/* Very narrow phones: the logo alone, so the language and Try buttons fit */
@media (max-width: 359px) { .brand span { display: none; } }
