/* =============================================================================
   Studiotaku home page. Plain CSS, written out in full so you can read and change it.
   Colours are the variables at the top; light and dark follow the visitor's system.
   ============================================================================= */

:root {
  color-scheme: light dark;
  --paper: #F6F2FD;
  --surface: #FFFFFF;
  --tint: #EEE8FA;
  --ink: #181A2C;
  --mute: #555874;
  --line: #DCD5EE;
  --acc: #C4025F;
  --seg: #DCE3FB;
  --shadow: 0 1px 2px rgba(24, 26, 44, .08), 0 24px 48px -28px rgba(60, 30, 120, .45);
  --grad: linear-gradient(135deg, #D60270, #9B4F96 50%, #0038A8);
  --head: Figtree, Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121318;
    --surface: #1B1C24;
    --tint: #1F2030;
    --ink: #EDEBF7;
    --mute: #A9A8BD;
    --line: #2E2F3B;
    --acc: #FF7FB6;
    --seg: #4A4C69;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 24px 48px -28px rgba(0, 0, 0, .9);
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 var(--body);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--acc);
  text-underline-offset: 3px;
}

p,
ul,
ol,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--head);
  font-weight: 800;
  letter-spacing: -.03em;
  text-wrap: balance;
}

:focus-visible {
  outline: 3px solid var(--acc);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 10px;
}

.skip:focus {
  top: 12px;
}

/* ---- top bar ---- */
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.top .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font: 800 20px/1 var(--head);
  letter-spacing: -.02em;
}

.logo {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--grad);
}

.beta {
  font: 700 12px/1 var(--body);
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--acc);
  color: var(--acc);
}

.top nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.top nav a {
  color: var(--mute);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 10px;
}

.top nav a:hover {
  color: var(--ink);
  background: var(--tint);
}

.open,
.login {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: 9px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
}

.open:hover,
.login:hover {
  border-color: var(--acc);
  color: var(--acc);
}

/* ---- the big button ---- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 0 36px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  text-decoration: none;
  font: 700 clamp(17px, 2.4vw, 20px)/1.2 var(--head);
  letter-spacing: -.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 16px 16px -14px rgba(255, 255, 255, .2), 0 14px 30px -14px rgba(160, 20, 110, .75);
  transition: transform .15s, box-shadow .15s;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .62), inset 0 16px 16px -14px rgba(255, 255, 255, .22), 0 20px 36px -16px rgba(160, 20, 110, .8);
}

.cta:active {
  transform: translateY(0) scale(.98);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .3), inset 0 -1px 0 rgba(255, 255, 255, .3), 0 4px 10px -6px rgba(160, 20, 110, .7);
  transition-duration: .06s;
}

.cta.small {
  min-height: 48px;
  padding: 0 26px;
  font-size: 16px;
}

.cta-row {
  display: flex;
  justify-content: center;
}

.note {
  color: var(--mute);
  font-size: 15px;
}

/* ---- hero ---- */
.hero {
  text-align: center;
  padding: clamp(48px, 8vw, 104px) 0 0;
  overflow: hidden;
}

.hero h1 {
  font-size: clamp(2.7rem, 7.4vw, 5.6rem);
  line-height: 1;
  max-width: 13em;
  margin: 0 auto;
}

.hero .lead {
  max-width: 36em;
  margin: 26px auto 0;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: var(--mute);
}

.hero .cta-row {
  margin-top: 38px;
}

.hero .note {
  margin-top: 14px;
}

.route {
  list-style: none;
  padding: 0;
  margin: 34px auto 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 26px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--mute);
}

.route li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.route i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--acc);
  background: var(--acc);
  animation: fill .45s ease-out both;
}

.route li:nth-child(1) i {
  animation-delay: .4s;
}

.route li:nth-child(2) i {
  animation-delay: .56s;
}

.route li:nth-child(3) i {
  animation-delay: .72s;
}

.route li:nth-child(4) i {
  animation-delay: .88s;
}

.route li:nth-child(5) i {
  animation-delay: 1.04s;
}

@keyframes fill {
  from {
    background: transparent;
    transform: scale(.7);
  }
  to {
    background: var(--acc);
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .route i {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
  .cta {
    transition: none;
  }
  .cta:hover,
  .cta:active {
    transform: none;
  }
}

/* ---- screenshots in frames ---- */
.frame {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.frame img {
  width: 100%;
}

figcaption {
  padding: 12px 18px;
  font-size: 14px;
  color: var(--mute);
  border-top: 1px solid var(--line);
  text-align: left;
}

.hero-shot {
  margin: 56px auto 0;
  max-width: 1040px;
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  max-height: 560px;
  -webkit-mask-image: linear-gradient(#000 78%, transparent);
  mask-image: linear-gradient(#000 78%, transparent);
}

/* ---- sections ---- */
.sec,
.beta-sec,
.final,
.noai {
  padding: clamp(60px, 9vw, 116px) 0;
}

.alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

h2 {
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  line-height: 1.04;
  max-width: 17em;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.intro {
  margin-top: 20px;
  max-width: 38em;
  font-size: 1.12rem;
  color: var(--mute);
}

/* the statement band: the one loud thing on the page (it flips colours in dark mode) */
.noai {
  background: var(--ink);
  color: var(--paper);
}

.noai h2 {
  max-width: 14em;
  font-size: clamp(2.2rem, 5.6vw, 4.2rem);
}

.noai p {
  margin-top: 24px;
  max-width: 40em;
  font-size: 1.18rem;
  color: color-mix(in srgb, var(--paper) 78%, transparent);
}

/* "Why is it free?": a quiet card straight under the loud band; the left side says why, the right side lists what you can check */
.free {
  padding: clamp(40px, 6vw, 72px) 0 0;
}

.free-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: clamp(28px, 4vw, 48px) clamp(22px, 4vw, 44px) clamp(24px, 4vw, 44px);
}

.free-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: var(--grad);
}

.free h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  max-width: 16em;
}

.free-t p {
  margin-top: 16px;
  max-width: 34em;
  color: var(--mute);
}

.free-t h2 + p {
  margin-top: 18px;
}

.free-c {
  background: var(--tint);
  border-radius: 14px;
  padding: clamp(18px, 2.4vw, 26px);
}

.free-c h3 {
  font-size: 1.15rem;
}

.free-c .tick {
  margin-top: 16px;
  gap: 11px;
  font-size: 16px;
}

/* "We have an ADHD mode too.": a small card that only hints. On a mouse the heading gives one short shake when you point at it (off with reduced motion). */
.adhd {
  padding: clamp(48px, 7vw, 88px) 0;
}

.adhd-card {
  position: relative;
  overflow: hidden;
  max-width: 46rem;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: clamp(28px, 4vw, 44px) clamp(22px, 4vw, 44px) clamp(26px, 4vw, 40px);
}

.adhd-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: var(--grad);
}

.adhd h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  max-width: 16em;
}

.adhd-card p {
  margin-top: 16px;
  max-width: 34em;
  color: var(--mute);
}

@keyframes adhd-shake {
  0%, 100% {
    transform: translate(0, 0);
  }
  18% {
    transform: translate(3px, -2px);
  }
  38% {
    transform: translate(-3px, 2px);
  }
  58% {
    transform: translate(2px, 1px);
  }
  78% {
    transform: translate(-1px, -1px);
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .adhd-card:hover h2 {
    animation: adhd-shake .34s ease-in-out 1;
  }
}

/* workflow: five steps, each with its own row of dots (the same dots the app shows on every video) */
.steps {
  list-style: none;
  padding: 0;
  margin: 56px 0 0;
}

.step {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.step:last-child {
  padding-bottom: 0;
}

/* a gentle staircase around the middle: the third step stays exactly where it always was (centred), the first sits two notches to the left of
   it and the last two notches to the right. The rows keep their full size. Only where the window has room on both sides: nothing up to 1120 px,
   then the notch grows (20 px at 1200, 40 px at 1280) up to 44 px from 1296 px. The outermost step never gets closer than 24 px to the window's edge.
   Never on a phone: besides the window width it asks for a screen that really is wide (min-device-width) and for a mouse or trackpad (hover),
   so a phone that shows the page in "desktop site" mode, with a wide layout, still gets the plain list. */

@media (min-width: 1121px) and (min-device-width: 1024px) and (hover: hover) {
  .steps {
    --st: clamp(0px, calc((100vw - 1120px) / 4), 44px);
  }
  .step {
    position: relative;
  }
  .step:nth-child(1) {
    left: calc(var(--st) * -2);
  }
  .step:nth-child(2) {
    left: calc(var(--st) * -1);
  }
  .step:nth-child(4) {
    left: var(--st);
  }
  .step:nth-child(5) {
    left: calc(var(--st) * 2);
  }
}

.dots {
  display: inline-flex;
  gap: 7px;
  margin-bottom: 18px;
}

.dots i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--acc);
}

.dots i.f {
  background: var(--acc);
}

.step-t p {
  margin-top: 12px;
  max-width: 30em;
  color: var(--mute);
}

/* how it helps */
.help {
  list-style: none;
  padding: 0;
  margin: 56px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 44px;
}

.help li {
  padding: 26px 0 30px;
  border-top: 1px solid var(--line);
}

.help p {
  margin-top: 8px;
  color: var(--mute);
  font-size: 16px;
}

.wide {
  margin: 44px 0 0;
}

/* A/B versions and prompter */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

/* A/B demo (no script: the two radio buttons come first, the CSS reacts to the one that is checked) */
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.abdemo {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.abwin {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 26px);
  display: grid;
  gap: 16px;
}

.abt {
  font: 800 clamp(24px, 3.2vw, 32px)/1.1 var(--head);
  letter-spacing: -.03em;
}

/* the box: A on the left, B on the right. The version that is not showing waits at its side as the first one or two letters of every line, faded, next to a thin line.
   One strip holds A, the line and B; a click slides the whole strip over (about half a second), so the text and the line move together. */

.abbox {
  --g: 44px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--tint);
  border-radius: 14px;
  padding: 12px 16px 16px;
}

.abhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.abl {
  font: 600 12px/1 var(--body);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mute);
}

.abpill {
  --e-top: rgba(255, 255, 255, .95);
  --e-top-hi: #fff;
  --e-side: rgba(255, 255, 255, .55);
  --e-fill: rgba(255, 255, 255, .85);
  --e-shade: rgba(20, 27, 58, .17);
  --e-lift: rgba(20, 27, 58, .30);
  --e-press: rgba(20, 27, 58, .22);
  --e-flip: rgba(255, 255, 255, .95);
  --e-div: var(--line);
  display: inline-flex;
  border: 1px solid var(--mute);
  border-color: var(--e-side) var(--e-side) transparent var(--e-side);
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(var(--seg), var(--seg)) 0 0 / 50% 100% no-repeat var(--e-fill);
  background-origin: border-box;
  box-shadow: inset 0 1px 0 var(--e-top), 0 1px 2px var(--e-shade);
  transition: background-position .26s cubic-bezier(.2, .8, .2, 1), box-shadow .18s;
}

@media (prefers-color-scheme: dark) {
  .abpill {
    --e-top: rgba(255, 255, 255, .46);
    --e-top-hi: rgba(255, 255, 255, .7);
    --e-side: rgba(255, 255, 255, .08);
    --e-fill: rgba(255, 255, 255, .035);
    --e-shade: rgba(0, 0, 0, 0);
    --e-lift: rgba(0, 0, 0, .7);
    --e-press: rgba(0, 0, 0, .5);
    --e-flip: rgba(255, 255, 255, .16);
    --e-div: rgba(255, 255, 255, .12);
  }
}

@media (hover: hover) {
  .abpill:hover {
    box-shadow: inset 0 1px 0 var(--e-top-hi), 0 1px 2px var(--e-shade), 0 6px 14px -6px var(--e-lift);
  }
}

.abpill:active {
  box-shadow: inset 0 2px 5px var(--e-press), inset 0 -1px 0 var(--e-flip);
}

#ab-b:checked ~ .abwin .abpill {
  background-position: 100% 0;
}

.abpill label {
  width: 56px;
  min-height: 44px;
  display: grid;
  place-items: center;
  font: 700 16px/1 var(--body);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.abpill label + label {
  border-left: 1px solid var(--e-div);
}

#ab-a:checked ~ .abwin .abpill label[for="ab-b"]:hover,
#ab-b:checked ~ .abwin .abpill label[for="ab-a"]:hover {
  background: var(--surface);
}

#ab-a:focus-visible ~ .abwin .abpill label[for="ab-a"],
#ab-b:focus-visible ~ .abwin .abpill label[for="ab-b"] {
  outline: 3px solid var(--acc);
  outline-offset: -3px;
}

.abbox p {
  font-size: 17.5px;
  line-height: 1.6;
}

.abwv {
  position: relative;
}

.abstrip {
  position: relative;
  display: grid;
  grid-template-columns: calc(100% - var(--g)) calc(100% - var(--g));
  column-gap: 32px;
  transition: transform .42s cubic-bezier(.22, .75, .22, 1);
}

.abstrip > p {
  grid-row: 1;
  margin: 0;
}

.sa {
  grid-column: 1;
  opacity: 1;
  transition: opacity .21s linear;
}

.sb {
  grid-column: 2;
  opacity: .5;
  transition: opacity .29s linear;
}

.abline {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(100% - var(--g) + 16px);
  width: 1px;
  background: color-mix(in srgb, var(--mute) 45%, transparent);
  opacity: .5;
  transition: opacity .42s linear;
}

.sha {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(100% - var(--g));
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: none;
  clip-path: inset(0 calc(100% - var(--g) + 24px) 0 0);
  -webkit-mask-image: linear-gradient(90deg, #000 calc((var(--g) - 24px) * .45), transparent calc(var(--g) - 24px));
  mask-image: linear-gradient(90deg, #000 calc((var(--g) - 24px) * .45), transparent calc(var(--g) - 24px));
}

.abfade {
  position: absolute;
  top: 0;
  bottom: 0;
  right: -16px;
  width: var(--g);
  background: linear-gradient(90deg, transparent 40%, var(--tint));
  pointer-events: none;
  opacity: 1;
  transition: opacity .13s linear .29s;
}

.abtap {
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--g);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.abtap.r {
  right: -16px;
}

.abtap.l {
  left: -16px;
  display: none;
}

#ab-b:checked ~ .abwin .abstrip {
  transform: translateX(calc(-100% + 2 * var(--g) - 32px));
}

#ab-b:checked ~ .abwin .sa {
  opacity: 0;
  transition: opacity .21s ease-in;
}

#ab-b:checked ~ .abwin .sb {
  opacity: 1;
  transition: opacity .21s linear;
}

#ab-b:checked ~ .abwin .abline {
  opacity: 1;
}

#ab-b:checked ~ .abwin .sha {
  opacity: .5;
  transition: opacity .19s ease-out .23s;
}

#ab-b:checked ~ .abwin .abfade {
  opacity: 0;
  transition: opacity .12s linear;
}

#ab-b:checked ~ .abwin .abtap.r {
  display: none;
}

#ab-b:checked ~ .abwin .abtap.l {
  display: block;
}

@media (max-width: 560px) {
  .abbox {
    --g: 42px;
  }
}

.abnext {
  color: var(--mute);
}

.abouts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.abo {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 14px 16px 16px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.abol {
  font: 600 13px/1.3 var(--body);
  color: var(--mute);
}

.abo p {
  font-size: 15.5px;
  line-height: 1.55;
}

.abo.pr {
  background: linear-gradient(90deg, color-mix(in srgb, var(--acc) 32%, transparent), transparent 40%), #14151C;
  border-color: #2E2F3B;
}

.abo.pr .abol {
  color: #A9A8BD;
}

.abo.pr p {
  color: #EDEBF7;
  font: 600 18px/1.45 var(--head);
  letter-spacing: -.01em;
}

.abhint {
  font-size: 15px;
  color: var(--mute);
  text-align: center;
}

/* the two versions sit on top of each other in one grid cell: the box keeps one height, and the new one slides in from its side while it fades in */
.vs {
  display: grid;
}

.vs > p {
  grid-area: 1 / 1;
}

.va,
#ab-b:checked ~ * .vb {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .26s ease, transform .26s cubic-bezier(.2, .8, .2, 1), visibility 0s;
}

.vb,
#ab-b:checked ~ * .va {
  opacity: 0;
  visibility: hidden;
  transition: opacity .26s ease, transform .26s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .26s;
}

.vb {
  transform: translateX(18px);
}

#ab-b:checked ~ * .va {
  transform: translateX(-18px);
}

@media (prefers-reduced-motion: reduce) {
  .abpill,
  .vs > p,
  .abstrip,
  .sa,
  .sb,
  .sha,
  .abline,
  .abfade {
    transition: none !important;
  }
}

.tick {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 14px;
  max-width: 34em;
}

.tick li {
  position: relative;
  padding-left: 30px;
}

.tick li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--acc);
}

.duo {
  position: relative;
  margin: 56px 0 40px;
}

.duo .desk {
  width: 88%;
}

.duo .phone {
  position: absolute;
  right: 0;
  bottom: -36px;
  width: 17%;
  min-width: 150px;
  border-radius: 26px;
  border: 3px solid var(--surface);
  outline: 1px solid var(--line);
}

/* beta */
.beta-sec {
  background: var(--tint);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.beta-sec .cta {
  margin-top: 32px;
}

.beta-sec .note {
  margin-top: 14px;
}

.beta-sec .todo {
  background: #ffe08a;
  color: #3b2d00;
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
}

.backup {
  margin-top: 30px;
  max-width: 38em;
  font-size: 15.5px;
  color: var(--mute);
  padding: 6px 0 6px 16px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--acc) 16%, transparent), transparent 40%);
  border-radius: 8px;
}

/* closing call */
.final {
  text-align: center;
}

.final h2 {
  margin: 0 auto;
  max-width: 12em;
}

.final .cta-row {
  margin-top: 34px;
}

.final .note {
  margin-top: 14px;
}

/* footer */
.foot {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  font-size: 14.5px;
  color: var(--mute);
}

.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: space-between;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.foot a {
  color: var(--mute);
}

.foot a:hover {
  color: var(--acc);
}

.foot-l {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0;
}

.foot .msg {
  color: var(--ink);
  font-weight: 600;
}

/* ---- narrower screens ---- */
@media (max-width: 960px) {
  .top nav {
    display: none;
  }
  .open {
    margin-left: auto;
  }
  .step,
  .split,
  .free-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .help {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .duo .desk {
    width: 100%;
  }
  .duo .phone {
    right: 8px;
    width: 24%;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16.5px;
  }
  .wrap {
    padding: 0 18px;
  }
  .help {
    grid-template-columns: minmax(0, 1fr);
  }
  .abouts {
    grid-template-columns: minmax(0, 1fr);
  }
  .route {
    gap: 8px 16px;
    font-size: 13.5px;
  }
  .hero-shot {
    max-width: 340px;
  }
  .duo {
    margin-bottom: 0;
  }
  .duo .phone {
    position: static;
    width: 62%;
    margin: 22px auto 0;
  }
  .cta {
    width: 100%;
    padding: 0 22px;
  }
  .cta.small {
    width: auto;
  }
  .top .wrap {
    gap: 10px;
  }
  .open {
    padding: 8px 13px;
    font-size: 14px;
  }
}

/* very narrow screens (a folded Galaxy Z Fold is about 344 px, small phones 320 px): keep the top bar on one line.
   The words never wrap; below 381 px the logo, the name and the button get a little smaller, below 336 px the "Beta" tag leaves the bar
   (it is still in the "Studiotaku is in beta" section and in the footer). */

.brand,
.beta,
.open {
  white-space: nowrap;
}

@media (max-width: 380px) {
  .top .wrap {
    gap: 8px;
  }
  .brand {
    gap: 8px;
    font-size: 18px;
  }
  .logo {
    width: 26px;
    height: 26px;
    border-radius: 9px;
  }
  .open {
    padding: 8px 11px;
    font-size: 13.5px;
  }
}

@media (max-width: 335px) {
  .beta {
    display: none;
  }
}

/* ---- notice about cookies and storage (bottom of the page, one button) ---- */
.ck {
  position: fixed;
  z-index: 50;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  margin: 0 auto;
  max-width: 760px;
  display: flex;
  align-items: center;
  gap: 12px 20px;
  padding: 14px 16px 14px 20px;
  border-radius: 20px;
  background: var(--surface, var(--card, #fff));
  color: var(--ink, #1a1b25);
  border: 1px solid var(--line, #d9d5ec);
  box-shadow: 0 1px 2px rgba(24, 26, 44, .08), 0 18px 40px -16px rgba(40, 20, 90, .5);
  font: 400 14.5px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  animation: ck-in .28s cubic-bezier(.2, .8, .2, 1) both;
}

.ck[hidden] {
  display: none;
}

.ck-txt {
  flex: 1 1 auto;
  min-width: 0;
}

.ck-txt > div {
  margin: 0;
}

.ck-txt b {
  font-weight: 700;
}

.ck-txt a {
  color: var(--acc, #C4025F);
  text-underline-offset: 2px;
  white-space: nowrap;
}

.ck-txt a:hover {
  text-decoration-thickness: 2px;
}

.ck-btn {
  flex: none;
  min-height: 44px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: linear-gradient(135deg, #D60270, #9B4F96 50%, #0038A8);
  color: #fff;
  font: 700 15px/1 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 8px 18px -10px rgba(160, 20, 110, .8);
  transition: transform .15s;
}

.ck-btn:hover {
  transform: translateY(-1px);
}

.ck-btn:active {
  transform: scale(.97);
  transition-duration: .06s;
}

.ck-btn:focus-visible,
.ck-txt a:focus-visible {
  outline: 3px solid var(--acc, #C4025F);
  outline-offset: 3px;
}

.ck-out {
  animation: ck-out .2s ease-in forwards;
}

@keyframes ck-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@keyframes ck-out {
  to {
    opacity: 0;
    transform: translateY(10px);
  }
}

@media (max-width: 560px) {
  .ck {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }
  .ck-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ck,
  .ck-out {
    animation: none;
  }
  .ck-btn {
    transition: none;
  }
  .ck-btn:hover,
  .ck-btn:active {
    transform: none;
  }
}
