/* Mirror — direction: the sentence is the layout. Palette: sheet and biro. Type: General Sans. */
:root {
  --bg: #ffffff;
  --surface: #f4f4f4;
  --ink: #111111;
  --muted: #6b6b6b;
  --accent: #1a4be0;
  --accent-strong: #1238ad;
  --accent-ink: #ffffff;
  --field-1: #111111; --field-1-ink: #ffffff;
  --slate: #1a2230; --slate-ink: #e8ecf2;

  --font-display: "General Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-text: "General Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(3.5rem, 1rem + 9.6vw, 10.5rem);

  --margin: clamp(1rem, 2.2vw, 2rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(7rem, 13vw, 15rem);
  --radius: 0px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms; --t-hover: 180ms; --t-reveal: 800ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-text); font-size: var(--step-body); line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p, figure, ul { margin: 0; }
ul[class] { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.small { font-size: var(--step-small); line-height: 1.45; }
.muted { color: var(--muted); }
.nums { font-variant-numeric: tabular-nums; }
.wrap { padding-inline: var(--margin); }
p { text-wrap: pretty; }

.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.2em; text-decoration-thickness: 0.07em; transition: text-decoration-color var(--t-hover) ease; }
.link-plain { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 0.07em; color: var(--accent); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0 1.4rem; background: var(--accent); color: var(--accent-ink); border-radius: var(--radius); text-decoration: none; white-space: nowrap; font-weight: 500; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.button:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .link:hover { text-decoration-color: currentColor; }
  .button:hover { background: var(--accent-strong); }
  .link-plain:hover { color: var(--accent-strong); }
}

/* ---------- top line ---------- */
.top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding-block: 1.5rem; z-index: 2; }
.wordmark { font-weight: 700; font-size: 15px; text-decoration: none; }
.topnav { display: flex; gap: clamp(1rem, 4vw, 3.5rem); font-size: 14px; }
.topnav a { text-decoration-color: transparent; }
@media (max-width: 48em) { .topnav a:not(:first-child) { display: none; } }

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: 6rem 2rem; position: relative; }
.sentence { font-family: var(--font-display); font-weight: 700; font-size: var(--step-display); line-height: 0.92; letter-spacing: -0.04em; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 0.22em; row-gap: 0.04em; max-width: 100%; text-wrap: balance; }
.sentence .w { display: inline-block; }
.slot { display: inline-block; vertical-align: baseline; flex: 1 1 2.6em; min-width: 2.6em; max-width: 6em; height: 0.78em; transform: translateY(0.03em); background: var(--slate); border-radius: 0.12em; overflow: hidden; position: relative; }
.win { position: absolute; inset: 0; display: flex; flex-direction: column; color: var(--slate-ink); font-family: var(--font-text); font-weight: 400; letter-spacing: 0; line-height: 1.2; }
.win-status::before, .mini-lines .l1::before, .mini-lines .l2::before, .mini-btn::before { content: attr(data-text); }
.win-bar { display: flex; align-items: center; gap: 0.08em; padding: 0.06em 0.1em; font-size: 0.085em; background: #0e1117; flex: none; white-space: nowrap; }
.dot { display: inline-block; width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--muted); flex: none; }
.dot.ok { background: #3ad17c; }
.win-body { flex: 1; display: flex; align-items: center; justify-content: center; background: var(--slate); }
.mini-phone { width: 46%; height: 84%; background: #ffffff; color: #111; border-radius: 0.1em; display: flex; flex-direction: column; justify-content: center; gap: 0.05em; padding: 0.07em; font-size: 0.062em; }
.mini-card { display: flex; gap: 0.5em; align-items: flex-start; background: #efeff4; padding: 0.6em; border-radius: 0.6em; }
.mini-card .dot { margin-top: 0.25em; }
.mini-lines { display: flex; flex-direction: column; line-height: 1.25; }
.mini-lines .l1 { font-weight: 600; }
.mini-lines .l2 { color: #6b6b6b; }
.mini-btn { background: #d7261e; color: #fff; text-align: center; padding: 0.55em; border-radius: 0.6em; font-weight: 600; }
.hero-foot { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; margin-top: clamp(2.5rem, 8vh, 6rem); }
.support { grid-column: 6 / 11; font-size: var(--step-body); line-height: 1.5; max-width: 44ch; }
.hero-actions { grid-column: 11 / 13; justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: 0.6rem; }
@media (max-width: 64em) { .hero { justify-content: flex-start; padding-top: 7rem; min-height: 0; } .hero-foot { margin-top: 2.5rem; } .support { grid-column: 1 / 8; } .hero-actions { grid-column: 8 / 13; } }
@media (max-width: 48em) {
  .hero { padding-top: 5rem; justify-content: flex-start; }
  .sentence { font-size: 16vw; line-height: 0.92; }
  .slot { flex: 1 1 1.6em; min-width: 1.6em; max-width: none; height: 0.78em; }
  .win-bar { font-size: 0.1em; }
  .mini-phone { font-size: 0.075em; width: 56%; }
  .hero-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 1.2rem; margin-top: 2rem; }
  .hero-actions { align-items: flex-start; }
}

/* ---------- sections ---------- */
.section { padding-block: calc(var(--section) / 2); }
.head-big { font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 4.5vw, 68px); line-height: 0.98; letter-spacing: -0.03em; text-indent: 3vw; }
.head-huge { font-family: var(--font-display); font-weight: 700; font-size: clamp(48px, 6.4vw, 104px); line-height: 0.95; letter-spacing: -0.035em; }
.head-q { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 2.9vw, 44px); line-height: 1.05; letter-spacing: -0.02em; }
@media (max-width: 48em) { .head-big { font-size: 9.5vw; text-indent: 0; } .head-huge { font-size: 11vw; } .head-q { font-size: 26px; } }

/* downloads: table pushed right, picture bottom-left */
.dl-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); margin-top: 96px; align-items: end; }
.dl-pic { grid-column: 1 / 5; align-self: end; }
.dl-pic img { width: 22vw; max-width: 360px; min-width: 220px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; background: var(--surface); }
.dl-pic figcaption { margin-top: 0.8rem; max-width: 30ch; }
.dl-pic-ui[hidden] { display: none; }
.dl-name { grid-column: 7 / 8; align-self: start; font-size: 14px; }
.dl-table { grid-column: 8 / 13; align-self: start; }
.dl-table li { display: grid; grid-template-columns: 22% 1fr auto; gap: 1rem; align-items: baseline; font-size: var(--step-body); line-height: 1.4; margin-top: 26px; }
.dl-table li:first-child { margin-top: 0; }
.dl-table li.group { margin-top: 44px; }
.dl-table .k { color: var(--muted); }
.dl-table .v { text-align: right; white-space: nowrap; }
.phone-ui { width: 22vw; max-width: 360px; min-width: 220px; aspect-ratio: 4 / 5; background: #ffffff; border-radius: 0; padding: 1.4rem 1.2rem; display: flex; flex-direction: column; gap: 0.9rem; outline: 1px solid var(--surface); font-size: 14px; background: var(--surface); }
.phone-ui-icon { width: 56px; height: 56px; border-radius: 12px; }
.phone-ui-name { font-weight: 700; font-size: 26px; letter-spacing: -0.02em; }
.phone-card { display: flex; gap: 0.7rem; align-items: flex-start; background: #ffffff; padding: 0.9rem; border-radius: 12px; }
.phone-card .dot { margin-top: 0.35rem; }
.phone-card strong { display: block; font-weight: 600; }
.phone-card span { color: var(--muted); font-size: 14px; }
.phone-btn { text-align: center; padding: 0.9rem; border-radius: 12px; font-weight: 600; color: #fff; background: var(--accent); }
.phone-btn.stop { background: #d7261e; }
.phone-note { color: var(--muted); font-size: 14px; text-align: center; margin-top: auto; }
@media (max-width: 64em) {
  .dl-grid { grid-template-columns: 1fr; margin-top: 56px; row-gap: 3rem; }
  .dl-pic { grid-column: 1; order: 2; width: 60%; justify-self: end; }
  .dl-pic img { width: 100%; min-width: 0; }
  .dl-name { display: none; }
  .dl-table { grid-column: 1; order: 1; }
  .dl-table li { grid-template-columns: 1fr auto; }
  .dl-table .k { grid-column: 1 / -1; margin-bottom: -0.3rem; }
  .phone-ui { width: 100%; min-width: 0; }
}

/* how: stages as one bar, the waiting window beside the heading */
.how-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
.how-head h2 { grid-column: 1 / 8; }
.how-shot { grid-column: 9 / 13; }
.how-shot img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center; background: var(--surface); }
.how-shot figcaption { margin-top: 0.8rem; }
@media (max-width: 48em) { .how-head { display: block; } .how-shot { margin-top: 2rem; width: 70%; margin-left: auto; } }
.bar { display: flex; gap: 6px; height: 22vh; min-height: 160px; margin-top: 64px; }
.seg { position: relative; padding: 20px; display: flex; align-items: flex-start; }
.seg-1 { flex: 1.2 1 0; background: var(--field-1); color: var(--field-1-ink); }
.seg-2 { flex: 1 1 0; background: var(--accent); color: var(--accent-ink); }
.seg-3 { flex: 6 1 0; background: var(--surface); color: var(--ink); }
.dur { font-weight: 500; font-size: clamp(20px, 2vw, 30px); line-height: 1.1; letter-spacing: -0.01em; }
.bar-notes { display: flex; gap: 6px; margin-top: 1.4rem; }
.bar-notes .note { font-size: var(--step-body); line-height: 1.45; max-width: 22ch; }
.bar-notes .note:nth-child(1) { flex: 1.2 1 0; }
.bar-notes .note:nth-child(2) { flex: 1 1 0; }
.bar-notes .note:nth-child(3) { flex: 6 1 0; }
@media (max-width: 48em) {
  .bar { flex-direction: column; height: auto; min-height: 0; margin-top: 2rem; }
  .seg { flex: none; min-height: 96px; flex-direction: column; justify-content: space-between; gap: 1rem; }
  .seg-3 { min-height: 200px; }
  .dur { font-size: 22px; }
  .bar-notes { display: none; }
  .seg::after { content: attr(data-note); font-size: 16px; line-height: 1.4; max-width: 32ch; }
}

/* delay: figure set by a slider */
.delay { background: var(--surface); padding-block: 0; }
.delay-inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: clamp(3rem, 8vh, 6rem); padding-block: clamp(3rem, 8vh, 6rem); align-items: end; }
.delay-top { grid-column: 1 / 7; align-self: start; }
.delay-shot { grid-column: 8 / 13; grid-row: 1 / 3; align-self: start; }
.delay-shot img { width: 100%; max-width: 420px; justify-self: end; margin-left: auto; background: #fff; }
.delay-bottom { grid-column: 1 / 13; }
.control { width: 100%; max-width: 400px; margin-top: 28px; background: #ffffff; padding: 1rem 1.1rem 0.9rem; }
.control label { display: flex; justify-content: space-between; font-weight: 500; }
.control .val { color: var(--muted); font-weight: 400; }
.control input[type=range] { width: 100%; margin: 0.8rem 0 0.6rem; accent-color: var(--accent); height: 44px; }
.control p { margin: 0; }
.delay-bottom { display: flex; align-items: baseline; justify-content: space-between; gap: 2rem; }
.figure { font-family: var(--font-display); font-weight: 700; font-size: clamp(140px, 19vw, 320px); line-height: 0.8; letter-spacing: -0.05em; }
.figure .unit { font-size: 0.22em; margin-left: 0.15em; letter-spacing: -0.02em; }
.working { font-size: var(--step-body); line-height: 1.5; max-width: 30ch; }
@media (max-width: 64em) {
  .delay-inner { display: flex; flex-direction: column; gap: 2.5rem; }
  .delay-top { align-self: stretch; }
  .delay-shot { width: 60%; align-self: flex-end; }
  .delay-bottom { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
  .figure { font-size: 30vw; }
  .working { max-width: 52ch; }
}
@media (max-width: 48em) {
  .figure { display: flex; flex-direction: column; }
  .figure .unit { font-size: 20px; margin: 0.4rem 0 0; }
  .working { font-size: 15px; }
}

/* faq: large questions, answers beside */
.faq { display: flex; flex-direction: column; gap: clamp(72px, 6vw, 88px); }
.qa { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: baseline; }
.qa .q { grid-column: 1 / 7; font-family: var(--font-display); font-weight: 500; font-size: clamp(26px, 2.6vw, 40px); line-height: 1.1; letter-spacing: -0.02em; }
.qa .a { grid-column: 8 / 13; font-size: var(--step-body); line-height: 1.55; max-width: 40ch; }
.faq-shot img { width: 100%; max-width: 420px; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; background: var(--surface); }
.faq-shot figcaption { margin-top: 0.8rem; }
@media (max-width: 64em) {
  .faq { gap: 56px; }
  .qa { display: block; }
  .qa .q { font-size: 24px; }
  .qa .a { margin-top: 12px; max-width: 56ch; }
  .faq-shot { width: 60%; margin-left: auto; }
}

/* footer: contact as the headline */
.foot { background: var(--field-1); color: var(--field-1-ink); }
.foot-inner { display: flex; flex-direction: column; padding-block: 40px; }
.foot-icon { grid-column: 1 / 3; width: 96px; height: 96px; border-radius: 22px; }
.foot-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.foot-notes { grid-column: 3 / 8; font-size: 14px; line-height: 1.5; }
.foot-notes p + p { margin-top: 0.4rem; }
.foot-up { grid-column: 11 / 13; justify-self: end; font-size: 14px; }
.foot-contact { margin-top: clamp(4rem, 14vh, 10rem); font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 8.6vw, 11rem); line-height: 0.92; letter-spacing: -0.04em; }
.mail { text-decoration: none; display: inline-flex; flex-wrap: wrap; column-gap: 0; }
.mail span { display: inline-block; }
.foot-meta { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; font-size: var(--step-small); color: #c9ced6; }
.foot-meta a { color: var(--field-1-ink); }
@media (max-width: 48em) {
  .foot-top { display: flex; flex-direction: column; gap: 1rem; }
  .foot-contact { font-size: 12vw; }
  .mail { flex-direction: column; }
  .foot-meta { flex-direction: column; font-size: 13px; }
}

/* ---------- motion (content visible without script) ---------- */
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes shutter { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes settle { from { transform: scale(1.12); } to { transform: none; } }
@keyframes tick { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2%); } }
.shutter { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(0.25em); animation: rise var(--t-reveal) var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .shutter-auto { animation: shutter 1100ms var(--ease-in-out) 450ms both; }
  .js .shutter-auto .win { animation: settle 1500ms var(--ease-soft) 450ms both; }
  .js .mini-phone { animation: tick 2.4s ease-in-out infinite; }
  .faq .qa[data-reveal] { transition-delay: 60ms; }
}
