/* doteo.ai home page. The app's own world: paper canvas, white cards,
   San Juan as the one active colour, Schibsted Grotesk for every word.
   Tokens mirror mobile/lib/app/config/theme/ (docs/design-system/tokens.json).
   The font file is the app's own TTF (v1.100) as woff2, weights 400 to 900. */
@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('fonts/SchibstedGrotesk-VF.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --canvas: #F5F3ED;
  --raised: #FFFFFF;
  --sunken: #EDEBE3;
  --hairline: #C9C6BD;
  --ink-900: #0D1B28;
  --ink-700: #334455;
  --ink-500: #606D7B;
  --brand: #304B6A;
  --brand-deep: #273D57;
  --brand-wash: #EAEEF3;
  --bronze: #8A5A2B;
  --bronze-wash: #FAF4EA;
  --rec: #B42318;
  --done: #0F7A52;
  --shadow: 0 1px 0 rgba(13, 27, 40, .06), 0 22px 44px -28px rgba(13, 27, 40, .32);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 4.4vw, 64px);
  --max: 1312px;
  --font: 'Schibsted Grotesk', -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink-700);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--brand); color: #fff; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { color: var(--ink-900); margin: 0; font-weight: 700; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- header ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 22px; padding-bottom: 22px;
}
.top .logo { display: block; padding: 6px 0; }
.top .logo img { width: 104px; height: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.top nav { display: flex; gap: 4px; }
.top nav a {
  color: var(--ink-700); text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 12px 12px; border-radius: 10px;
}
.top nav a:hover { color: var(--ink-900); background: var(--sunken); }

/* ---------- store badges ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.badges a { display: block; border-radius: 9px; transition: transform .3s var(--ease-out); }
.badges a:hover { transform: translateY(-2px); }
.badges img { height: 52px; width: auto; }
/* The App Store badge until the listing is live: the badge as is, not a link, labelled underneath. */
.badges:has(.soon) { align-items: flex-start; }
.soon { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 5px; cursor: default; }
.soon small { font-size: 12px; font-weight: 600; color: var(--ink-500); padding-left: 2px; }
.soon small a { display: inline-block; padding: 13px 0; margin: -13px 0; }
.trial { margin-top: 16px; font-size: 15px; color: var(--ink-500); }
.trial b { color: var(--ink-900); font-weight: 600; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 88px); align-items: start;
  padding-top: clamp(28px, 6vh, 72px); padding-bottom: clamp(56px, 9vh, 104px);
}
.hero h1 {
  font-size: clamp(46px, 5.6vw, 84px); line-height: .97; letter-spacing: -.038em;
  margin-top: 8px;
}
.hero .lede { margin: 26px 0 34px; font-size: clamp(18px, 1.45vw, 21px); line-height: 1.5; max-width: 30ch; }
.hero .where { margin-top: 30px; font-size: 14px; color: var(--ink-500); }

.stage { position: relative; }
.stage .said-meta, .meta {
  font-size: 12px; font-weight: 500; letter-spacing: .03em; color: var(--ink-500);
}
.said {
  margin: 10px 0 0; font-size: clamp(22px, 2.15vw, 31px); line-height: 1.42;
  letter-spacing: -.015em; font-weight: 500; color: var(--ink-500);
}
.said mark {
  color: var(--ink-900); background: linear-gradient(var(--brand-wash), var(--brand-wash)) no-repeat 0 100% / 100% 100%;
  box-shadow: inset 0 -2px 0 var(--brand); border-radius: 5px; padding: 0 .08em; margin: 0 -.08em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size .7s var(--ease-out), color .4s;
}
.note {
  position: relative; margin-top: clamp(28px, 4.4vh, 48px);
  background: var(--raised); border-radius: 20px; box-shadow: var(--shadow);
  padding: 20px 24px 22px;
}
.note-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.note-title { font-size: 22px; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; color: var(--ink-900); }
.takeaways { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--sunken); }
.takeaways .k { font-size: 13px; font-weight: 600; color: var(--ink-500); }
.takeaways ul { margin: 8px 0 2px; padding: 0; list-style: none; display: grid; gap: 6px; }
.takeaways li { display: grid; grid-template-columns: 12px 1fr; gap: 8px; font-size: 15px; line-height: 1.4; color: var(--ink-900); }
.takeaways li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-500); margin-top: .55em; }
.js-play .takeaways li { opacity: 0; transform: translateY(4px); transition: opacity .45s var(--ease-out), transform .45s var(--ease-out); }
.js-play .stage.done .takeaways li { opacity: 1; transform: none; }
.js-play .stage.done .takeaways li:nth-child(2) { transition-delay: .12s; }
.js-play .stage.done .takeaways li:nth-child(3) { transition-delay: .24s; }
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 16px; border-top: 1px solid var(--sunken); }
.slot { padding: 14px 18px 0 0; }
.slot + .slot { padding-left: 18px; border-left: 1px solid var(--sunken); }
.slot .k { font-size: 13px; font-weight: 600; color: var(--ink-500); }
.slot p { margin-top: 6px; font-size: 16px; line-height: 1.4; color: var(--ink-900); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.slot.keep p { background: var(--bronze-wash); border-radius: 12px; padding: 10px 12px; color: var(--ink-700); font-size: 14px; }
.slot.keep strong { display: block; font-size: 24px; line-height: 1.1; letter-spacing: -.02em; color: var(--bronze); font-weight: 700; margin-bottom: 2px; }
.slot .tick { display: inline-block; width: 15px; height: 15px; border: 1.5px solid var(--ink-500); border-radius: 4px; vertical-align: -2px; margin-right: 7px; }
.slot .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--bronze); vertical-align: 2px; margin-right: 8px; }
.n {
  display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: 11px; font-weight: 600; line-height: 1;
  vertical-align: .32em; margin-left: .22em; letter-spacing: 0;
}
.slot .k .n { width: 18px; height: 18px; vertical-align: 1px; margin: 0 7px 0 0; font-size: 10.5px; }
.flyer {
  position: absolute; z-index: 5; pointer-events: none; color: var(--ink-900);
  background: var(--brand-wash); box-shadow: inset 0 -2px 0 var(--brand), 0 10px 24px -12px rgba(13,27,40,.4);
  border-radius: 6px; padding: 0 .12em; font-weight: 500; white-space: nowrap;
}
.edit-line { margin-top: 14px; font-size: 14px; color: var(--ink-500); }

/* first-run states, only when the script runs and motion is allowed */
.js-play .said mark { background-size: 0% 100%; color: inherit; box-shadow: inset 0 0 0 var(--brand); }
.js-play .said mark.on { background-size: 100% 100%; color: var(--ink-900); box-shadow: inset 0 -2px 0 var(--brand); }
.js-play .slot p { opacity: 0; transform: translateY(6px); }
.js-play .slot p.on { opacity: 1; transform: none; }
.js-play .said .n, .js-play .slot .k .n { transform: scale(.4); opacity: 0; transition: transform .45s var(--ease-out), opacity .3s; }
/* Until its phrase lights up, a transcript pin takes no room, so the sentence reads without gaps. */
.js-play .said .n { width: 0; margin-left: 0; overflow: hidden; transition: transform .45s var(--ease-out), opacity .3s, width .35s var(--ease-out), margin .35s var(--ease-out); }
.js-play .said mark.on + .n { width: 20px; margin-left: .22em; }
.js-play .said mark.on + .n, .js-play .slot.on .k .n { transform: none; opacity: 1; }

/* ---------- hero: the recording runs ---------- */
.said-meta { display: flex; align-items: center; gap: 12px; }
.rec { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px 5px 8px; border-radius: 999px; background: var(--raised); box-shadow: var(--shadow); }
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rec); }
.bars { display: inline-flex; align-items: center; gap: 2px; height: 16px; }
.bars b { width: 2.5px; height: 100%; border-radius: 2px; background: var(--brand); transform: scaleY(.25); }
.rec-time { font-size: 12px; font-weight: 600; color: var(--ink-900); min-width: 2.6em; font-variant-numeric: tabular-nums; }
.stage.live .rec-dot { animation: blink 1s steps(2, start) infinite; }
.stage.live .bars b { animation: level .9s ease-in-out infinite alternate; }
.stage.live .bars b:nth-child(3n) { animation-duration: .62s; }
.stage.live .bars b:nth-child(4n+1) { animation-duration: 1.1s; animation-delay: -.3s; }
.stage.live .bars b:nth-child(5n+2) { animation-duration: .75s; animation-delay: -.5s; }
.stage.done .rec-dot { background: var(--done); }
@keyframes level { from { transform: scaleY(.2); } to { transform: scaleY(1); } }
@keyframes blink { to { opacity: .25; } }

.js-play .said { opacity: 0; }
.js-play .said.ready { opacity: 1; }
.js-play .said .w { opacity: 0; filter: blur(6px); transition: opacity .35s var(--ease-out), filter .45s var(--ease-out); }
.js-play .said .w.on { opacity: 1; filter: none; }

/* ---------- the moment band ---------- */
.moment {
  position: relative; overflow: hidden; background: var(--brand); color: #fff;
  padding: clamp(96px, 16vh, 180px) 0 clamp(104px, 17vh, 190px);
}
.moment .wrap { position: relative; z-index: 1; }
.moment-line { color: #fff; font-size: clamp(44px, 7.2vw, 112px); line-height: .98; letter-spacing: -.04em; max-width: 13ch; }
.turn { display: inline-block; color: #CFE0F2; transition: opacity .42s var(--ease-out), transform .42s var(--ease-out), filter .42s; }
.turn.out { opacity: 0; transform: translateY(.18em); filter: blur(6px); }
.moment-sub { margin-top: 30px; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: #DCE6F0; max-width: 40ch; }
.moment-places { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 36px; max-width: 640px; }
.moment-places li { display: grid; gap: 2px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .28); font-size: 14px; color: #DCE6F0; min-width: 150px; }
.moment-places b { font-size: 16px; font-weight: 600; color: #fff; }
/* The logo mark itself, at its own geometry (doteo_logo_on_light.svg: three
   rings tangent at the foot, stroke 102, the core seated on that tangent). */
.rings {
  position: absolute; top: 50%; transform: translateY(-50%);
  right: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  width: min(520px, 38vw); height: auto; overflow: visible;
}
.rings circle { fill: none; stroke: #fff; stroke-width: 102; transform-box: fill-box; transform-origin: center; }
/* Faded as one group, so the rings' overlaps at the foot stay one flat tone, as in the logo. */
/* Motion plays when the band comes into view, then rests (WCAG 2.2.2). */
.mark-rings { opacity: .14; }
.moment.seen .mark-rings { animation: breathe 6s ease-in-out 2; }
.rings .core { fill: #fff; stroke: none; }
.rings .wave { stroke: rgba(255, 255, 255, .45); stroke-width: 10; opacity: 0; }
.moment.seen .rings .wave { animation: sound 3.2s var(--ease-out) 4 both; }
.moment.seen .rings .w2 { animation-delay: 1.6s; }
@keyframes sound { from { transform: scale(1); opacity: .8; } to { transform: scale(2.6); opacity: 0; } }
@keyframes breathe { 50% { opacity: .22; } }
@media (prefers-reduced-motion: reduce) {
  .rings circle, .mark-rings { animation: none !important; }
  .rings .wave { display: none; }
}
@media (max-width: 720px) {
  .moment { padding-bottom: calc(44vw + 72px); }
  .rings { width: 44vw; top: auto; bottom: 48px; transform: none; }
  .moment-line { max-width: 10ch; }
  .moment-places { flex-direction: column; gap: 0; margin-top: 32px; }
  .moment-places li { padding: 12px 0; }
}
