/* ============================================================
   Pocket Oracle — landing page
   Ported from the Claude Design doc "Pocket Oracle Landing.dc.html".
   The design was authored with inline styles; here those are grouped
   into named classes so the page is readable and editable.
   ============================================================ */

:root {
  /* ink + paper */
  --ink:        #181818;
  --ink-soft:   #4F4F4F;
  --muted:      #6D6D6D;
  --faint:      #888888;
  --rule:       #E2E2E2;
  --paper:      #ffffff;
  --cream:      #F3EEE3;   /* warm section background */
  --grey:       #F6F6F6;   /* cool section background */

  /* accents (the four planned case colours) */
  --amethyst:   #7B5CD6;
  --emerald:    #0F9D7A;
  --garnet:     #C8365B;
  --gold:       #E8B13A;
  --blue:       #2F6FD6;

  /* device: e-paper screen */
  --eink:       #D7D4C9;

  /* the device is authored at 2x the real 122x250 panel */
  --dev-w: 298px;
  --dev-h: 566px;
}

* { box-sizing: border-box; }

/* The `hidden` attribute must beat any display: rule we set on a class. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Outfit, ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--amethyst); }

h1, h2 { margin: 0; font-weight: 800; letter-spacing: -0.03em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.page { position: relative; overflow: hidden; width: 100%; min-height: 100vh; background: var(--paper); }
.wrap { max-width: 1180px; margin: 0 auto; }

/* Sections sit above the decorative blobs. */
section, nav, footer { position: relative; z-index: 1; }

/* A .blob is absolutely positioned, so inside a section it paints on top of
   that section's normal-flow text. Lift the content wrappers back above it. */
section > .wrap,
section > .cta { position: relative; z-index: 1; }

/* ---------- decorative blobs -------------------------------- */
/* Organic shapes made with 8-value border-radius, as in the design. */
.blob { position: absolute; z-index: 0; pointer-events: none; }
.blob--hero-left   { left: -220px; top: -120px;  width: 380px; height: 340px; background: var(--amethyst); border-radius: 62% 38% 46% 54% / 55% 41% 59% 45%; }
.blob--hero-right  { right: -90px; top: 40px;    width: 260px; height: 240px; background: var(--emerald);  border-radius: 41% 59% 55% 45% / 62% 44% 56% 38%; }
.blob--hero-dot    { right: 240px; top: 620px;   width: 74px;  height: 66px;  background: var(--garnet);   border-radius: 55% 45% 60% 40% / 50% 60% 40% 50%; }
.blob--hero-gold   { right: 30px;  bottom: 30px; width: 200px; height: 200px; background: var(--gold);     border-radius: 48% 52% 60% 40% / 45% 55% 45% 55%; }
.blob--ritual-left { left: -200px; bottom: -160px; width: 320px; height: 300px; background: var(--blue);   border-radius: 58% 42% 40% 60% / 48% 62% 38% 52%; }
.blob--ritual-gold { right: -60px; top: 80px;    width: 180px; height: 170px; background: var(--gold);     border-radius: 45% 55% 52% 48% / 58% 42% 58% 42%; }
.blob--cta-left    { left: 3%;     top: 20px;    width: 110px; height: 100px; background: var(--emerald);  border-radius: 55% 45% 50% 50% / 45% 55% 45% 55%; }
.blob--cta-right   { right: -80px; bottom: -60px; width: 220px; height: 200px; background: var(--amethyst); border-radius: 42% 58% 60% 40% / 55% 40% 60% 45%; }

/* ---------- buttons + pills --------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; padding: 8px 14px;
  background: var(--cream); color: var(--ink-soft);
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}

.btn {
  display: inline-block;
  background: var(--ink); color: var(--paper);
  border: none; border-radius: 999px;
  font-family: inherit; font-weight: 600;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}
.btn--nav  { padding: 10px 22px; font-size: 15px; }
.btn--nav:hover  { background: var(--amethyst); color: var(--paper); }
.btn--form { height: 54px; padding: 0 28px; font-size: 16px; font-weight: 700; }
.btn--form:hover { background: var(--emerald); color: var(--paper); }
.btn--cta  { padding: 16px 32px; font-size: 17px; font-weight: 700; }
.btn--cta:hover  { background: var(--garnet); color: var(--paper); }

/* ---------- nav --------------------------------------------- */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 28px 32px; }
.nav__logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.nav__mark {
  display: inline-flex; width: 28px; height: 28px;
  border-radius: 50%; border: 2.5px solid var(--ink);
  align-items: center; justify-content: center; font-size: 14px; line-height: 1;
}
.nav__links { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; color: var(--ink-soft); }

/* ---------- hero -------------------------------------------- */
.hero {
  padding: 56px 32px 96px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
}
.hero__copy { display: flex; flex-direction: column; gap: 28px; }
.hero__copy .pill { align-self: flex-start; }
.hero__title { font-size: 72px; line-height: 0.98; letter-spacing: -0.035em; }
.hero__lede  { font-size: 20px; line-height: 1.55; color: var(--muted); max-width: 520px; }
.hero__note  { font-size: 14px; color: var(--faint); }

/* waitlist form */
.waitlist { display: flex; gap: 10px; align-items: center; max-width: 480px; flex-wrap: wrap; }
.waitlist__input {
  flex: 1; min-width: 220px; height: 54px;
  border-radius: 999px; border: 2px solid var(--ink);
  padding: 0 22px; font-size: 16px; font-family: inherit;
  color: var(--ink); background: var(--paper); outline: none;
}
.waitlist__input::placeholder { color: var(--faint); }
.waitlist__input:focus { border-color: var(--amethyst); box-shadow: 0 0 0 4px #E9E3FB; }
.waitlist__done {
  display: flex; align-items: center; gap: 12px;
  height: 54px; border-radius: 999px; background: var(--cream);
  padding: 0 22px; font-size: 16px; font-weight: 600;
}

/* hero device column */
.hero__stage { position: relative; display: flex; justify-content: center; align-items: center; height: 520px; }
.hero__device { position: relative; z-index: 1; width: 254px; height: 481px; }
/* 298x566 authored, scaled to 0.85 and tilted */
.hero__device .device-scale { transform: rotate(-4deg) scale(0.85); }
.hero__toggle {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 2;
  border: 2px solid var(--ink); background: var(--paper); color: var(--ink);
  border-radius: 999px; padding: 10px 18px;
  font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}
.hero__toggle:hover { background: var(--ink); color: var(--paper); }

/* ============================================================
   The device
   Authored at 298x566 (2x the real hardware) and scaled down with
   a transform, so every screen can be drawn at whole pixels.
   .device-frame reserves the *scaled* footprint in layout;
   .device-scale holds the full-size artwork.
   ============================================================ */

.device-frame { position: relative; }
.device-scale { position: absolute; left: 0; top: 0; width: var(--dev-w); height: var(--dev-h); transform-origin: 0 0; }

/* Card-sized instances: 298x566 at 0.7 => 209x396 */
.device-frame--sm { width: 209px; height: 396px; }
.device-frame--sm .device-scale { transform: scale(0.7); }

.device {
  position: relative; width: var(--dev-w); height: var(--dev-h);
  background: var(--case);
  border-radius: 44px;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.14);
}
.device--shadow { box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.10), 0 24px 40px -24px rgba(24, 24, 24, 0.35); }
.device--flat   { box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.10); }

.device__bezel { position: absolute; left: 23px; top: 13px; width: 252px; height: 508px; background: var(--bezel); border-radius: 6px; }

.device__screen {
  position: absolute; left: 27px; top: 17px; width: 244px; height: 500px;
  overflow: hidden;
  font-family: VT323, ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* case colourways */
.device--yellow   { --case: #F2C443; --bezel: #C79E22; }
.device--emerald  { --case: #12A882; --bezel: #0B7A5E; }
.device--amethyst { --case: #8B6FE0; --bezel: #5E44B5; }
.device--garnet   { --case: #D24A6E; --bezel: #9E2C4B; }

/* screen modes */
.screen--paper { background: var(--eink); color: var(--ink); }
.screen--ink   { background: var(--ink);  color: var(--eink); }

/* ---------- screen furniture -------------------------------- */
/* All values are in the 244x500 screen coordinate space. */
.scr-line {
  position: absolute; left: 0; width: 244px;
  text-align: center; font-size: 32px; line-height: 32px;
}
.scr-rule { position: absolute; left: 56px; width: 132px; height: 2px; background: currentColor; }

.scr-art {
  position: absolute; left: 10px; top: 4px; width: 224px; height: 384px;
  image-rendering: pixelated;
  mix-blend-mode: multiply;   /* keeps the 1-bit art sitting *in* the e-paper grey */
}

.scr-veil { position: absolute; left: 0; top: 0; }

/* verso (the reading on the back of the card) */
.scr-body {
  position: absolute; left: 0; width: 244px;
  text-align: center; font-size: 24px; line-height: 28px;
  white-space: pre;   /* the reading is hand-broken to the panel width */
}

/* ---------- modality screen (emerald / amethyst / garnet) ---- */
.scr-frame  { position: absolute; inset: 8px;  border: 2px solid var(--eink); }
.scr-frame2 { position: absolute; inset: 14px; border: 2px solid var(--eink); }
.scr-stack {
  position: absolute; left: 0; top: 0; width: 244px; height: 500px;
  display: flex; flex-direction: column; align-items: center; padding-top: 56px;
}
.scr-divider { width: 140px; height: 2px; background: var(--eink); margin-top: 26px; }
.scr-name    { margin-top: 22px; font-size: 48px; line-height: 48px; }
.scr-dots    { margin-top: 30px; display: flex; gap: 18px; }
.scr-dots i  { width: 14px; height: 14px; border: 2px solid var(--eink); }
.scr-dots i.on { background: var(--eink); border-color: var(--eink); }

/* ---------- hero screen swapping ---------------------------- */
/* JS flips [data-hero] between "veil" and "card". */
.hero__device[data-hero="veil"] .screen-card,
.hero__device[data-hero="card"] .screen-veil { display: none; }

/* ============================================================
   Sections
   ============================================================ */

.section--cream { background: var(--cream); padding: 96px 32px; }
.section--grey  { background: var(--grey);  padding: 96px 32px; }
.section--plain { padding: 112px 32px; overflow: hidden; }

.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.section__head { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.section__head h2 { font-size: 48px; line-height: 1.02; }
.section__head p  { font-size: 18px; line-height: 1.55; color: var(--muted); }
.section__head--center { max-width: 680px; margin: 0 auto; text-align: center; align-items: center; }

.stack-56 { display: flex; flex-direction: column; gap: 56px; }
.stack-64 { display: flex; flex-direction: column; gap: 64px; }

/* three-up grid of devices */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; align-items: start; }
.trio__item { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.trio__caption { display: flex; flex-direction: column; gap: 6px; text-align: center; max-width: 300px; align-items: center; }
.trio__caption--step { gap: 8px; }
.trio__caption h3 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.trio__caption p  { font-size: 16px; line-height: 1.5; color: var(--muted); }

.step-num {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
}

/* ---------- two-up (build it / buy it) ---------------------- */
/* Same rule-above-a-heading idiom as the FAQ list and the footer. */
.two-up { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; max-width: 900px; margin: 0 auto; }
.two-up__col { border-top: 2px solid var(--ink); padding-top: 22px; }
.two-up__col h3 { margin: 0 0 10px; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.two-up__col p { font-size: 17px; line-height: 1.55; color: var(--muted); }

/* ---------- FAQ --------------------------------------------- */
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }
.faq h2 { font-size: 44px; line-height: 1.05; }
.faq__list { border-top: 2px solid var(--ink); }
.faq__item { border-bottom: 2px solid var(--rule); }
.faq__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  text-align: left; background: none; border: none; padding: 22px 0;
  font-family: inherit; font-size: 20px; font-weight: 700; color: var(--ink);
  letter-spacing: -0.01em; cursor: pointer;
}
.faq__q:hover { color: var(--amethyst); }
.faq__mark { font-size: 22px; font-weight: 400; color: var(--faint); flex: none; }
.faq__a { padding: 0 0 24px; font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 680px; }
.faq__item[aria-expanded="false"] .faq__a { display: none; }

/* ---------- closing CTA + footer ---------------------------- */
.cta { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.cta__glyphs { font-size: 28px; line-height: 1; }
.cta h2 { font-size: 56px; line-height: 1; letter-spacing: -0.035em; }
.cta p  { font-size: 18px; line-height: 1.55; color: var(--muted); }

.footer { border-top: 2px solid var(--ink); padding: 32px; }
.footer__inner {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  font-size: 14px; color: var(--muted); flex-wrap: wrap;
}
.footer__brand { font-weight: 700; color: var(--ink); }
.footer__links { display: flex; gap: 20px; }
.footer__links a { color: var(--muted); }

/* ============================================================
   Responsive
   The design doc is desktop-only (fixed 3-up grids, 72px display
   type). These breakpoints keep that layout untouched above
   980px and reflow it below, rather than letting it overflow.
   ============================================================ */

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 8px; padding: 40px 24px 72px; }
  .hero__title { font-size: 56px; }
  .hero__stage { height: 560px; }
  .trio { grid-template-columns: 1fr; gap: 56px; justify-items: center; }
  .two-up { grid-template-columns: 1fr; gap: 32px; }
  .section--cream, .section--grey { padding: 72px 24px; }
  .section--plain { padding: 80px 24px; }
  .section__head h2 { font-size: 40px; }
  .cta h2 { font-size: 44px; }
  .faq h2 { font-size: 36px; }
  /* Blobs are decoration. There's no side margin left at this width, so pull
     them mostly off-canvas and let them bleed in from the edges instead of
     sitting behind the text. */
  .blob--hero-dot { display: none; }
  .blob--hero-left   { left: -270px; top: -150px; }
  .blob--hero-right  { right: -170px; }
  .blob--ritual-left { left: -230px; }
  .blob--ritual-gold { right: -110px; width: 150px; height: 140px; }
  .blob--cta-left    { left: -55px; width: 90px; height: 84px; }
  .blob--cta-right   { right: -140px; }
}

@media (max-width: 620px) {
  .nav { padding: 20px 20px; }
  .nav__links a:not(.btn) { display: none; }
  .hero__title { font-size: 40px; }
  .hero__lede { font-size: 18px; }
  .waitlist { flex-direction: column; align-items: stretch; }
  /* flex:1 would resolve against the column axis here and squash the height */
  .waitlist__input { flex: none; width: 100%; height: 54px; }
  .btn--form { width: 100%; }
  .section__head h2 { font-size: 32px; }
  .cta h2 { font-size: 34px; }
  .faq h2 { font-size: 28px; }
  .faq__q { font-size: 17px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  /* Phone widths: keep only a sliver of each blob on screen. */
  .blob--hero-left   { left: -325px; }
  .blob--hero-right  { right: -215px; }
  .blob--ritual-left { left: -270px; }
  .blob--hero-gold   { right: -80px; bottom: 10px; width: 150px; height: 150px; }
  .blob--ritual-gold { right: -125px; top: 40px; }
  .blob--cta-left    { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Links inside a FAQ answer need to read as links against the muted text. */
.faq__a a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.faq__a a:hover { color: var(--amethyst); }

/* Honeypot: reachable to a bot, invisible to everyone else.
   display:none would let some bots skip it, so move it out of view instead. */
.waitlist__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.waitlist__error { max-width: 480px; font-size: 15px; line-height: 1.45; color: var(--garnet); font-weight: 500; }

.btn--form:disabled { background: var(--faint); cursor: default; }
