/* The product site. One motif runs it: the tabbed folder. The app files its work in four groups (研究, 制作,
   发布, 复盘); the page files its sections the same way, each a folder in its own colour whose tab rises into
   the folder above. The colours come from the app icon: near-black, warm white and its pink bars.
   No web fonts, no external requests: the system faces render both scripts well on every Apple device. */

:root {
  --ground: #f3f1ee;
  --ink: #141318;
  --muted: #4d4a54;
  --pink: #ef7491;
  --on-pink: #141318;
  --blush: #f8d3dc;
  --stone: #e2ddd7;
  --night: #1a191f;
  --on-night: #f3eeea;
  --night-muted: #cfc9d2;
  --tone: #e8e4e0;
  --todo-bg: #ffe08a;
  --todo-ink: #141318;

  --m: clamp(12px, 2.4vw, 40px);
  --pad: clamp(20px, 4.4vw, 72px);
  --r: 12px;
  --tab-h: 44px;
  --max: 1320px;
  --face: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue",
    "Noto Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, sans-serif;

  --s-display: clamp(52px, 9.2vw, 140px);
  --s-h2: clamp(32px, 4.4vw, 62px);
  --s-h3: clamp(20px, 1.8vw, 26px);
  --s-body: 18px;
  --s-small: 15px;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #111014;
    --ink: #f1ece8;
    --muted: #bcb6c0;
    --blush: #3b2530;
    --stone: #25232b;
    --night: #1e1d24;
    --tone: #1c1b21;
    --todo-bg: #ffe08a;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--face);
  font-size: var(--s-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

:lang(en) body,
body:lang(en) {
  line-height: 1.55;
}

/* Han characters take the right regional forms only from a font of that region: the Simplified Chinese faces
   above would draw Japanese kanji and Traditional characters in mainland shapes. */
:root:lang(zh-Hant) {
  --face: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang TC", "Helvetica Neue", "Noto Sans TC",
    "Noto Sans CJK TC", "Microsoft JhengHei", system-ui, sans-serif;
}

:root:lang(ja) {
  --face: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Helvetica Neue", "Noto Sans JP", "Noto Sans CJK JP", "Yu Gothic", "Meiryo", system-ui, sans-serif;
}

:root:lang(ko) {
  --face: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Apple SD Gothic Neo", "Helvetica Neue",
    "Noto Sans KR", "Noto Sans CJK KR", "Malgun Gothic", system-ui, sans-serif;
}

:lang(de) body,
:lang(fr) body,
:lang(es) body,
:lang(pt-BR) body,
body:lang(de),
body:lang(fr),
body:lang(es),
body:lang(pt-BR) {
  line-height: 1.55;
  hyphens: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h2 {
  font-size: var(--s-h2);
}

h3 {
  font-size: var(--s-h3);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

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

:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
  border-radius: 4px;
}

.nw {
  white-space: nowrap;
}

/* A phrase kept together on wide screens may still need to break on a phone ("Gratuit pour commencer ;"). */
@media (max-width: 480px) {
  .nw {
    white-space: normal;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: var(--m);
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--ground);
  border-radius: var(--r);
}

.skip:focus {
  top: 12px;
}

.todo {
  display: inline-block;
  padding: 0 0.4em;
  border-radius: 4px;
  background: var(--todo-bg);
  color: var(--todo-ink);
  font-weight: 650;
}

/* The bar: wordmark, a few links, the language switch. */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  flex-wrap: wrap;
  padding: 18px calc(var(--m) + 8px);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  font-size: 19px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.wordmark img {
  width: 30px;
  height: 30px;
}

.bar nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  font-size: var(--s-small);
}

.bar nav a {
  display: inline-block;
  padding: 6px 0;
  text-decoration: none;
}

.bar nav a:hover,
.bar nav a[aria-current="page"] {
  text-decoration: underline;
}

.bar .lang {
  font-weight: 650;
}

/* The one button shape. */
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: var(--r);
  background: var(--ink);
  color: var(--ground);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0) scale(0.98);
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  font-weight: 750;
  font-size: 19px;
}

.bars {
  display: inline-block;
  flex: none;
  width: 0.9em;
  height: 0.9em;
  color: var(--pink);
}

.req {
  font-size: var(--s-small);
  color: var(--muted);
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(28px, 5vw, 72px) var(--m) 0;
  text-align: center;
}

.hero h1 {
  font-size: var(--s-display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.hero .lede {
  max-width: 34em;
  margin: clamp(18px, 2.4vw, 32px) auto 0;
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.5;
}

.hero .lede:lang(zh-Hans) {
  max-width: 30em;
}

.hero .act {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 22px;
  margin-top: clamp(22px, 2.6vw, 36px);
}

.hero .note {
  margin-top: 14px;
  font-size: var(--s-small);
  color: var(--muted);
}

/* ---------- Folders ---------- */

.f-research { --bg: var(--pink); --fg: var(--on-pink); --fg2: var(--on-pink); }
.f-make { --bg: var(--blush); --fg: var(--ink); --fg2: var(--muted); }
.f-ship { --bg: var(--stone); --fg: var(--ink); --fg2: var(--muted); }
.f-learn { --bg: var(--night); --fg: var(--on-night); --fg2: var(--night-muted); }
.f-plain { --bg: var(--tone); --fg: var(--ink); --fg2: var(--muted); }

.stack {
  margin-top: clamp(40px, 6vw, 84px);
  padding-top: var(--tab-h);
}

.folder {
  position: relative;
  margin: 0 var(--m);
  background: var(--bg);
  color: var(--fg);
  border-radius: 0 var(--r) 0 0;
}

.folder + .folder,
.stack + .folder {
  margin-top: calc(-1 * var(--r));
}

.folder-last {
  border-radius: 0 var(--r) var(--r) var(--r);
}

.folder-last > .inner {
  padding-bottom: clamp(56px, 6vw, 96px);
}

.tab {
  position: absolute;
  bottom: 100%;
  left: var(--tab-x, 0px);
  display: flex;
  align-items: center;
  height: var(--tab-h);
  min-width: 112px;
  padding: 2px 30px 0;
  background: var(--bg);
  color: var(--fg);
  font-weight: 750;
  font-size: 17px;
  letter-spacing: 0;
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 100%, 0 100%);
  white-space: nowrap;
}

.folder:first-child .tab,
.tab[data-x="0"] {
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 100%, 0 100%);
}

.tab[data-x="1"] { --tab-x: calc((100% - 140px) * 0.25); }
.tab[data-x="2"] { --tab-x: calc((100% - 140px) * 0.5); }
.tab[data-x="3"] { --tab-x: calc((100% - 140px) * 0.75); }

.strip {
  display: block;
  height: 54px;
  text-decoration: none;
  transition: transform 200ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.strip:hover,
.strip:focus-visible {
  transform: translateY(-8px);
}

.strip:focus-visible {
  outline-offset: -6px;
}

.strip .tab::after {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  margin-left: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 5.4vw, 88px) var(--pad) calc(clamp(80px, 9vw, 150px) + var(--r));
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 40px);
  row-gap: clamp(32px, 4vw, 64px);
}

.intro {
  font-size: clamp(18px, 1.5vw, 21px);
  margin-top: 20px;
  max-width: 34em;
}

.shot {
  margin: 0;
}

.shot img {
  width: 100%;
  border-radius: var(--r);
}

.shot figcaption {
  margin-top: 12px;
  font-size: var(--s-small);
  color: var(--fg2);
}

.points {
  display: grid;
  gap: 18px 40px;
}

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

.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: var(--bars-mask) center / contain no-repeat;
  mask: var(--bars-mask) center / contain no-repeat;
}

.points strong {
  font-weight: 700;
}

:root {
  --bars-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='0' y='9' width='4' height='7' rx='1'/%3E%3Crect x='6' y='5' width='4' height='11' rx='1'/%3E%3Crect x='12' y='0' width='4' height='16' rx='1'/%3E%3C/svg%3E");
}

/* Research: text left, the window right and larger. */
.research-text {
  grid-column: 1 / span 5;
  align-self: start;
}

.research-shot {
  grid-column: 6 / span 7;
}

.research-points {
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Make: an index of three tools; pointing at one shows its window in the frame. */
.make-head {
  grid-column: 1 / span 7;
}

.make-index {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 40px);
  align-items: start;
}

.make-rows {
  grid-column: 1 / span 5;
  display: grid;
  gap: 8px;
}

.make-row {
  position: relative;
  padding: 22px 24px 24px;
  border-radius: var(--r);
  transition: background-color 240ms ease;
}

.make-row h3 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.make-row h3 small {
  font-size: var(--s-small);
  font-weight: 650;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--ground);
  color: var(--ink);
  letter-spacing: 0;
}

.make-row p {
  margin-top: 10px;
}

.make-row .shot {
  display: none;
}

.make-frame {
  grid-column: 6 / span 7;
  position: sticky;
  top: 24px;
  display: grid;
}

.make-frame > * {
  grid-area: 1 / 1;
  transition: opacity 240ms ease;
}

.make-frame > :not(:first-child) {
  opacity: 0;
}

.make-rows > .make-row:first-child {
  background: color-mix(in srgb, var(--ground) 55%, transparent);
}

@media (hover: hover) and (min-width: 960px) {
  .make-row {
    cursor: default;
  }

  .make-index:has(.make-row:hover) .make-row {
    background: transparent;
  }

  .make-index .make-row:hover {
    background: color-mix(in srgb, var(--ground) 55%, transparent);
  }

  .make-index:has(.make-row:nth-child(2):hover) .make-frame > :first-child,
  .make-index:has(.make-row:nth-child(3):hover) .make-frame > :first-child {
    opacity: 0;
  }

  .make-index:has(.make-row:nth-child(2):hover) .make-frame > :nth-child(2),
  .make-index:has(.make-row:nth-child(3):hover) .make-frame > :nth-child(3) {
    opacity: 1;
  }
}

/* Ship: the four steps of the app's publish page, set as one bar. */
.ship-head {
  grid-column: 1 / span 6;
}

.ship-guard {
  grid-column: 8 / span 5;
  align-self: end;
  grid-template-columns: 1fr;
}

.steps {
  grid-column: 1 / -1;
  display: flex;
  gap: 6px;
  min-height: 260px;
}

.steps li {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 22px 26px;
  border-radius: 6px;
  background: var(--sbg);
  color: var(--sfg);
}

.steps li:first-child {
  border-radius: var(--r) 6px 6px var(--r);
}

.steps li:last-child {
  border-radius: 6px var(--r) var(--r) 6px;
}

.steps li:nth-child(1) { --sbg: var(--night); --sfg: var(--on-night); flex-grow: 1; }
.steps li:nth-child(2) { --sbg: var(--pink); --sfg: var(--on-pink); flex-grow: 1.15; }
.steps li:nth-child(3) { --sbg: var(--ground); --sfg: var(--ink); flex-grow: 1.3; }
.steps li:nth-child(4) { --sbg: var(--blush); --sfg: var(--ink); flex-grow: 1.45; }

.steps p {
  font-size: 16px;
  line-height: 1.5;
}

.steps h3 {
  margin-top: auto;
}

/* Learn: the window left, the three pages right, then the loop. */
.learn-shot {
  grid-column: 1 / span 7;
}

.learn-text {
  grid-column: 8 / span 5;
}

.learn-text .points {
  margin-top: 30px;
  gap: 22px;
}

.loop {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  font-size: var(--s-h3);
  font-weight: 700;
}

.loop li {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.loop li:not(:last-child)::after {
  content: "→";
  color: var(--pink);
  font-weight: 700;
}

/* ---------- Ground sections ---------- */

.band {
  max-width: calc(var(--max) + 2 * var(--m));
  margin: 0 auto;
  padding: clamp(96px, 11vw, 200px) calc(var(--m) + var(--pad)) 0;
}

.local h2 {
  grid-column: 1 / span 5;
}

.local-body {
  grid-column: 6 / span 7;
}

.statement {
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.01em;
  max-width: 25em;
}

.local .points {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 36px;
}

.local .more {
  margin-top: 32px;
  font-weight: 650;
}

/* Pricing: the tiles step up like the icon's bars. */
.plans {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 8px;
  align-items: end;
}

.plans-head {
  grid-column: 1 / span 5;
  grid-row: 1;
  align-self: start;
  padding-right: 24px;
}

.plans-lead {
  margin-top: 24px;
  max-width: 26em;
}

.plan {
  display: flex;
  flex-direction: column;
  border-radius: var(--r);
  background: var(--bg);
  color: var(--fg);
  overflow: hidden;
}

.plan-free {
  grid-column: 6 / span 3;
  grid-row: 1;
  min-height: 460px;
  --bg: var(--stone);
  --fg: var(--ink);
  --base: color-mix(in srgb, var(--stone) 80%, var(--ink));
}

.plan-pro {
  grid-column: 9 / span 4;
  grid-row: 1;
  min-height: 620px;
  --bg: var(--pink);
  --fg: var(--on-pink);
  --base: color-mix(in srgb, var(--pink) 78%, #000);
}

.plan-body {
  flex: 1;
  padding: 28px 28px 32px;
}

.plan h3 {
  font-size: 28px;
}

.plan .price {
  margin: 14px 0 22px;
  font-size: clamp(36px, 3.4vw, 52px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.plan .points {
  gap: 12px;
  font-size: 17px;
}

.plan-base {
  padding: 18px 28px;
  background: var(--base);
  color: var(--fg);
  font-size: var(--s-small);
  font-weight: 650;
}

.plan-pro .plan-base {
  color: #141318;
}

@media (prefers-color-scheme: dark) {
  .plan-free .plan-base {
    color: var(--ink);
  }
}

/* FAQ: index cards with stepped tabs. */
.faq h2 {
  grid-column: 1 / span 4;
  align-self: start;
}

.faq-cards {
  grid-column: 5 / span 8;
  padding-top: var(--tab-h);
}

.card {
  --tab-x: 0px;
  position: relative;
  background: var(--bg);
  color: var(--fg);
  border-radius: 0 var(--r) var(--r) var(--r);
}

.card + .card {
  margin-top: calc(var(--tab-h) - var(--r));
}

.card:nth-child(3n + 1) { --bg: var(--blush); --fg: var(--ink); }
.card:nth-child(3n + 2) { --bg: var(--stone); --fg: var(--ink); }
.card:nth-child(3n) { --bg: var(--night); --fg: var(--on-night); }

.card .tab {
  font-size: var(--s-small);
  min-width: 0;
}

.card:nth-child(2) .tab { --tab-x: 14%; }
.card:nth-child(3) .tab { --tab-x: 28%; }
.card:nth-child(4) .tab { --tab-x: 42%; }
.card:nth-child(5) .tab { --tab-x: 56%; }
.card:nth-child(6) .tab { --tab-x: 70%; }

.card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px;
  font-size: 20px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.card summary::-webkit-details-marker {
  display: none;
}

.card summary::after {
  content: "+";
  flex: none;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  transition: transform 200ms ease;
}

.card[open] summary::after {
  transform: rotate(45deg);
}

.card summary:focus-visible {
  outline-offset: -6px;
}

.card .answer {
  padding: 0 28px 30px;
  max-width: 52em;
}

.card .answer p + p {
  margin-top: 12px;
}

/* The close: one row of tiles cropped from a longer one. */
.close {
  padding-top: clamp(110px, 12vw, 210px);
  overflow: hidden;
}

.close-row {
  display: grid;
  grid-template-columns: 1fr minmax(0, 8fr) 1fr;
  gap: 10px;
  margin: 0 calc(-1 * var(--r));
}

.close-row > * {
  min-height: 380px;
  border-radius: var(--r);
}

.close-left {
  background: var(--pink);
}

.close-right {
  overflow: hidden;
  background: var(--tone);
}

.close-right picture {
  display: contents;
}

.close-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 34% 30%;
}

.close-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: clamp(28px, 4vw, 64px);
  background: var(--night);
  color: var(--on-night);
}

.close-main .button {
  background: var(--pink);
  color: var(--on-pink);
}

.close-main .soon .bars {
  color: var(--pink);
}

.close-main .req {
  color: var(--night-muted);
}

.close-main .act {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  margin-top: 8px;
}

/* ---------- Footer: the mark, built large ---------- */

.foot {
  padding: clamp(110px, 12vw, 200px) var(--m) 32px;
}

.mark {
  display: flex;
  align-items: flex-end;
  gap: clamp(12px, 2vw, 32px);
  padding: 0 8px;
}

.mark svg {
  flex: none;
  width: clamp(72px, 12vw, 190px);
  height: auto;
  color: var(--pink);
}

.mark p {
  font-size: clamp(44px, 11vw, 176px);
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.05em;
  overflow-wrap: anywhere;
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 28px clamp(16px, 2.4vw, 40px);
  margin-top: 56px;
  padding: 0 8px;
  font-size: var(--s-small);
}

.foot-links {
  grid-column: 1 / span 6;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.foot-links a {
  font-weight: 650;
}

.foot-contact {
  grid-column: 7 / span 6;
  display: grid;
  gap: 6px;
  justify-items: end;
  text-align: right;
}

/* Every language by its own name; the current one is plain text weight with a mark under it. */
.foot-langs {
  grid-column: 1 / -1;
}

.foot-langs ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-langs a {
  text-decoration: none;
  color: var(--muted);
}

.foot-langs a:hover {
  color: inherit;
  text-decoration: underline;
}

.foot-langs a[aria-current] {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.foot-legal {
  grid-column: 1 / -1;
  color: var(--muted);
}

/* ---------- Documents: privacy policy and support ---------- */

.doc-head {
  padding: clamp(28px, 5vw, 72px) calc(var(--m) + var(--pad)) clamp(36px, 4vw, 56px);
  max-width: calc(var(--max) + 2 * var(--m));
  margin: 0 auto;
}

.doc-head h1 {
  font-size: clamp(44px, 7vw, 104px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.doc-head p {
  margin-top: 18px;
  font-size: clamp(18px, 1.6vw, 22px);
  max-width: 36em;
}

/* The not-found page: the way home, then the way to help. */
.lost .doc-head {
  min-height: 46vh;
}

.lost-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

.doc-head .lost-actions {
  margin-top: clamp(28px, 4vw, 44px);
  font-size: 17px;
}

.doc-head .meta {
  font-size: var(--s-small);
  color: var(--muted);
}

.doc-stack {
  padding-top: var(--tab-h);
  margin-top: 8px;
}

.doc .inner {
  padding-top: clamp(36px, 4.4vw, 72px);
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 40px);
}

.toc {
  grid-column: 1 / span 3;
  position: sticky;
  top: 24px;
  align-self: start;
  font-size: var(--s-small);
}

.toc h2 {
  font-size: var(--s-small);
  font-weight: 750;
  letter-spacing: 0;
  margin-bottom: 12px;
}

.toc li + li {
  margin-top: 8px;
}

.toc a {
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

.prose {
  grid-column: 4 / span 8;
  max-width: 44em;
}

.prose section + section {
  margin-top: clamp(48px, 5vw, 72px);
}

.prose h2 {
  font-size: clamp(26px, 2.6vw, 36px);
  margin-bottom: 18px;
  scroll-margin-top: 24px;
}

.prose h3 {
  font-size: 20px;
  margin: 28px 0 10px;
}

.prose p + p,
.prose p + ul,
.prose ul + p,
.prose p + ol,
.prose ol + p {
  margin-top: 14px;
}

.prose ul,
.prose ol {
  display: grid;
  gap: 10px;
}

.prose ul li {
  position: relative;
  padding-left: 26px;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 13px;
  height: 13px;
  background: currentColor;
  -webkit-mask: var(--bars-mask) center / contain no-repeat;
  mask: var(--bars-mask) center / contain no-repeat;
}

.prose ol {
  counter-reset: step;
}

.prose ol li {
  position: relative;
  padding-left: 40px;
  counter-increment: step;
}

.prose ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--fg);
  color: var(--bg);
  font-size: 15px;
  font-weight: 750;
  line-height: 28px;
  text-align: center;
}

.prose strong {
  font-weight: 700;
}

.prose .aside {
  margin-top: 18px;
  padding: 18px 22px;
  border-radius: var(--r);
  background: var(--ground);
  color: var(--ink);
}

kbd,
.path {
  font-family: inherit;
  font-weight: 650;
  white-space: nowrap;
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

/* ---------- Motion: entrance on load, parts rise as they scroll in ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero h1,
  .hero .lede,
  .hero .act,
  .hero .note {
    animation: rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .hero .lede { animation-delay: 80ms; }
  .hero .act { animation-delay: 160ms; }
  .hero .note { animation-delay: 220ms; }

  .stack .strip {
    animation: rise 760ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .stack .strip:nth-child(1) { animation-delay: 240ms; }
  .stack .strip:nth-child(2) { animation-delay: 310ms; }
  .stack .strip:nth-child(3) { animation-delay: 380ms; }

  @supports (animation-timeline: view()) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }

    .shot-drift img {
      animation: drift linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes drift {
  from {
    transform: translateY(18px) scale(1.01);
  }
  to {
    transform: translateY(-18px) scale(1.01);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
  }
}

/* ---------- Narrower screens ---------- */

@media (max-width: 1100px) {
  .research-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 959px) {
  :root {
    --s-body: 17px;
  }

  .research-text,
  .research-shot,
  .make-head,
  .make-rows,
  .ship-head,
  .ship-guard,
  .learn-shot,
  .learn-text,
  .local h2,
  .local-body,
  .faq h2,
  .faq-cards,
  .toc,
  .prose {
    grid-column: 1 / -1;
  }

  .make-frame {
    display: none;
  }

  .make-row {
    padding: 0;
    background: transparent !important;
  }

  .make-rows {
    gap: 48px;
  }

  .make-row .shot {
    display: block;
    margin-top: 20px;
  }

  .steps {
    flex-direction: column;
    min-height: 0;
  }

  .steps li,
  .steps li:first-child,
  .steps li:last-child {
    border-radius: 6px;
    min-height: 120px;
  }

  .steps li:first-child {
    border-radius: var(--r) var(--r) 6px 6px;
  }

  .steps li:last-child {
    border-radius: 6px 6px var(--r) var(--r);
  }

  .plans-head,
  .plan-free,
  .plan-pro {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 0;
  }

  .plans-head {
    margin-bottom: 36px;
  }

  .plans {
    row-gap: 8px;
  }

  .toc {
    position: static;
    margin-bottom: 40px;
  }

  .foot-links,
  .foot-contact {
    grid-column: 1 / -1;
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 640px) {
  :root {
    --tab-h: 40px;
  }

  .research-points,
  .local .points {
    grid-template-columns: 1fr;
  }

  .tab {
    min-width: 0;
    padding: 2px 16px 0;
    font-size: 15px;
  }

  .tab[data-x="1"] { --tab-x: calc((100% - 82px) * 0.333); }
  .tab[data-x="2"] { --tab-x: calc((100% - 82px) * 0.667); }
  /* The last tab ends at the right edge, however long its word ("Auswerten", "Resultados"). */
  .tab[data-x="3"] { left: auto; right: 0; }

  .strip {
    height: 48px;
  }

  .strip .tab::after {
    display: none;
  }

  .card .tab { max-width: 60%; }
  .card:nth-child(n) .tab { --tab-x: calc((100% - 60%) * var(--k, 0)); }
  .card:nth-child(2) .tab { --k: 0.2; }
  .card:nth-child(3) .tab { --k: 0.4; }
  .card:nth-child(4) .tab { --k: 0.6; }
  .card:nth-child(5) .tab { --k: 0.8; }
  .card:nth-child(6) .tab { --k: 1; }

  .card summary {
    padding: 20px;
    font-size: 18px;
  }

  .card .answer {
    padding: 0 20px 24px;
  }

  .close-row {
    grid-template-columns: 1fr 1fr;
    margin: 0;
  }

  .close-main {
    grid-column: 1 / -1;
    grid-row: 1;
    min-height: 0 !important;
  }

  .close-left,
  .close-right {
    min-height: 120px !important;
  }

  .hero .act .button {
    width: 100%;
    justify-content: center;
  }

  .bar {
    padding: 14px calc(var(--m) + 4px);
  }

  .bar nav ul {
    gap: 2px 18px;
  }
}
