/* someday.my — Dusk, the app's own look: deep evening blue, a warm gold, soft periwinkle.
   Fonts are served from this site (assets/fonts); nothing is loaded from anyone else. */

@font-face { font-family: Newsreader; src: url(/assets/fonts/Newsreader-Regular.ttf) format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Newsreader; src: url(/assets/fonts/Newsreader-Italic.ttf) format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url(/assets/fonts/IBMPlexMono-Medium.ttf) format('truetype'); font-weight: 500; font-display: swap; }

:root {
  --ground: #0C0E14;
  --surface: #141720;
  --surface2: #1C202B;
  --ink: #E8E9F0;
  --muted: #9097A9;
  --line: #2A2F3D;
  --accent: #B3BDEE;
  --on-accent: #141720;
  --seal: #E6B25C;
  /* Dusk by day, for the light sections. */
  --day-surface: #F7F7FA;
  --day-surface2: #ECEDF3;
  --day-ink: #191D2A;
  --day-muted: #5E6679;
  --day-line: #D3D6E0;
  --day-accent: #333F6E;
  --day-seal: #D99A3E;
  --serif: Newsreader, Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Plex Mono', ui-monospace, Menlo, monospace;
  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--surface); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 999px; z-index: 50; }
.skip:focus { left: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.label { font: 500 12px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.voice { font-family: var(--serif); font-style: italic; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; margin: 0; }
h1 { font-size: clamp(44px, 6.4vw, 78px); line-height: 1.04; }
h2 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.08; }
h3 { font-size: 26px; line-height: 1.2; }
p { margin: 0; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--muted); max-width: 34em; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--ground) 82%, transparent); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
/* The wordmark is wide and short (about 3.6 : 1), so it needs real height to read. */
.brand img { height: 42px; width: auto; }
@media (max-width: 760px) { .site-head .wrap { height: 68px; } .brand img { height: 34px; } }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.button) { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:not(.button):hover { color: var(--ink); }
@media (max-width: 760px) { .nav a:not(.button) { display: none; } }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: 600 16px/1 var(--sans); text-decoration: none; border: 0; cursor: pointer; transition: transform .2s ease, opacity .2s ease; }
.button:hover { transform: translateY(-1px); }
.button.small { height: 40px; padding: 0 18px; font-size: 14px; }
.button.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.button .play { width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 9px solid currentColor; }
.store-note { font-size: 14px; color: var(--muted); }

/* A phone, holding a real screen */
.phone { position: relative; width: 100%; aspect-ratio: 1170 / 2532; border-radius: 13% / 6%; overflow: hidden; background: var(--ground); box-shadow: 0 0 0 7px #0B0D13, 0 0 0 8px var(--line), 0 40px 80px -30px rgba(0, 0, 0, .7); }
.phone img, .phone video { width: 100%; height: 100%; object-fit: cover; }

/* Hero: an evening sky, the sundial rising at its edge */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 520px at 78% -10%, #262C48 0%, transparent 60%), linear-gradient(180deg, var(--ground) 0%, var(--surface) 100%); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 32% 8%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 52% 26%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 68% 12%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 88% 34%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 22% 44%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 44% 62%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 8% 72%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 61% 48%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 94% 66%, #fff 50%, transparent 51%); }
.hero .sun { position: absolute; right: -140px; top: -120px; width: 460px; opacity: .16; animation: turn 240s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; padding-top: clamp(56px, 9vw, 112px); padding-bottom: clamp(64px, 9vw, 120px); }
.hero .tag { font-size: 20px; color: var(--muted); margin-bottom: 22px; }
.hero h1 { margin-bottom: 24px; }
.hero .lede { margin-bottom: 34px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px; }
.hero .phone { max-width: 330px; margin-left: auto; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero .phone { max-width: 290px; margin: 8px auto 0; } .hero .sun { width: 260px; right: -120px; top: -100px; opacity: .1; } }

/* Someday at a glance */
.glance { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); padding: 26px 0; }
.glance p { color: var(--muted); margin-bottom: 16px; max-width: 60em; }
.glance strong { color: var(--ink); font-weight: 600; }
.glance dl { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 0; }
.glance dt { font: 500 11px/1.6 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.glance dd { margin: 0; font-size: 15px; }

/* Sections */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section.alt { background: var(--ground); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .label { margin-bottom: 16px; }
.section-head h2 { margin-bottom: 18px; }

/* The loop: Keep · Send · Meet yourself */
.loop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.loop article { background: var(--surface2); border-radius: 22px; padding: 28px; }
.loop img { height: 64px; width: auto; margin-bottom: 22px; }
.loop h3 { margin-bottom: 10px; }
.loop p { color: var(--muted); }
@media (max-width: 860px) { .loop { grid-template-columns: 1fr; } }

/* Feature rows: words beside the real screens */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 7vw, 96px); align-items: center; }
.feature + .feature { margin-top: clamp(80px, 11vw, 140px); }
.feature.flip .text { order: 2; }
.feature .text .label { margin-bottom: 14px; }
.feature .text h2 { margin-bottom: 18px; }
.feature .text .lede { margin-bottom: 20px; }
.feature ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.feature li { position: relative; padding-left: 20px; color: var(--muted); }
.feature li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--seal); }
.screens { display: flex; gap: 18px; justify-content: center; align-items: flex-start; }
.screens .phone { max-width: 260px; }
.screens .phone:nth-child(2) { margin-top: 56px; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature.flip .text { order: 0; }
  .screens .phone { max-width: 200px; }
  .screens .phone:nth-child(2) { margin-top: 36px; }
}

/* The quiet promise */
.quiet { text-align: center; }
.quiet .big { font-family: var(--serif); font-size: clamp(32px, 4.6vw, 58px); line-height: 1.15; max-width: 22ch; margin: 0 auto 28px; }
.quiet .big em { color: var(--seal); font-style: italic; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chips span { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; color: var(--muted); font-size: 15px; }

/* Private by design: Dusk by day */
.day { background: var(--day-surface); color: var(--day-ink); }
.day .label, .day .lede { color: var(--day-muted); }
.day a { color: var(--day-accent); }
.private { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.private div { background: #fff; border: 1px solid var(--day-line); border-radius: 20px; padding: 26px; }
.private h3 { font-size: 22px; margin-bottom: 8px; }
.private p { color: var(--day-muted); }
.private .mark-dot { display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--day-seal); margin-bottom: 18px; }
@media (max-width: 860px) { .private { grid-template-columns: 1fr; } }

/* Make it yours */
.yours { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }
.yours div { border-top: 1px solid var(--line); padding-top: 20px; }
.yours h3 { font-size: 22px; margin-bottom: 8px; }
.yours p { color: var(--muted); }
@media (max-width: 860px) { .yours { grid-template-columns: 1fr; } }

/* The film */
.film { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 7vw, 96px); align-items: center; }
.film .phone { max-width: 320px; margin: 0 auto; }
@media (max-width: 860px) { .film { grid-template-columns: 1fr; } }

/* Questions */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-family: var(--serif); font-size: 22px; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { color: var(--muted); padding: 0 0 24px; max-width: 46em; }

/* Last word */
.closing { text-align: center; }
.closing img { width: 120px; margin: 0 auto 28px; }
.closing .voice { font-size: clamp(30px, 4vw, 46px); margin-bottom: 30px; }
.closing .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 48px 0 56px; color: var(--muted); font-size: 15px; }
.site-foot .wrap { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.site-foot img { height: 42px; width: auto; margin-bottom: 14px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--ink); }
.site-foot .fine { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 22px; font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (max-width: 760px) { .site-foot .wrap { grid-template-columns: 1fr 1fr; } .site-foot .about { grid-column: 1 / -1; } }

/* Press kit */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 12px 32px; margin: 0; }
.facts dt { font: 500 12px/1.9 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; }
.kit { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.kit figure { margin: 0; background: var(--surface2); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.kit figure.light { background: var(--day-surface); color: var(--day-ink); }
.kit figure img { height: 96px; width: auto; object-fit: contain; align-self: center; }
.kit figcaption { font-size: 14px; color: var(--muted); }
.kit figure.light figcaption { color: var(--day-muted); }
.kit figcaption a { margin-right: 10px; }
.kit figure.light a { color: var(--day-accent); }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.swatches div { width: 132px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); font: 500 12px/1.5 var(--mono); }
.swatches i { display: block; height: 72px; }
.swatches span { display: block; padding: 10px 12px; color: var(--muted); }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.shots a img { border-radius: 14px; }

/* Arriving as you scroll — still when motion is reduced, or before the script runs. */
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } .hero .sun { animation: none; } }
