/* fonts: shown with a metric-matched fallback while they load, so the first screen does not jump */
@font-face { font-family:"Oswald"; src:url("fonts/oswald-latin-var.woff2") format("woff2"); font-weight:200 700; font-style:normal; font-display:swap; }
@font-face { font-family:"Inter"; src:url("fonts/inter-latin-var.woff2") format("woff2"); font-weight:100 900; font-style:normal; font-display:swap; }
@font-face { font-family:"Oswald Fallback"; src:local("Arial"); font-weight:200 700; size-adjust:78.9%; ascent-override:150.8%; descent-override:36.8%; line-gap-override:0%; }
@font-face { font-family:"Inter Fallback"; src:local("Arial"); font-weight:100 900; size-adjust:106.2%; ascent-override:91.3%; descent-override:22.6%; line-gap-override:0%; }

/* brand colours (Design, section 1) and shared values; colours are used only through these names */
:root {
  --cream:#F7F3EA; --ink:#23202B; --ink-muted:#5A5566; --indigo:#4A5ACF; --lav:#C3CEFA; --red:#D9452B; --red-text:#C8381F;
  --cobalt:#2E3AA0; --white:#FFFFFF; --peach:#FFD3C7; --linkedin:#0A66C2;
  --btn-top:#CB4127; --btn-bottom:#A82E18; --key-base:#6E1D0F;
  --ink-line:rgba(35,32,43,.18);
  --font-head:"Oswald","Oswald Fallback",Arial,sans-serif;
  --font-body:"Inter","Inter Fallback",Arial,sans-serif;
  --ease:cubic-bezier(.2,.8,.2,1); --ease-io:cubic-bezier(.65,0,.35,1);
  --head-top:24px;
}
* { box-sizing:border-box; margin:0; }
html { scroll-behavior:smooth; }
body { font-family:var(--font-body); color:var(--ink); background:var(--cream); }

/* header: a pill that rides with the page; on phones and tablets only the logo and the call button */
.header { position:fixed; top:20px; left:0; right:0; z-index:10; padding:0 16px; }
.pill { max-width:60rem; margin:0 auto; height:64px; display:flex; align-items:center; gap:24px; padding:0 10px 0 26px; border-radius:999px; background:color-mix(in srgb, var(--white) 82%, transparent); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); border:2px solid var(--ink); }
.pill img { height:26px; width:auto; display:block; }
.pill nav { display:flex; gap:28px; margin-left:auto; font-size:.95rem; }
.pill nav a { color:var(--ink); text-decoration:none; }

/* red button on a dark base: it lifts on hover and goes down on press; motion only through transform and opacity */
.key { position:relative; display:inline-block; border-radius:999px; background:var(--key-base); padding-bottom:4px; }
.btn { position:relative; display:inline-flex; align-items:center; gap:10px; min-height:52px; padding:0 26px; border-radius:999px; border:2px solid var(--ink); color:var(--white); font:600 1rem/1.2 var(--font-body); text-decoration:none; cursor:pointer;
  background:linear-gradient(180deg,var(--btn-top) 0%,var(--red-text) 55%,var(--btn-bottom) 100%); box-shadow:inset 0 1px 0 color-mix(in srgb, var(--white) 35%, transparent); transform:translateY(-4px); transition:transform .16s var(--ease); }
.btn::after { content:""; position:absolute; inset:0; border-radius:inherit; background:var(--white); opacity:0; pointer-events:none; transition:opacity .16s var(--ease); }
.btn.small { min-height:44px; padding:0 18px; font-size:.95rem; }
@media (hover:hover) { .key:hover .btn { transform:translateY(-8px); } .key:hover .btn::after { opacity:.06; } }
.key:active .btn { transform:translateY(0); }

/* first screen: the dot field lies under everything; text and photo sit on top */
.hero { position:relative; padding-top:132px; overflow:hidden; }
.field { position:absolute; inset:0; width:100%; height:100%; display:block; pointer-events:none; z-index:0; }
.hero-inner { position:relative; z-index:1; max-width:80rem; margin:0 auto; padding:0 clamp(1.25rem,5vw,3rem); display:grid; grid-template-columns:minmax(0,34rem) minmax(0,1fr); column-gap:clamp(1.5rem,4vw,4rem); }
.text { padding-bottom:84px; max-width:34rem; }
.photo { position:relative; align-self:stretch; }
.photo img { position:absolute; top:var(--head-top); bottom:0; left:50%; transform:translateX(-50%); height:calc(100% - var(--head-top)); width:auto; max-width:none; display:block; }

.badges { display:flex; flex-wrap:wrap; gap:10px 12px; margin-bottom:20px; }
@media (min-width:901px) { .badges { flex-wrap:nowrap; width:max-content; } }
.badge { display:flex; width:max-content; text-transform:none; letter-spacing:normal; color:var(--ink); align-items:center; gap:10px; height:44px; padding:0 18px; border:2px solid var(--ink); border-radius:999px; background:var(--lav); font:700 clamp(.95rem,.82rem + .5vw,1.2rem)/1.2 var(--font-body); white-space:nowrap; }
.badge::before { content:""; width:10px; height:10px; border-radius:50%; background:var(--red); border:2px solid var(--ink); }
/* location badge: same shape and red dot, quieter cream fill (Miru, 2026-11-16) */
.badge.loc { background:var(--cream); }
h1 { font:600 clamp(2rem,1.1rem + 2.6vw,3.4rem)/1.06 var(--font-head); text-transform:uppercase; }
h1 .second { display:block; color:var(--indigo); }
.lead { margin-top:20px; font-size:1.1rem; line-height:1.55; color:var(--ink-muted); }
.cta { margin-top:30px; display:flex; flex-wrap:wrap; gap:14px 20px; align-items:center; }
.facts { list-style:none; padding:0; margin-top:26px; display:grid; gap:10px; font-size:.95rem; line-height:1.45; color:var(--ink-muted); }
.facts li { position:relative; padding-left:22px; }
.facts li::before { content:""; position:absolute; left:0; top:.42em; width:10px; height:10px; border-radius:50%; background:var(--red); border:2px solid var(--ink); }
.facts b { color:var(--ink); font-weight:700; }

@media (max-width:900px) {
  .pill nav { display:none; }
  .pill .key { margin-left:auto; }
  .hero { padding-top:104px; }
  /* phone and tablet: badge on top, heading and lead left; the photo on the right runs from the heading down to the next screen, text may lie over it */
  .hero-inner { grid-template-columns:minmax(0,1fr) 46%; grid-template-areas:"h1 ." "lead ." "cta cta" "facts facts"; column-gap:0; }
  .text { display:contents; }
  h1 { grid-area:h1; font-size:clamp(1.3rem, 6.6vw, 2.6rem); padding-bottom:6px; position:relative; z-index:2; }
  /* a soft cream halo keeps the small text readable where it lies over the photo */
  .lead { grid-area:lead; margin-top:14px; font-size:.95rem; position:relative; z-index:2; text-shadow:0 0 4px var(--cream), 0 0 8px var(--cream), 0 0 12px var(--cream); }
  .cta { grid-area:cta; margin-top:24px; position:relative; z-index:2; }
  /* on the phone the facts lie over the photo, so they sit on a white card with the ink outline */
  .facts { grid-area:facts; margin-top:22px; margin-bottom:28px; position:relative; z-index:2; font-size:.9rem; padding:14px 16px; background:color-mix(in srgb, var(--white) 92%, transparent); border:2px solid var(--ink); border-radius:18px; color:var(--ink); }
  .photo { grid-column:2; grid-row:1 / 5; margin-top:64px; z-index:1; }
  .photo img { top:0; height:100%; }
}
.pill .btn.small { white-space:nowrap; }
@media (max-width:380px) { .pill { padding-left:16px; gap:10px; } .pill .btn.small { padding:0 12px; font-size:.85rem; } }

/* ---------- shared for the screens below the first one ---------- */
.sec { padding:clamp(40px, 5vw, 72px) 0; scroll-margin-top:90px; }
.wrap { max-width:80rem; margin:0 auto; padding:0 clamp(1.25rem,5vw,3rem); }
.sec h2 { font:600 clamp(1.8rem, 1.15rem + 2.2vw, 2.9rem)/1.08 var(--font-head); text-transform:uppercase; max-width:22ch; }
.sec .intro { margin-top:18px; max-width:40rem; font-size:1.1rem; line-height:1.6; color:var(--ink-muted); }
.dark { background:var(--cobalt); color:var(--cream); }
.dark .intro { color:var(--lav); }
.compact { padding:clamp(40px,5vw,64px) 0; }
.compact h2 { font-size:clamp(1.6rem, 1.1rem + 1.8vw, 2.4rem); max-width:none; }
/* cards on a dark base: the face lifts on hover */
.lift { position:relative; border-radius:22px; background:var(--ink); padding-bottom:6px; }
.lift .face { position:relative; height:100%; border-radius:22px; background:var(--white); border:2px solid var(--ink); padding:26px; transform:translateY(-4px); transition:transform .2s var(--ease); }
@media (hover:hover) { .lift:hover .face { transform:translateY(-10px); } }
.lift h3 { font:700 1.15rem/1.3 var(--font-body); }
.lift p { margin-top:8px; color:var(--ink-muted); line-height:1.55; }
.emo { display:block; font-size:2rem; line-height:1; margin-bottom:16px; }
/* breathing dot field behind a screen (quiz, FAQ) */
.dotted { position:relative; overflow:hidden; }
.dotted > .wrap { position:relative; z-index:1; }
.dots-bg { position:absolute; inset:0; width:100%; height:100%; display:block; pointer-events:none; z-index:0; }

/* ---------- quiz: second screen, one question at a time, the answer moves on by itself ---------- */
.quiz-sec h2 { max-width:none; }
/* the intro lies over the cream dot field: cream and heavier, so it stands out from the dots (Miru, 2026-11-16) */
.quiz-sec .intro { color:var(--cream); font-weight:500; max-width:none; }
.quiz { margin-top:32px; max-width:46rem; background:var(--white); color:var(--ink); border:2px solid var(--ink); border-radius:22px; box-shadow:0 6px 0 var(--ink); padding:clamp(20px,3.5vw,32px); }
.q-top { display:flex; justify-content:space-between; align-items:center; min-height:28px; }
.q-back { background:none; border:0; padding:0; font:600 .95rem/1 var(--font-body); color:var(--indigo); cursor:pointer; }
.q-back[hidden] { display:block; visibility:hidden; }
.q-count { font:600 .95rem/1 var(--font-body); color:var(--ink-muted); }
.q-track { position:relative; margin:12px 0 22px; }
.q-bar { height:10px; border:2px solid var(--ink); border-radius:999px; background:var(--cream); overflow:hidden; }
/* the fill grows by scaleX, not by width (Spec: motion only through transform and opacity) */
.q-bar span { display:block; height:100%; background:var(--red); transform:scaleX(.25); transform-origin:left center; transition:transform .8s var(--ease-io); }
.q-step .q { font:700 1.2rem/1.35 var(--font-body); margin-bottom:16px; }
.opts { display:grid; gap:10px; }
.opt { text-align:left; font:500 1rem/1.4 var(--font-body); color:var(--ink); background:var(--cream); border:2px solid var(--ink); border-radius:14px; padding:14px 18px; cursor:pointer; transition:transform .15s var(--ease); }
@media (hover:hover) { .opt:hover { background:var(--lav); transform:translateY(-2px); } }
.opt.on { background:var(--lav); }
.opt:focus-visible, .q-back:focus-visible { outline:3px solid var(--indigo); outline-offset:2px; }
.q-email h3, .q-done h3 { font:700 1.2rem/1.3 var(--font-body); color:var(--ink); }
.q-email p { margin-top:8px; color:var(--ink-muted); line-height:1.5; }
.q-send { margin-top:18px; display:flex; flex-wrap:wrap; gap:14px; align-items:center; }
.q-send input { flex:1 1 220px; font:400 1rem/1.5 var(--font-body); color:var(--ink); background:var(--cream); border:2px solid var(--ink); border-radius:12px; padding:12px 14px; }
.q-send input:focus { outline:3px solid var(--indigo); outline-offset:1px; }
.q-priv { display:inline-block; margin-top:1.5em; font-size:.9rem; color:var(--indigo); text-underline-offset:3px; }
.q-done h3 { margin-bottom:8px; }
.q-done p { font:600 1.1rem/1.5 var(--font-body); color:var(--indigo); }
.hp { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
/* all quiz steps share one grid cell, so the card always has the height of the tallest step and does not jump (Miru, 2026-11-16) */
.q-steps { display:grid; }
.q-steps > .q-step { grid-area:1 / 1; }
.q-steps > .q-step[hidden] { display:block; visibility:hidden; }
/* questions 1-3 share one height; the email step and the thank-you text are not part of it, and on them the card shrinks to its content (Miru, 2026-11-16) */
.q-steps > .q-email[hidden], .q-steps > .q-done[hidden], .quiz.short .q-steps > .q-step[hidden] { display:none; }
/* email step: the bar stops short of the end and pulses; Send fills it and gives one strong last pulse with a ring */
.q-bar.wait span { animation:qWait 1.4s ease-in-out infinite; }
@keyframes qWait { 0%,100% { opacity:1; } 50% { opacity:.55; } }
.q-track.burst .q-bar { animation:qBurst .7s var(--ease); }
@keyframes qBurst { 0% { transform:scaleY(1); } 30% { transform:scaleY(1.6); } 100% { transform:scaleY(1); } }
.q-track::after { content:""; position:absolute; inset:-2px; border:3px solid var(--red); border-radius:999px; opacity:0; pointer-events:none; }
.q-track.burst::after { animation:qRing .7s var(--ease); }
@keyframes qRing { 0% { opacity:.7; transform:scale(1,1); } 100% { opacity:0; transform:scale(1.04,3.4); } }

/* ---------- workflow block: manual work on the left, automation in the middle, result on the right ---------- */
.flow-holder { margin-bottom:clamp(56px, 7vw, 96px); display:flex; justify-content:center; }
.flow { position:relative; width:min(940px,100%); display:grid; grid-template-columns:260px 1fr 150px 1fr 110px; grid-template-areas:"inputs . bot . out"; align-items:center; }
.wires { position:absolute; inset:0; width:100%; height:100%; overflow:visible; pointer-events:none; }
.col { grid-area:inputs; position:relative; z-index:1; }
.col-title, .node .cap { font:600 1.05rem/1 var(--font-head); text-transform:uppercase; letter-spacing:.04em; }
.col-title { margin:0 0 14px 4px; }
.col ul { list-style:none; padding:0; display:grid; gap:12px; }
.src { display:flex; align-items:center; gap:12px; height:52px; padding:0 16px; background:var(--white); border:2px solid var(--ink); border-radius:16px; font-weight:600; font-size:.98rem; }
.src .ico { font-size:1.3rem; line-height:1; }
.src.other { background:transparent; border-style:dashed; color:var(--ink-muted); }
.node { position:relative; z-index:1; display:grid; place-items:center; gap:10px; text-align:center; }
.bot { grid-area:bot; }
.out { grid-area:out; }
.tile { position:relative; display:grid; place-items:center; border:2px solid var(--ink); background:var(--white); border-radius:24px; line-height:1; }
.bot .tile { width:150px; height:150px; font-size:76px; background:var(--lav); box-shadow:0 6px 0 var(--ink); }
.out .tile { width:110px; height:110px; font-size:54px; box-shadow:0 5px 0 var(--ink); }
/* the rocket answers each big dot: it swells, and a red ring runs out from it */
.out .tile::after { content:""; position:absolute; inset:-2px; border:3px solid var(--red); border-radius:inherit; opacity:0; pointer-events:none; }
.out .tile.pulse { animation:pulse .6s var(--ease); }
.out .tile.pulse::after { animation:ring .6s var(--ease); }
@keyframes pulse { 0% { transform:scale(1); } 35% { transform:scale(1.12); } 100% { transform:scale(1); } }
@keyframes ring { 0% { opacity:.55; transform:scale(1); } 100% { opacity:0; transform:scale(1.45); } }

/* ---------- screen: where does your week go ---------- */
.cost-top { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:clamp(2rem,5vw,5rem); align-items:start; }
.compare { display:grid; gap:14px; }
.compare div { border:2px solid var(--ink); border-radius:22px; padding:22px 24px; line-height:1.55; }
.compare b { display:block; font:600 1.05rem/1.2 var(--font-head); text-transform:uppercase; letter-spacing:.03em; margin-bottom:6px; }
.compare .before { background:transparent; border-style:dashed; color:var(--ink-muted); }
.compare .before b { color:var(--ink); }
.compare .after { background:var(--lav); }

/* ---------- cost calculator: full-width cobalt band ---------- */
.calc { padding:clamp(40px,5vw,64px) 0; scroll-margin-top:90px; }
.calc-panel h2 { font:600 clamp(1.6rem, 1.1rem + 1.8vw, 2.4rem)/1.08 var(--font-head); text-transform:uppercase; }
.calc .grid { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:clamp(2rem,5vw,5rem); align-items:center; margin-top:28px; }
.calc .slider + .slider { margin-top:30px; }
.calc .slider label { display:flex; justify-content:space-between; gap:12px; font-weight:600; margin-bottom:14px; }
.calc .slider output { font:600 1.25rem/1 var(--font-head); color:var(--peach); }
.calc input[type=range] { -webkit-appearance:none; appearance:none; width:100%; height:12px; border-radius:999px; border:2px solid var(--ink); background:linear-gradient(90deg, var(--red) 0 var(--p,50%), var(--cream) var(--p,50%) 100%); cursor:pointer; }
.calc input[type=range]::-webkit-slider-thumb { -webkit-appearance:none; width:30px; height:30px; border-radius:50%; background:var(--red); border:3px solid var(--cream); box-shadow:0 0 0 2px var(--ink); }
.calc input[type=range]::-moz-range-thumb { width:26px; height:26px; border-radius:50%; background:var(--red); border:3px solid var(--cream); box-shadow:0 0 0 2px var(--ink); }
.calc input[type=range]:focus-visible { outline:3px solid var(--lav); outline-offset:4px; }
.calc .total { background:var(--white); color:var(--ink); border:2px solid var(--ink); border-radius:22px; box-shadow:0 6px 0 var(--ink); padding:30px; }
.calc .total span { display:block; font-weight:600; color:var(--ink-muted); }
.calc .total b { display:block; margin-top:6px; font:600 clamp(2.8rem, 2rem + 3vw, 4.4rem)/1 var(--font-head); color:var(--red-text); }
.calc .total small { display:block; margin-top:10px; color:var(--ink-muted); }
.calc .cta-row { margin-top:30px; display:flex; flex-wrap:wrap; align-items:center; gap:14px 24px; }
.calc .cta-row p { color:var(--cream); font-weight:600; }
@media (min-width:721px) { .calc .cta-row p { white-space:nowrap; } .calc .cta-row p br { display:none; } }

/* ---------- screen: practical areas ---------- */
.areas { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:26px; margin-top:44px; }

/* ---------- self-check, dark: one checklist card, the line and the button on the right ---------- */
.check-card { margin-top:28px; max-width:46rem; background:var(--white); color:var(--ink); border:2px solid var(--ink); border-radius:22px; box-shadow:0 6px 0 var(--ink); padding:10px 0; }
.check-card label { display:flex; gap:18px; align-items:flex-start; padding:18px 26px; cursor:pointer; font-size:1.08rem; line-height:1.5; }
.check-card label + label { border-top:2px dashed var(--ink-line); }
.check-card input { appearance:none; -webkit-appearance:none; flex:none; width:30px; height:30px; margin:0; border:2px solid var(--ink); border-radius:8px; background:var(--white); display:grid; place-items:center; cursor:pointer; }
.check-card input::after { content:""; width:8px; height:15px; border-right:3px solid var(--white); border-bottom:3px solid var(--white); transform:rotate(45deg) translate(-1px,-2px) scale(0); transition:transform .18s var(--ease); }
.check-card input:checked { background:var(--red); }
.check-card input:checked::after { transform:rotate(45deg) translate(-1px,-2px) scale(1); }
.check-card input:focus-visible { outline:3px solid var(--indigo); outline-offset:2px; }
.selfcheck-end { margin-top:30px; display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:18px 40px; }
.selfcheck-end p { position:relative; top:-8px; text-align:right; font-size:1.1rem; font-weight:600; }
@media (min-width:721px) { .selfcheck-end p { white-space:nowrap; } }

/* ---------- about: photo next to the text, an ink line under it ---------- */
.person-top { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); gap:clamp(2rem,5vw,5rem); align-items:end; border-bottom:2px solid var(--ink); }
.person-top > div:first-child { padding-bottom:48px; }
.person-top .intro + .intro { margin-top:14px; }
.about-photo { position:relative; display:grid; justify-items:center; }
.about-photo img { width:min(100%, 250px); height:auto; display:block; }
.about-photo .stat { position:absolute; left:0; bottom:28px; background:var(--white); border:2px solid var(--ink); border-radius:18px; box-shadow:0 5px 0 var(--ink); padding:14px 18px; }
.stat b { display:block; font:600 clamp(2.6rem, 2rem + 2vw, 3.6rem)/1 var(--font-head); color:var(--indigo); }
.stat span { display:block; margin-top:8px; font-weight:600; font-size:.88rem; max-width:11rem; }
.systems-title { margin-top:52px; font:600 1.05rem/1.2 var(--font-head); text-transform:uppercase; letter-spacing:.04em; }
.systems { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:26px; margin-top:20px; }
.systems .face { padding:0; overflow:hidden; display:flex; flex-direction:column; }
.systems .txt { padding:20px 24px 24px; }
/* system cards: small schemes in the style of the workflow block */
.mini { display:flex; align-items:flex-start; justify-content:center; padding:30px 16px 8px; background:var(--cream); border-bottom:2px solid var(--ink); min-height:150px; }
.mini .n { display:grid; justify-items:center; gap:8px; width:64px; }
.mini .t { width:52px; height:52px; display:grid; place-items:center; font-size:26px; line-height:1; background:var(--white); border:2px solid var(--ink); border-radius:14px; box-shadow:0 3px 0 var(--ink); }
.mini .t.ai { background:var(--lav); }
.mini small { font-size:.72rem; font-weight:600; color:var(--ink-muted); text-align:center; line-height:1.2; }
.mini i { flex:1; min-width:10px; max-width:34px; margin-top:26px; border-top:2px dashed var(--ink); position:relative; }
.mini i::after { content:""; position:absolute; right:-1px; top:-6px; width:7px; height:7px; border-top:2px solid var(--ink); border-right:2px solid var(--ink); transform:rotate(45deg); }

/* ---------- how we work ---------- */
.steps { list-style:none; padding:0; display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:26px; margin-top:48px; position:relative; }
.steps::before { content:""; position:absolute; top:22px; left:22px; right:calc((100% - 78px) / 4 - 22px); border-top:2px dashed var(--ink); opacity:.35; }
.steps li { position:relative; }
.steps .num { display:grid; place-items:center; width:46px; height:46px; border-radius:50%; background:var(--red-text); color:var(--white); border:2px solid var(--ink); font:600 1.25rem/1 var(--font-head); margin-bottom:18px; }
/* step numbers turn indigo on hover */
@media (hover:hover) { .steps .num:hover { background:var(--indigo); } }
.steps h3 { font:700 1.1rem/1.3 var(--font-body); }
.steps p { margin-top:8px; color:var(--ink-muted); line-height:1.55; }
.terms { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:26px; margin-top:56px; }
.terms .guarantee .face { background:var(--lav); }
.terms ul { margin:10px 0 0; padding-left:18px; color:var(--ink-muted); line-height:1.55; display:grid; gap:8px; }
.terms .guarantee ul { color:var(--ink); }

/* ---------- FAQ, over a breathing dot field (no mouse trail) ---------- */
.faq-wrap { max-width:54rem; }
.faq { display:grid; gap:10px; margin-top:40px; }
.faq details { border:2px solid var(--ink); border-radius:12px; background:var(--white); }
.faq details[open] { background:var(--lav); }
.faq summary { list-style:none; cursor:pointer; display:flex; justify-content:space-between; align-items:center; gap:16px; padding:18px 22px; font-weight:700; font-size:1.05rem; }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after { content:""; flex:none; width:10px; height:10px; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(45deg) translateY(-3px); transition:transform .2s var(--ease); }
.faq details[open] summary::after { transform:rotate(-135deg) translateY(-3px); }
.faq details p { padding:0 22px 20px; line-height:1.6; }

/* ---------- final call: form left, direct email right; on phones the email goes under the form ---------- */
#contact { scroll-margin-top:calc(100px - clamp(40px,5vw,64px)); }
.final { text-align:center; }
.final h2 { margin:0 auto; }
.contact-grid { margin-top:28px; display:grid; grid-template-columns:minmax(0,40rem) minmax(0,1fr); gap:clamp(24px,4vw,56px); align-items:center; text-align:left; }
.form-card { margin:0; max-width:40rem; text-align:left; background:var(--white); color:var(--ink); border:2px solid var(--ink); border-radius:22px; box-shadow:0 6px 0 var(--ink); padding:clamp(22px,4vw,34px); display:grid; gap:18px; }
.form-card label { display:grid; gap:8px; font-weight:600; }
.form-card input, .form-card textarea { font:400 1rem/1.5 var(--font-body); color:var(--ink); background:var(--cream); border:2px solid var(--ink); border-radius:12px; padding:12px 14px; width:100%; }
.form-card textarea { min-height:170px; resize:vertical; }
.form-card input:focus, .form-card textarea:focus { outline:3px solid var(--indigo); outline-offset:1px; }
.form-card .send { display:flex; flex-direction:column; align-items:flex-start; gap:12px; margin-top:4px; }
.form-card .micro { color:var(--ink-muted); font-size:.92rem; line-height:1.5; }
.form-card .micro b { color:var(--ink); }
.form-card .priv { margin-top:1.4em; font-size:.9rem; color:var(--indigo); text-underline-offset:3px; }
.form-card .sent { display:none; font-weight:600; color:var(--indigo); }
.direct { justify-self:center; text-align:center; }
.direct p { color:var(--cream); font-weight:600; font-size:1.05rem; }
.mail-icons { margin-top:14px; display:flex; justify-content:center; gap:14px; }
.mail-tile { text-decoration:none; display:grid; place-items:center; width:52px; height:52px; border-radius:12px; background:var(--cream); color:var(--cobalt); border:2px solid var(--ink); box-shadow:0 4px 0 var(--ink); transition:transform .16s var(--ease); }
@media (hover:hover) { .mail-tile:hover { transform:translateY(-3px); } }
.direct a.mail-addr { display:inline-block; margin-top:14px; color:var(--cream); font:600 1.2rem/1.3 var(--font-body); text-underline-offset:4px; word-break:break-word; }
.direct .mail-note { display:block; margin:12px auto 0; font-size:.85rem; line-height:1.45; color:var(--lav); opacity:.85; }
.final .outro { margin:60px auto 0; color:var(--cream); font:600 1rem/1.5 var(--font-body); }
@media (min-width:901px) { .final .outro { white-space:nowrap; } }
/* below 901 px the direct email goes under the form: next to it the address and the note do not fit */
@media (max-width:900px) { .contact-grid { grid-template-columns:1fr; } }

/* ---------- footer: quiet, same grid as the page; brand left, LinkedIn right, a thin closing line with (c) and Privacy ---------- */
.foot { padding:44px 0 28px; }
.foot-top { display:flex; justify-content:space-between; align-items:flex-start; gap:24px 40px; flex-wrap:wrap; }
.foot-brand img { height:34px; width:auto; display:block; }
.foot .motto { margin-top:14px; font-size:.95rem; line-height:1.5; color:var(--ink-muted); }
.foot a.li { display:inline-flex; align-items:center; gap:10px; min-height:44px; padding:0 16px; border:2px solid var(--ink); border-radius:999px; background:var(--white); color:var(--ink); font:600 .95rem/1 var(--font-body); text-decoration:none; transition:transform .16s var(--ease); }
@media (hover:hover) { .foot a.li:hover { transform:translateY(-2px); } }
.foot .li-mark { fill:var(--linkedin); }
.foot-bottom { margin-top:32px; padding-top:18px; border-top:1px solid var(--ink-line); display:flex; justify-content:space-between; gap:16px; font-size:.85rem; color:var(--ink-muted); }
.foot-bottom a { color:var(--ink-muted); }
@media (hover:hover) { .foot-bottom a:hover { color:var(--indigo); } }

/* ---------- narrower screens ---------- */
@media (max-width:980px) {
  .areas, .systems { grid-template-columns:repeat(2, minmax(0,1fr)); }
  .steps { grid-template-columns:repeat(2, minmax(0,1fr)); row-gap:36px; }
  .steps::before { display:none; }
}
@media (max-width:720px) {
  .cost-top, .terms, .calc .grid { grid-template-columns:1fr; }
  .areas, .systems, .steps { grid-template-columns:1fr; }
  .lift .face { padding:22px; }
  .systems .face { padding:0; }
  .foot-top { flex-direction:column; }
  .foot a.li { align-self:flex-end; }

  /* about on phones: like the first screen - heading on top, text left, the photo on the right down to the line;
     the text column ends before the photo starts, so no line lies on the dark jacket (Miru, 2026-11-16) */
  .person-top { position:relative; grid-template-columns:minmax(0,1fr) 48%; gap:0; }
  /* the photo goes a little past the right edge of the screen; the part outside is cut off, the page does not scroll sideways */
  #about { overflow-x:clip; }
  .person-top > div:first-child, .about-photo { display:contents; }
  .person-top h2 { grid-column:1 / -1; grid-row:1; padding-bottom:6px; }
  .person-top .intro { grid-column:1; position:relative; z-index:2; font-size:.95rem; padding-right:4px; text-shadow:0 0 4px var(--cream), 0 0 8px var(--cream), 0 0 12px var(--cream); }
  .person-top .intro:nth-of-type(1) { grid-row:2; }
  .person-top .intro:nth-of-type(2) { grid-row:3; }
  .about-photo .stat { grid-column:1; grid-row:4; position:relative; left:auto; bottom:auto; z-index:2; margin:18px 0 24px; justify-self:start; }
  /* the photo box starts exactly where the text column ends, so at any width no line can reach the photo */
  .about-photo img { position:absolute; right:-34px; bottom:0; height:calc(100% - var(--h2h, 120px)); width:calc(48% + 34px); object-fit:contain; object-position:right bottom; z-index:1; }
  .mini { padding:24px 10px 8px; }
  .mini .n { width:54px; }
  .mini .t { width:44px; height:44px; font-size:22px; border-radius:12px; }
  .mini i { margin-top:22px; min-width:6px; }

  /* workflow on phones: vertical - categories in two columns on top, wires run down the gap between them into the robot, the rocket below */
  .flow { grid-template-columns:1fr; grid-template-areas:"inputs" "bot" "out"; row-gap:0; justify-items:center; }
  .col { width:100%; }
  .col-title { text-align:center; margin-left:0; font-size:.95rem; }
  .col ul { grid-template-columns:1fr 1fr; column-gap:76px; row-gap:10px; }
  .src { height:46px; padding:0 10px; font-size:.84rem; gap:7px; border-radius:14px; }
  .src .ico { font-size:1.05rem; }
  .bot { margin-top:72px; }
  .out { margin-top:52px; }
  .bot .tile { width:110px; height:110px; font-size:56px; border-radius:22px; }
  .out .tile { width:86px; height:86px; font-size:42px; border-radius:18px; }
  .node .cap { font-size:.95rem; }
}
/* very narrow phones: a slightly tighter gap and lanes so the cards keep room for their names */
@media (max-width:360px) {
  .col ul { column-gap:62px; }
  .src { padding:0 8px; font-size:.8rem; gap:6px; }
}

/* ---------- privacy page (/privacy): one readable column under the header ---------- */
.policy { padding:132px 0 clamp(48px,6vw,80px); }
.policy .wrap { max-width:46rem; }
.policy h1 { font:600 clamp(2rem,1.1rem + 2.6vw,3.4rem)/1.06 var(--font-head); text-transform:uppercase; }
.policy .updated { margin-top:12px; color:var(--ink-muted); font-size:.95rem; }
.policy h2 { margin-top:40px; font:600 clamp(1.3rem,1rem + 1vw,1.7rem)/1.15 var(--font-head); text-transform:uppercase; }
.policy p, .policy ul { margin-top:14px; font-size:1.05rem; line-height:1.65; color:var(--ink-muted); }
.policy ul { padding-left:20px; display:grid; gap:8px; }
.policy a { color:var(--indigo); text-underline-offset:3px; word-break:break-word; }
.policy + .foot { border-top:2px solid var(--ink); }
@media (max-width:900px) { .policy { padding-top:110px; } }

/* "Reduce motion" in the system settings: nothing moves, colours still change at once */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after { transition:none !important; animation:none !important; }
}
