/* Seigyo's site. One action: the download. Instrument Sans for words, Geist Mono for what is
   measured, the app's colors (DesignTokens.swift); lavender for one phrase, the Main 3 and the
   brand's second block and dot (docs/brand). The day itself, the phone and its screens:
   story.css. */

@font-face { font-family: "Instrument Sans"; src: url("fonts/InstrumentSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/InstrumentSans-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/InstrumentSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/InstrumentSans-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }

:root {
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --max: 1180px;
  --nav-h: 64px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px), 4vw);
  --gutter-r: max(20px, env(safe-area-inset-right, 0px), 4vw);
  --page: #FAFAF8; --raised: #FFFFFF; --text: #0A0A0A; --secondary: #5C5C5C; --tertiary: #6E6E6E;
  --hairline: rgba(10, 10, 10, 0.1); --ink: #0A0A0A; --on-ink: #FFFFFF; --accent: #5F52D6; --brand: #6A5ED9;
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}
.day { --raised: #FFFFFF; --text: #0A0A0A; --secondary: #5C5C5C; --tertiary: #6E6E6E; --hairline: rgba(10, 10, 10, 0.1);
       --ink: #0A0A0A; --on-ink: #FFFFFF; --accent: #5F52D6; --brand: #6A5ED9; color-scheme: light; }
.night { --raised: #18181C; --text: #EDEDEB; --secondary: #A3A3A3; --tertiary: #8A8A8A; --hairline: rgba(237, 237, 235, 0.12);
         --ink: #EDEDEB; --on-ink: #0A0A0A; --accent: #B8B2F7; --brand: #C4BEFF; color-scheme: dark; }
.p0 { --page: #FAFAF8; }
.p1 { --page: #F4F3EF; }
.p2 { --page: #ECEBE6; }
.p6 { --page: #111111; }
.p7 { --page: #0D0D0D; }
.p8 { --page: #0A0A0A; }
@media (prefers-contrast: more) {
  .day { --secondary: #3D3D3D; --tertiary: #555555; --hairline: rgba(10, 10, 10, 0.22); --accent: #4B3DCF; }
  .night { --secondary: #C2C2C2; --tertiary: #A3A3A3; --hairline: rgba(237, 237, 235, 0.24); --accent: #C9C4FA; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 16px); }
body { margin: 0; background: #0A0A0A; color: var(--text); font: 400 1.0625rem/1.55 var(--sans); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.mono { font-family: var(--mono); font-weight: 500; font-size: 0.92em; letter-spacing: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.band { background: var(--page); color: var(--text); padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.wrap { max-width: var(--max); margin: 0 auto; }
.story .wrap { padding-left: var(--gutter-l); padding-right: var(--gutter-r); max-width: calc(var(--max) + var(--gutter-l) + var(--gutter-r)); }
.section { padding-block: clamp(88px, 12vw, 160px); }
.spec { font-family: var(--mono); font-weight: 500; font-size: 0.8125rem; line-height: 1.2; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tertiary); margin: 0 0 26px; display: flex; flex-wrap: wrap; gap: 0 0.75em; }
.spec b { font-weight: 500; color: var(--text); }
h1, h2, h3 { font-weight: 600; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(3rem, 8.4vw, 7.25rem); line-height: 0.95; letter-spacing: -0.045em; }
h2 { font-size: clamp(2.25rem, 5.6vw, 4.5rem); line-height: 1; letter-spacing: -0.035em; max-width: 16ch; }
h3 { font-size: 1.375rem; line-height: 1.2; letter-spacing: -0.02em; }
.accent { color: var(--accent); }
.lede { font-size: clamp(1.125rem, 1.8vw, 1.375rem); line-height: 1.5; color: var(--secondary); max-width: 34em; margin: 28px 0 0; text-wrap: pretty; }
.note { font-size: 0.9375rem; color: var(--tertiary); margin: 20px 0 0; max-width: 760px; }

/* The one action: a rounded rectangle, never a capsule; ink on the page. */
.download { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 10px; background: var(--ink); color: var(--on-ink); text-decoration: none; font: 600 1.0625rem/1 var(--sans); letter-spacing: -0.01em; white-space: nowrap; transition: transform 120ms ease, opacity 120ms ease; }
.download:hover { opacity: 0.88; }
.download:active { transform: scale(0.98); }
.download.small { height: 40px; padding: 0 16px; font-size: 0.9375rem; border-radius: 9px; }
.download.badge { background: none; padding: 0; height: auto; }
.download.badge img { height: 52px; width: auto; }
.download.small.badge img { height: 40px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-top: 40px; }
.scan { display: none; align-items: center; gap: 16px; }
.scan .code { width: 88px; height: 88px; padding: 8px; background: #FFFFFF; border-radius: 10px; border: 1px solid var(--hairline); }
.scan .code svg { width: 100%; height: 100%; }
.scan p { margin: 0; font-family: var(--mono); font-size: 0.75rem; line-height: 1.5; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tertiary); max-width: 15ch; text-align: left; }
@media (hover: hover) and (pointer: fine) and (min-width: 900px) { .scan { display: flex; } }

/* The navigation: the lockup, the pages, Download. It takes the page under it. */
.nav { position: fixed; inset: 0 0 auto; z-index: 40; padding-top: env(safe-area-inset-top, 0px); padding-left: var(--gutter-l); padding-right: var(--gutter-r);
  background: color-mix(in srgb, var(--page) 80%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid var(--hairline); transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease; }
.nav .wrap { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--text); }
.brand .lockup { width: auto; height: 23px; fill: currentColor; }
.lockup .b, .foot-mark .b, .loader .b { fill: var(--brand); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a:not(.download) { color: var(--secondary); text-decoration: none; font-weight: 500; font-size: 0.9375rem; }
.nav-links a:not(.download):hover, .nav-links a[aria-current="page"] { color: var(--text); }
@media (max-width: 620px) { .nav-links a:not(.download) { display: none; } }

/* The hero: the promise, then the goal, typed into a big field with a glow that moves. */
.hero { position: relative; overflow: hidden; text-align: center; padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + clamp(104px, 8vw + 6vh, 180px)); padding-bottom: clamp(72px, 9vw, 120px); }
.hero .wrap { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.hero h1 { max-width: 12ch; }
.hero .tagline { justify-content: center; margin-bottom: 24px; }
.hero .lede { margin-inline: auto; max-width: 30em; }
.glow { position: absolute; left: 50%; top: 62%; width: min(1100px, 140vw); height: 640px; transform: translate(-50%, -50%); pointer-events: none; }
.glow i { position: absolute; border-radius: 50%; will-change: transform; }
.glow i:nth-child(1) { left: 18%; top: 22%; width: 52%; height: 64%; background: radial-gradient(closest-side, rgba(184, 178, 247, 0.7), rgba(184, 178, 247, 0)); animation: drift1 16s ease-in-out infinite alternate; }
.glow i:nth-child(2) { left: 38%; top: 30%; width: 46%; height: 58%; background: radial-gradient(closest-side, rgba(142, 133, 240, 0.5), rgba(142, 133, 240, 0)); animation: drift2 19s ease-in-out infinite alternate; }
.glow i:nth-child(3) { left: 30%; top: 40%; width: 40%; height: 46%; background: radial-gradient(closest-side, rgba(246, 205, 226, 0.5), rgba(246, 205, 226, 0)); animation: drift3 23s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate3d(14%, 8%, 0) scale(1.08); } }
@keyframes drift2 { to { transform: translate3d(-16%, -6%, 0) scale(0.94); } }
@keyframes drift3 { to { transform: translate3d(8%, -12%, 0) scale(1.12); } }
.goal { width: min(680px, 100%); margin-top: 44px; }
.goal .field { position: relative; display: flex; align-items: center; height: 72px; padding: 0 10px 0 26px; border-radius: 22px; background: rgba(255, 255, 255, 0.86); border: 1px solid rgba(10, 10, 10, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 24px 60px -24px rgba(60, 46, 160, 0.35), 0 4px 14px -6px rgba(10, 10, 10, 0.12); transition: box-shadow 200ms ease, border-color 200ms ease; }
.goal .field:focus-within { border-color: rgba(95, 82, 214, 0.45); box-shadow: 0 0 0 4px rgba(95, 82, 214, 0.12), 0 24px 60px -20px rgba(60, 46, 160, 0.45); }
.goal input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: 500 1.375rem/1 var(--sans); letter-spacing: -0.015em; color: #0A0A0A; }
.goal .ghost { position: absolute; left: 26px; right: 76px; top: 50%; transform: translateY(-50%); text-align: left; font: 500 1.375rem/1 var(--sans); letter-spacing: -0.015em; color: #8A8A8A; pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity 240ms ease, transform 240ms ease; }
.goal .ghost.out { opacity: 0; transform: translateY(calc(-50% - 8px)); }
.goal.typed .ghost { opacity: 0; }
.goal button { flex: none; width: 52px; height: 52px; border: 0; border-radius: 14px; background: #0A0A0A; color: #FFFFFF; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform 120ms ease; }
.goal button:active { transform: scale(0.96); }
.goal button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.goal .hint { margin: 14px 0 0; font-size: 0.875rem; color: var(--tertiary); }
.hero .cta { justify-content: center; margin-top: 36px; }
@media (max-width: 600px) {
  .goal .field { height: 62px; padding-left: 18px; border-radius: 18px; }
  .goal input, .goal .ghost { font-size: 1.125rem; }
  .goal .ghost { left: 18px; right: 66px; }
  .goal button { width: 46px; height: 46px; border-radius: 12px; }
}

/* Questions. */
.faq { margin: 56px 0 0; max-width: 860px; border-top: 1px solid var(--hairline); }
.faq div { padding: 26px 0; border-bottom: 1px solid var(--hairline); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 24px; }
.faq dt { font-weight: 600; font-size: 1.125rem; letter-spacing: -0.01em; }
.faq dd { margin: 0; color: var(--secondary); }
.contact { margin-top: 40px; font-size: 1.125rem; }
.faq a, .contact a, .note a, .doc .lede a, .qa a { color: var(--text); text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* The last Download. */
.final { padding-block: clamp(96px, 12vw, 170px) clamp(80px, 9vw, 130px); border-top: 1px solid var(--hairline); }
.final h2 { font-size: clamp(2.75rem, 7vw, 6rem); line-height: 0.95; letter-spacing: -0.045em; max-width: none; }

/* The footer: small links, then "seigyo" across the whole width, its descenders cut by the
   page's end, the i's dot in lavender. */
.foot { padding-top: 28px; overflow: hidden; border-top: 1px solid var(--hairline); padding-left: 0; padding-right: 0; container-type: inline-size; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; padding-left: var(--gutter-l); padding-right: var(--gutter-r); max-width: calc(var(--max) + var(--gutter-l) + var(--gutter-r)); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot nav a { color: var(--secondary); text-decoration: none; font-size: 0.9375rem; }
.foot nav a:hover, .foot nav a[aria-current="page"] { color: var(--text); }
.foot small { font-family: var(--mono); font-size: 0.75rem; color: var(--tertiary); letter-spacing: 0.04em; }
.foot-mark { display: block; width: calc(100% - 3vw); max-width: none; height: auto; margin: clamp(28px, 5vw, 64px) auto 0; fill: #24242A; user-select: none; }

/* The loading moment (docs/brand): the two blocks slide into place on the first band's
   colors, then the page shows through. Once a visit, in CSS alone, so it can never stay. */
.loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--page); pointer-events: none;
  animation: loader-out 160ms cubic-bezier(0.3, 0, 1, 1) 720ms both; }
.loader svg { width: 72px; height: auto; overflow: visible; fill: var(--text); }
.loader rect { animation: top-in 220ms cubic-bezier(0.2, 0, 0, 1) 60ms both; }
.loader rect.b { animation: step-in 220ms cubic-bezier(0.2, 0, 0, 1) 200ms both; }
.loaded .loader { display: none; }
@keyframes top-in { from { transform: translateX(-56px); opacity: 0; } }
@keyframes step-in { from { transform: translateX(-18px); opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes loader-out { to { opacity: 0; visibility: hidden; } }

/* The scan dialog on a computer. */
dialog.get { border: 0; padding: 0; border-radius: 22px; background: #FAFAF8; color: #0A0A0A; width: min(420px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }
dialog.get::backdrop { background: rgba(10, 10, 10, 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog.get .inner { padding: 30px 30px 26px; }
dialog.get .code { width: 220px; height: 220px; margin: 22px auto; padding: 14px; background: #FFFFFF; border-radius: 14px; border: 1px solid rgba(10, 10, 10, 0.1); }
dialog.get .code svg { width: 100%; height: 100%; }
dialog.get h3 { font-size: 1.5rem; }
dialog.get p { margin: 8px 0 0; color: #5C5C5C; }
dialog.get .row { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 18px; }
dialog.get .row a { color: #0A0A0A; font-weight: 500; }
dialog.get button { font: 500 0.9375rem/1 var(--sans); height: 40px; padding: 0 16px; border-radius: 9px; border: 1px solid rgba(10, 10, 10, 0.12); background: #FFFFFF; color: #0A0A0A; cursor: pointer; }

/* The other pages: one column to read. */
.doc { padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + clamp(80px, 6vw + 4vh, 128px)); padding-bottom: clamp(88px, 10vw, 140px); }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(2.75rem, 7vw, 5rem); line-height: 1; letter-spacing: -0.04em; max-width: none; }
.doc .lede { margin-top: 24px; }
.doc .wrap > .lede:last-child { margin-top: 48px; }
.qa { margin: 56px 0 0; border-top: 1px solid var(--hairline); }
.qa section { padding: 26px 0; border-bottom: 1px solid var(--hairline); display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 24px; }
.qa h2 { font-size: 1.125rem; line-height: 1.35; letter-spacing: -0.01em; max-width: none; }
.qa p { margin: 0 0 10px; }
.qa p:last-child { margin-bottom: 0; }
.qa .fine { color: var(--secondary); font-size: 0.9375rem; }
.email { display: inline-flex; align-items: center; gap: 12px; margin-top: 36px; padding: 18px 22px; border-radius: 14px; background: var(--raised); border: 1px solid var(--hairline); font-family: var(--mono); font-size: 1.125rem; text-decoration: none; color: var(--text); }
.email span { font-family: var(--sans); font-size: 0.9375rem; color: var(--tertiary); }

@media (max-width: 900px) {
  .faq div, .qa section { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .glow i { animation: none; }
  .download, .nav, .goal .ghost { transition: none; }
  .loader rect, .loader rect.b { animation: fade-in 150ms ease-out 60ms both; }
}
