/* raeya.app home (the final design: "noise to calm" with the large headline). Colors come from
   the tokens in styles.css, so light, dark and the theme button all work. */

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text2); }
.intro { margin-top: 14px; max-width: 620px; font-size: 18px; line-height: 1.5; color: var(--text2); }
.h-section { border-top: 1px solid var(--separator); padding: 96px 0; }
.h-section h2, .band h2, .early h2 { margin-top: 8px; font-size: clamp(28px, 3.3vw, 40px); line-height: 1.12; font-weight: 700; }
@media (max-width: 760px) { .h-section { padding: 56px 0; } }

/* Hero: the line, large, over a fading dot grid */
.h-hero { position: relative; overflow: hidden; }
.h-hero::before {
  content: ""; position: absolute; inset: 0; opacity: 0.75;
  background-image: radial-gradient(circle, var(--dot) 1.3px, transparent 1.8px);
  background-size: 32px 30px; background-position: 50% 5px;
}
.h-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 62% 70% at 50% 42%, transparent 0%, var(--bg) 100%); }
.h-hero-in {
  position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 108px 16px 72px;
  display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center;
}
.h-hero h1 { display: flex; flex-direction: column; align-items: center; gap: 18px; font-weight: 700; }
.h-pre { font-size: clamp(19px, 2.5vw, 32px); line-height: 1.28; font-weight: 400; color: var(--text2); }
.h-main { font-size: clamp(38px, 5.3vw, 76px); line-height: 1.14; }
/* "attention" in purple on a hand-drawn marker stroke: a blunt start just before the word, a slight upward
   tilt (drawn into the shape) and a tapered tail that overshoots the end, with faint dry-brush lines.
   Vertically centered on the word's ink: in SF Bold the ink runs from 0.74em above the baseline to the baseline,
   which sits 0.88em from the top of this line-height 1 box; the stroke box is 0.14em from the top, 0.74em tall. */
.h-main .u { position: relative; isolation: isolate; display: inline-block; line-height: 1; padding: 0 0.05em; margin-right: 0.04em; color: var(--brand); }
.h-main .u::before {
  content: ""; position: absolute; z-index: -1; left: -0.14em; right: -0.26em; top: 0.14em; height: 0.74em;
  background: var(--brand-stroke);
  -webkit-mask: var(--stroke-shape) center / 100% 100% no-repeat; mask: var(--stroke-shape) center / 100% 100% no-repeat;
}
:root {
  --stroke-shape: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 48' preserveAspectRatio='none'><path d='M8 16 C40 11 100 10 160 9 C210 8 252 7 282 8 C292 9 297 12 294 17 C288 24 270 30 248 34 C200 38 140 39 90 40 C55 41 28 42 12 40 Q4 38 4 30 C3 24 3 20 8 16 Z'/><path d='M50 43.5 C110 44.5 185 42.5 240 38' fill='none' stroke='black' stroke-width='1.4' opacity='0.45'/><path d='M110 5.5 C165 4.5 220 3.5 266 4.5' fill='none' stroke='black' stroke-width='1' opacity='0.35'/></svg>");
}
.h-lede { max-width: 640px; font-size: 19px; line-height: 1.55; color: var(--text2); text-wrap: balance; }
.h-pre, .h-main { text-wrap: balance; }
.h-ctas { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 26px; margin-top: 6px; }
.h-ctas .button { min-height: 50px; padding: 0 24px; font-size: 17px; }
.text-link { color: var(--text); font-size: 17px; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.h-for { margin-top: 2px; font-size: 15px; font-weight: 500; color: var(--text); text-wrap: balance; }
.h-fine { margin-top: -12px; font-size: 14px; color: var(--text2); text-wrap: balance; }
.h-for span, .h-fine span { white-space: nowrap; }
@media (max-width: 760px) {
  .h-hero-in { padding: 48px 16px 40px; gap: 18px; }
  .h-hero h1 { gap: 10px; }
  .h-lede { font-size: 17px; }
  .h-fine { margin-top: -8px; }
  .br-wide { display: none; }
}
/* Phones: a lighter first screen, with a shorter subhead. The sources and the three promises come up again further down */
.phone-only { display: none; }
@media (max-width: 600px) {
  .h-fine, .wide-only { display: none; }
  .phone-only { display: inline; }
}

/* The attention economy against Raeya: noise on the left, the calm timeline on the right */
.h-contrast { max-width: 1240px; margin: 0 auto; padding: 8px 16px 80px; }
@media (min-width: 720px) { .h-contrast { padding: 8px 24px 96px; } }
.h-panels { display: flex; flex-wrap: wrap; border-radius: 28px; overflow: hidden; border: 1px solid var(--separator); }
.h-noise, .h-calm { position: relative; flex: 1 1 440px; min-height: 460px; overflow: hidden; }
.h-noise { background: var(--noise-bg); }
.h-noise .d { position: absolute; border-radius: 50%; }
.pill {
  position: absolute; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px;
  background: var(--panel-2); box-shadow: var(--shadow); font-size: 13px; font-weight: 500; white-space: nowrap;
}
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #FF3B30; flex-shrink: 0; }
.h-label { position: absolute; bottom: 20px; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.h-noise .h-label { left: 24px; color: var(--text2); }
.h-calm .h-label { right: 24px; color: var(--text); }
.h-calm .h-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #6366F1; }
.h-calm {
  background-color: var(--bg);
  background-image: radial-gradient(circle, var(--dot) 1.2px, transparent 1.7px);
  background-size: 32px 30px; background-position: 50% 5px;
}
.toast {
  position: absolute; left: 50%; top: 26px; margin-left: -170px; width: 340px; padding: 12px 14px; border-radius: 18px;
  background: #1C1C1E; color: #FFFFFF; border: 1px solid var(--toast-line); box-shadow: var(--shadow);
}
.toast-meta { display: flex; align-items: center; gap: 7px; margin-bottom: 3px; font-size: 12px; color: #AEAEB2; }
.toast-meta::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #6366F1; }
.toast p:last-child { font-size: 15px; line-height: 1.4; }
.tl { position: absolute; left: 50%; top: 128px; margin-left: -195px; width: 390px; height: 290px; }
.tl svg { position: absolute; left: 0; top: 0; }
.tl .hr { position: absolute; left: 175px; width: 40px; text-align: center; font-size: 11px; font-weight: 600; color: var(--text2); }
.tl .bar { position: absolute; width: 12px; border-radius: 6px; }
.tl .name { position: absolute; font-size: 15px; font-weight: 600; white-space: nowrap; }
.tl .sub { position: absolute; font-size: 12px; color: var(--text2); white-space: nowrap; }
.tl .left { right: 235px; text-align: right; }
.tl .right { left: 237px; }
.h-now { position: absolute; left: 0; right: 0; top: 306px; border-top: 1.5px dashed var(--now); }
@media (max-width: 600px) {
  .h-noise { min-height: 340px; }
  .h-label { font-size: 12px; }
  .h-noise .h-label, .h-calm .h-label { left: 16px; right: auto; }
}

/* A day with Raeya: app moments along the center axis, captions on the other side (like plan and actual) */
.day { position: relative; margin-top: 56px; display: flex; flex-direction: column; gap: 56px; }
.day::before {
  content: ""; position: absolute; left: calc(50% - 2px); top: 4px; bottom: 4px; width: 4px;
  background: radial-gradient(circle, var(--dot) 1.4px, transparent 1.9px) 0 0 / 4px 10px repeat-y;
}
.moment { display: grid; grid-template-columns: minmax(0, 1fr) 112px minmax(0, 1fr); align-items: center; gap: 0 8px; }
.moment .time {
  grid-column: 2; grid-row: 1; justify-self: center; position: relative; padding: 4px 10px; border-radius: 10px;
  background: var(--bg); font-size: 13px; font-weight: 600; color: var(--text2); white-space: nowrap;
}
.moment .cap, .moment .ui { grid-row: 1; }
.moment.ui-right .cap { grid-column: 1; text-align: right; }
.moment.ui-right .ui { grid-column: 3; justify-self: start; }
.moment.ui-left .ui { grid-column: 1; justify-self: end; }
.moment.ui-left .cap { grid-column: 3; }
.cap h3 { font-size: 20px; line-height: 1.22; font-weight: 600; }
.cap p { margin-top: 6px; font-size: 16px; line-height: 1.45; color: var(--text2); }
/* A moment that needs a permission Apple hasn't granted yet */
.soon { display: inline-block; margin-left: 6px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); vertical-align: 3px; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--text2); white-space: nowrap; }
.footnote { margin-top: 40px; text-align: center; font-size: 14px; color: var(--text2); }
@media (max-width: 760px) {
  .day { margin-top: 32px; gap: 36px; }
  .day::before { left: 36px; }
  .moment { grid-template-columns: 76px minmax(0, 1fr); row-gap: 12px; align-items: start; }
  .moment .time { grid-column: 1; }
  .moment.ui-right .cap, .moment.ui-left .cap { grid-column: 2; grid-row: 1; text-align: left; }
  .moment.ui-right .ui, .moment.ui-left .ui { grid-column: 2; grid-row: 2; justify-self: stretch; }
}

/* App pieces used in the day */
.notif { width: 100%; max-width: 380px; padding: 12px 14px 14px; border-radius: 22px; background: var(--panel); box-shadow: var(--shadow); }
.notif-head { display: flex; align-items: center; gap: 8px; }
.notif-head svg { width: 20px; height: 20px; }
.notif-app { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--text2); }
.notif-when { margin-left: auto; font-size: 13px; color: var(--text2); }
.notif-title { margin-top: 8px; font-size: 15px; font-weight: 600; }
.notif-body { margin-top: 2px; font-size: 15px; line-height: 1.4; }
.notif-actions { margin-top: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.notif-actions span { height: 38px; border-radius: 12px; background: var(--panel-2); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; }
.mini-tl {
  position: relative; width: 300px; max-width: 100%; height: 168px; border-radius: 18px; border: 1px solid var(--separator); overflow: hidden;
  background-color: var(--bg); background-image: radial-gradient(circle, var(--dot) 1.2px, transparent 1.7px); background-size: 32px 30px; background-position: 50% 5px;
}
.mini-tl-in { position: absolute; left: 50%; top: 0; margin-left: -150px; width: 300px; height: 168px; }
.mini-tl svg { position: absolute; left: 0; top: 0; }
.mini-tl .hr { position: absolute; left: 130px; width: 40px; text-align: center; font-size: 11px; font-weight: 600; color: var(--text2); }
.mini-tl .bar { position: absolute; width: 12px; border-radius: 6px; background: rgba(109, 124, 255, 0.6); }
.mini-tl .name { position: absolute; font-size: 15px; font-weight: 600; white-space: nowrap; }
.mini-tl .sub { position: absolute; font-size: 12px; color: var(--text2); }
.mini-tl .now { position: absolute; left: 0; right: 0; top: 146px; border-top: 1.5px dashed var(--now); }
.nudge { display: flex; align-items: center; gap: 12px; max-width: 340px; padding: 12px 16px 12px 12px; border-radius: 20px; background: var(--panel); box-shadow: var(--shadow); }
.nudge-icon { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; background: #30B0C7; display: flex; align-items: center; justify-content: center; }
.nudge strong, .winddown strong { display: block; font-size: 15px; font-weight: 600; }
.nudge small { display: block; margin-top: 1px; font-size: 14px; color: var(--text2); }
.winddown { width: 320px; max-width: 100%; padding: 16px; border-radius: 16px; background: #1C1C1E; color: #FFFFFF; border: 1px solid #38383A; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }
.winddown-head { display: flex; align-items: center; gap: 12px; }
.winddown-moon { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: #2C2C2E; display: flex; align-items: center; justify-content: center; }
.winddown small { display: block; margin-top: 1px; font-size: 13px; color: #AEAEB2; }
.winddown-actions { margin-top: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.winddown-actions span { height: 34px; border-radius: 9px; background: #2C2C2E; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; }
.winddown-actions span:first-child { background: #0A84FF; }
.close-day { width: 340px; max-width: 100%; padding: 20px 18px; border-radius: 22px; background: var(--panel); text-align: center; }
.close-day .q { font-size: 17px; font-weight: 600; }
.faces { margin-top: 14px; display: flex; justify-content: center; gap: 10px; }
.faces svg { width: 46px; height: 46px; }
.faces .ring { fill: transparent; stroke: var(--face-line); stroke-width: 1.5; }
.faces .eye { fill: var(--face-line); }
.faces .mouth { fill: none; stroke: var(--face-line); stroke-width: 2; stroke-linecap: round; }
.faces .on .ring { fill: #FFD60A; stroke: #FFD60A; }
.faces .on .eye { fill: #1C1C1E; }
.faces .on .mouth { stroke: #1C1C1E; }
.close-day .saved { margin-top: 12px; font-size: 13px; color: var(--text2); }
.letter-card { width: 340px; max-width: 100%; padding: 18px 20px; border-radius: 18px; background: var(--letter); border: 1px solid var(--letter-line); }
.letter-card .text { margin-top: 8px; font-size: 17px; line-height: 1.45; }
.letter-card .link { margin-top: 10px; font-size: 15px; font-weight: 600; color: var(--brand); }

/* See · Understand · Choose */
.arc { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.arc li { border-top: 3px solid var(--c); padding-top: 18px; }
.arc-word { font-size: 38px; line-height: 1; font-weight: 700; }
.arc h3 { margin-top: 12px; font-size: 18px; font-weight: 600; }
.arc p:not(.arc-word) { margin-top: 6px; font-size: 16px; line-height: 1.5; color: var(--text2); }

/* The charter: the one dark band */
.band { padding: 104px 0; background: var(--band); color: #FFFFFF; }
.band .eyebrow { color: #AEAEB2; }
.band h2 { max-width: 820px; }
.charter { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px 40px; }
.charter h3 { font-size: 17px; font-weight: 600; }
.charter p { margin-top: 6px; font-size: 16px; line-height: 1.5; color: #AEAEB2; }
.band .more a { color: #8FC3FF; }
@media (max-width: 760px) { .band { padding: 64px 0; } .charter { grid-template-columns: 1fr; } }

/* Life in weeks */
.weeks { margin-top: 36px; }
.weeks svg { display: block; width: 100%; height: auto; }
.weeks circle { fill-opacity: 0.6; }
.weeks .future { fill: var(--dot); fill-opacity: 1; }
.weeks .this-week { fill: none; stroke: #FF3B30; stroke-width: 2; }

/* Early access */
.early { display: grid; gap: 32px 64px; align-items: start; }
@media (min-width: 860px) { .early { grid-template-columns: 1fr 1.15fr; } }
.early .intro + .intro { margin-top: 10px; }
