/* Iro website. Colours are the app's Theme (Iro/Model/Palettes.swift). */
:root {
  --washi: #F3EEE4;
  --panel: #FBF8F2;
  --ink: #1F2A44;
  --ink-soft: #6B7186;
  --vermilion: #E8543A;
  --vermilion-deep: #C8402A;
  --line: #16161A;
  --white: #FFFFFF;
  --hair: rgba(31, 42, 68, .1);
  --shadow-sm: 0 1px 2px rgba(31, 42, 68, .06), 0 4px 12px -4px rgba(31, 42, 68, .1);
  --shadow: 0 1px 2px rgba(31, 42, 68, .05), 0 18px 40px -18px rgba(31, 42, 68, .28);
  --shadow-lg: 0 2px 4px rgba(31, 42, 68, .05), 0 30px 60px -24px rgba(31, 42, 68, .35);
  --r-lg: 32px;
  --r: 24px;
  --r-sm: 16px;
  --font: "Nunito", "M PLUS Rounded 1c", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Hiragino Maru Gothic ProN", sans-serif;
  --jp: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", ui-rounded, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
}

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

html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background-color: var(--washi);
  /* Washi fibres: a faint paper grain. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .28 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

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

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 12px;
  text-decoration: none; font-weight: 800;
}
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.jp { font-family: var(--jp); }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(243, 238, 228, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--hair);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) {
  text-decoration: none; font-weight: 800; font-size: 16px; color: var(--ink-soft);
  padding: 8px 14px; border-radius: 999px; transition: color .2s, background-color .2s;
}
.site-nav a:not(.btn):hover { color: var(--ink); background: rgba(31, 42, 68, .06); }
@media (max-width: 760px) { .site-nav a:not(.btn) { display: none; } }

/* ---------- Wordmark ---------- */
.wordmark { display: inline-flex; align-items: center; gap: .32em; text-decoration: none; color: var(--ink); line-height: 1; }
.wordmark .kanji { font-family: var(--jp); font-weight: 800; color: var(--vermilion); font-size: 1.5em; }
.wordmark .latin { font-weight: 900; letter-spacing: .2em; margin-right: -.2em; font-size: .95em; }
.site-header .wordmark { font-size: 22px; }

.wordmark-hero { display: inline-flex; flex-direction: column; align-items: center; line-height: .9; margin-bottom: 20px; }
.wordmark-hero .kanji {
  font-family: var(--jp); font-weight: 900; color: var(--vermilion);
  font-size: clamp(88px, 13vw, 136px); letter-spacing: -.02em;
}
.wordmark-hero .latin {
  font-weight: 900; letter-spacing: .42em; margin-right: -.42em;
  font-size: clamp(24px, 3.2vw, 34px); margin-top: 10px;
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--vermilion);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 14px 28px; border-radius: 999px; border: 0;
  background: var(--bg); color: var(--white);
  font: 900 19px/1.1 var(--font); text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 10px 24px -10px rgba(232, 84, 58, .7);
  transition: transform .25s var(--spring), box-shadow .25s var(--ease), background-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); background: #EC6047; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 16px 30px -12px rgba(232, 84, 58, .75); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn small { display: block; font-size: 12.5px; font-weight: 800; opacity: .88; letter-spacing: .02em; }
.btn .btn-text { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; }
.btn-sm { min-height: 42px; padding: 10px 18px; font-size: 16px; box-shadow: 0 8px 18px -10px rgba(232, 84, 58, .7); }
.btn-sm svg { width: 18px; height: 18px; }

.btn-quiet {
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px;
  border-radius: 999px; border: 0; background: rgba(31, 42, 68, .07); color: var(--ink);
  font: 800 15px/1 var(--font); cursor: pointer; transition: background-color .2s, transform .2s var(--spring);
  -webkit-tap-highlight-color: transparent;
}
.btn-quiet:hover { background: rgba(31, 42, 68, .12); }
.btn-quiet:active { transform: scale(.96); }
.btn-quiet[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.btn-quiet svg { width: 18px; height: 18px; }
.btn-quiet:disabled { opacity: .45; cursor: default; }

/* ---------- Hero ---------- */
.hero { padding: clamp(16px, 4vw, 48px) 0 clamp(56px, 8vw, 104px); }
.hero .wrap { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 980px) { .hero .wrap { grid-template-columns: 0.82fr 1.18fr; } }

.hero-copy { text-align: center; }
@media (min-width: 980px) { .hero-copy { text-align: left; } .wordmark-hero { align-items: flex-start; } }

h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.015em; font-weight: 900; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); }
.lede { font-size: clamp(19px, 2vw, 22px); color: var(--ink-soft); font-weight: 700; margin: 16px auto 28px; max-width: 30ch; }
@media (min-width: 980px) { .lede { margin-left: 0; } }
.hero-note { margin: 16px 0 0; font-size: 15px; font-weight: 800; color: var(--ink-soft); }
.hero-note { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 0; }
@media (min-width: 980px) { .hero-note { justify-content: flex-start; } }
.hero-note span { white-space: nowrap; }
.hero-note span + span::before { content: "·"; margin: 0 .55em; opacity: .6; }

/* ---------- Demo ---------- */
.demo {
  background: var(--panel); border-radius: var(--r-lg); padding: clamp(12px, 2vw, 20px);
  box-shadow: var(--shadow-lg); position: relative;
}
.demo-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 4px 6px 12px; }
.demo-head p { margin: 0; font-weight: 900; font-size: 17px; }
.demo-head .jp { color: var(--vermilion); font-weight: 800; margin-left: 6px; font-size: 15px; }
.demo-head .hint { text-align: right; font-size: 14px; color: var(--ink-soft); font-weight: 800; transition: opacity .3s; }

.canvas {
  border-radius: var(--r); overflow: hidden; background: var(--white);
  box-shadow: 0 0 0 1px var(--hair); position: relative;
  aspect-ratio: 4 / 3;
}
.canvas .pic { width: 100%; height: 100%; }
.pic .lines { pointer-events: none; }
.pic .lock { pointer-events: none; }
#demo-canvas .pic { touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
#demo-canvas .region { cursor: var(--brush, pointer); }

.demo-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 4px 2px; }
.palette-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.palette-tab {
  border: 0; background: transparent; padding: 7px 12px; border-radius: 999px; cursor: pointer;
  font: 800 14px/1 var(--font); color: var(--ink-soft); transition: background-color .2s, color .2s;
}
.palette-tab .jp { margin-right: 5px; }
.palette-tab:hover { color: var(--ink); }
.palette-tab[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.demo-actions { display: flex; gap: 6px; }

.swatches { display: grid; grid-template-columns: repeat(8, 1fr); gap: clamp(6px, 1.4vw, 12px); padding: 14px 4px 6px; }
.swatch {
  aspect-ratio: 1; width: 100%; max-width: 56px; justify-self: center; border-radius: 50%;
  border: 0; padding: 0; cursor: pointer; background: var(--c);
  box-shadow: inset 0 0 0 2px rgba(22, 22, 26, .14), var(--shadow-sm);
  transition: transform .3s var(--spring), box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
.swatch:hover { transform: translateY(-2px) scale(1.05); }
.swatch[aria-checked="true"] {
  transform: scale(1.12);
  box-shadow: inset 0 0 0 2px rgba(22, 22, 26, .14), 0 0 0 3px var(--panel), 0 0 0 6px var(--ink);
}
.swatch:focus-visible { outline-offset: 7px; border-radius: 50%; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section h2 { font-size: clamp(34px, 4.6vw, 52px); display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.section-head.center h2 { justify-content: center; }
h2 .jp, h3 .jp { font-size: .42em; font-weight: 800; color: var(--vermilion); letter-spacing: .08em; }
.section-head p { margin: 14px 0 0; font-size: clamp(18px, 1.8vw, 20px); color: var(--ink-soft); font-weight: 700; }

.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.flip > :first-child { order: 2; } }

.points { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.points li { display: flex; gap: 14px; align-items: flex-start; font-weight: 700; }
.points .ico {
  flex: none; width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center;
  background: var(--panel); box-shadow: var(--shadow-sm); color: var(--vermilion);
}
.points .ico svg { width: 22px; height: 22px; }
.points strong { display: block; font-weight: 900; color: var(--ink); }
.points span { color: var(--ink-soft); font-size: 16.5px; }

.card { background: var(--panel); border-radius: var(--r-lg); box-shadow: var(--shadow); }

/* Tools strip */
.tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: var(--panel); box-shadow: var(--shadow-sm); font-weight: 800; font-size: 15.5px;
}
.chip svg { width: 18px; height: 18px; color: var(--vermilion); }
.chip .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }

/* Together */
.together-stage { padding: clamp(12px, 2vw, 18px); position: relative; overflow: hidden; }
.together-stage .canvas { overflow: visible; }
.together-stage .canvas .pic { border-radius: var(--r); }
.cursor {
  position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none;
  transform: translate(var(--x, 0), var(--y, 0));
  transition: transform 1.1s cubic-bezier(.45, .05, .25, 1);
  will-change: transform;
}
.cursor svg { width: 26px; height: 26px; filter: drop-shadow(0 2px 3px rgba(31,42,68,.35)); }
.cursor .tag {
  position: absolute; left: 20px; top: 20px; display: flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--ink); color: var(--white);
  font-weight: 900; font-size: 13px; white-space: nowrap; box-shadow: var(--shadow-sm);
}
.cursor.flip .tag { left: auto; right: 14px; }
.cursor .tag i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); font-size: 14px; }
.lock { fill: none; stroke-width: 7; stroke-dasharray: 14 10; stroke-linecap: round; animation: march 1s linear infinite; }
@keyframes march { to { stroke-dashoffset: -24; } }

.who { display: flex; gap: 10px; flex-wrap: wrap; padding: 14px 4px 2px; }
.who .chip { box-shadow: none; background: rgba(31, 42, 68, .06); font-size: 14.5px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); font-size: 15px; box-shadow: 0 0 0 2px var(--white); }

/* Finish */
.finish-stage { padding: clamp(12px, 2vw, 18px); }
.finish-bar { display: flex; align-items: center; gap: 12px; padding: 14px 4px 2px; }
.finish-bar .title { font-weight: 900; }
.finish-bar .title .jp { color: var(--vermilion); font-weight: 800; font-size: 14px; margin-left: 6px; }
.progress { flex: 1; height: 6px; border-radius: 99px; background: rgba(31, 42, 68, .1); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--vermilion); border-radius: inherit; }
.seal {
  position: absolute; right: clamp(20px, 3vw, 30px); top: clamp(20px, 3vw, 30px); z-index: 2;
  display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  background: var(--vermilion); color: var(--white); font-weight: 900; font-size: 15px;
  box-shadow: 0 10px 20px -8px rgba(232, 84, 58, .7);
  transform: scale(.6); opacity: 0; transition: transform .5s var(--spring), opacity .3s;
}
.seal.show { transform: scale(1); opacity: 1; }
.seal svg { width: 18px; height: 18px; }
#timelapse-canvas .region { transition: fill .45s var(--ease); }

/* Living picture: once finished, Lucky Cat comes to life (matches the app's motion script).
   Every loop is 4.8 s; each motion's period divides it. Negative delays set the phase. */
#timelapse-canvas .part { transform-box: view-box; }
@media (prefers-reduced-motion: no-preference) {
  #timelapse-canvas .pic.alive .part { animation: var(--move) var(--dur) var(--sine) var(--delay, 0s) infinite alternate; }
  #timelapse-canvas .pic.paused .part { animation-play-state: paused; }
  #timelapse-canvas .part { --sine: cubic-bezier(.37, 0, .63, 1); --move: none; --dur: 1s; }
  /* Beckoning paw: ±9° from the shoulder, 1.2 s */
  #timelapse-canvas .part:is([data-id="arm-raised"], [data-id="paw-raised"], [data-id="paw-pad"], [data-id^="toe-"]) { --move: lc-sway-9; --dur: .6s; --delay: -.3s; transform-origin: 612px 418px; }
  /* Blink at 1.4 s and 3.9 s, about 0.32 s each */
  #timelapse-canvas .part:is([data-id="eye-left"], [data-id="pupil-left"], [data-id="eye-shine-left"]) { --move: lc-blink; --dur: 4.8s; --sine: linear; transform-origin: 428px 258px; }
  #timelapse-canvas .pic.alive .part:is([data-id="eye-left"], [data-id="pupil-left"], [data-id="eye-shine-left"]) { animation-direction: normal; }
  /* Tail swish: ±6°, 2.4 s, a quarter-cycle in */
  #timelapse-canvas .part:is([data-id="tail"], [data-id="tail-tip"]) { --move: lc-sway-6; --dur: 1.2s; --delay: -1.2s; transform-origin: 612px 590px; }
  /* Bell: ±10° on the collar, 1.2 s */
  #timelapse-canvas .part:is([data-id="bell"], [data-id="bell-slot"]) { --move: lc-sway-10; --dur: .6s; --delay: -.42s; transform-origin: 500px 378px; }
  /* Coins hop in turn: 6 px, 1.6 s */
  #timelapse-canvas .part:is([data-id^="coin-"]) { --move: lc-hop; --dur: .8s; }
  #timelapse-canvas .part:is([data-id="coin-1"], [data-id="coin-hole-1"]) { --delay: -.4s; }
  #timelapse-canvas .part:is([data-id="coin-2"], [data-id="coin-hole-2"]) { --delay: -.8s; }
  #timelapse-canvas .part:is([data-id="coin-3"], [data-id="coin-hole-3"]) { --delay: -1.2s; }
  #timelapse-canvas .part:is([data-id="coin-4"], [data-id="coin-hole-4"]) { --delay: 0s; }
  /* Blossoms turn: ±14° about their centres, 4.8 s */
  #timelapse-canvas .part[data-id^="blossom-"] { --move: lc-sway-14; --dur: 2.4s; }
  #timelapse-canvas .part:is([data-id="blossom-1"], [data-id="blossom-1-centre"]) { --delay: -1.2s; transform-origin: 150px 290px; }
  #timelapse-canvas .part:is([data-id="blossom-2"], [data-id="blossom-2-centre"]) { --delay: -3.6s; transform-origin: 880px 300px; }
  #timelapse-canvas .part:is([data-id="blossom-3"], [data-id="blossom-3-centre"]) { --delay: -2.4s; transform-origin: 95px 548px; }
  #timelapse-canvas .part:is([data-id="blossom-4"], [data-id="blossom-4-centre"]) { --delay: 0s; transform-origin: 905px 540px; }
  /* Clouds drift ±10 px, 4.8 s */
  #timelapse-canvas .part[data-id^="cloud-"] { --move: lc-drift; --dur: 2.4s; --delay: -1.2s; }
  /* Halo breathes, 2.4 s */
  #timelapse-canvas .part[data-id="halo"] { --move: lc-breathe; --dur: 1.2s; --delay: -.6s; transform-origin: 500px 300px; }
}
@keyframes lc-sway-6 { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
@keyframes lc-sway-9 { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }
@keyframes lc-sway-10 { from { transform: rotate(-10deg); } to { transform: rotate(10deg); } }
@keyframes lc-sway-14 { from { transform: rotate(-14deg); } to { transform: rotate(14deg); } }
@keyframes lc-hop { from { transform: translateY(6px); } to { transform: translateY(-6px); } }
@keyframes lc-drift { from { transform: translateX(-10px); } to { transform: translateX(10px); } }
@keyframes lc-breathe { from { transform: scale(.985); } to { transform: scale(1.015); } }
@keyframes lc-blink {
  0%, 25.833%, 32.5%, 77.917%, 84.583%, 100% { transform: scaleY(1); }
  29.167%, 81.25% { transform: scaleY(.1); }
}

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 2vw, 18px); margin-top: 28px; }
.gallery figure { margin: 0; background: var(--panel); padding: 8px 8px 10px; border-radius: 18px; box-shadow: var(--shadow); transition: transform .35s var(--spring); }
.gallery figure:nth-child(1) { transform: rotate(-2.5deg); }
.gallery figure:nth-child(2) { transform: translateY(-6px) rotate(1deg); }
.gallery figure:nth-child(3) { transform: rotate(2.5deg); }
.gallery figure:hover { transform: translateY(-6px) rotate(0) scale(1.03); }
.gallery img { border-radius: 12px; width: 100%; height: auto; box-shadow: 0 0 0 1px var(--hair); }
.gallery figcaption { font-size: 13.5px; font-weight: 900; text-align: center; margin-top: 8px; }

/* Pictures */
.pictures { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(12px, 2vw, 22px); }
@media (min-width: 760px) { .pictures { grid-template-columns: repeat(4, 1fr); } }
.picture { margin: 0; padding: 10px 10px 14px; border-radius: var(--r); background: var(--panel); box-shadow: var(--shadow-sm); transition: transform .35s var(--spring), box-shadow .3s; }
.picture:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.picture img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 0 0 1px var(--hair); background: var(--white); }
.picture figcaption { padding: 10px 4px 0; display: flex; flex-direction: column; gap: 2px; }
.picture b { font-weight: 900; font-size: 16px; line-height: 1.2; }
.picture b .jp { font-size: 12px; color: var(--vermilion); font-weight: 800; margin-left: 4px; }
.picture span { font-size: 13.5px; color: var(--ink-soft); font-weight: 800; }
.collections { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 32px; }
.collections .chip { box-shadow: none; background: rgba(31, 42, 68, .06); font-size: 14.5px; padding: 8px 14px; }
.collections .chip .jp { color: var(--vermilion); font-size: 13px; }
.more-note { text-align: center; color: var(--ink-soft); font-weight: 800; margin: 18px 0 0; font-size: 16px; }

/* Family band */
.family { display: grid; gap: 24px; align-items: center; padding: clamp(28px, 4vw, 48px); }
@media (min-width: 860px) { .family { grid-template-columns: 1.1fr .9fr; } }
.family h3 { font-size: clamp(26px, 3vw, 34px); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.family p { margin: 12px 0 0; color: var(--ink-soft); font-weight: 700; }
.avatars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; max-width: 380px; justify-self: center; width: 100%; }
.avatars span {
  aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--bg);
  font-size: clamp(22px, 3vw, 30px); box-shadow: 0 0 0 3px var(--white), var(--shadow-sm);
  animation: bob 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * -.4s);
}
@keyframes bob { 50% { transform: translateY(-6px); } }

/* Pricing */
.plans { display: grid; gap: clamp(16px, 2vw, 24px); max-width: 920px; margin-inline: auto; }
@media (min-width: 820px) { .plans { grid-template-columns: 1fr 1.15fr; align-items: stretch; } }
.plan { padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; }
.plan h3 { font-size: 26px; display: flex; align-items: baseline; gap: 10px; }
.plan .price { font-size: clamp(44px, 5vw, 56px); font-weight: 900; line-height: 1; margin: 18px 0 4px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.plan .price small { font-size: 18px; color: var(--ink-soft); font-weight: 800; letter-spacing: 0; margin-left: 6px; }
.plan .sub { color: var(--ink-soft); font-weight: 800; margin: 0; font-size: 16px; }
.plan ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.plan li { display: flex; gap: 12px; font-weight: 800; font-size: 17px; line-height: 1.35; }
.plan li svg { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--ink-soft); }
.plan-full { position: relative; box-shadow: var(--shadow-lg), 0 0 0 3px var(--vermilion); }
.plan-full li svg { color: var(--vermilion); }
.plan-full .badge {
  position: absolute; top: -14px; right: 24px; background: var(--vermilion); color: var(--white);
  font-weight: 900; font-size: 13px; letter-spacing: .04em; padding: 6px 12px; border-radius: 999px;
}
.plan-foot { margin-top: auto; padding-top: 24px; }
.plan-foot p { margin: 0; font-size: 14.5px; color: var(--ink-soft); font-weight: 800; }

/* Final CTA */
.final { text-align: center; padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 6vw, 72px); }
.final h2 { font-size: clamp(36px, 5vw, 56px); }
.final p { color: var(--ink-soft); font-weight: 700; font-size: 20px; margin: 14px 0 28px; }

/* Footer */
.site-footer { border-top: 1px solid var(--hair); padding: 32px 0 48px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.site-footer nav { display: flex; gap: 6px; flex-wrap: wrap; }
.site-footer nav a { text-decoration: none; font-weight: 800; color: var(--ink-soft); padding: 8px 12px; border-radius: 999px; font-size: 16px; }
.site-footer nav a:hover { color: var(--ink); background: rgba(31, 42, 68, .06); }
.site-footer small { color: var(--ink-soft); font-weight: 700; font-size: 14px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.hero .reveal:nth-child(2) { transition-delay: .08s; }

/* ---------- Plain pages (support, privacy) ---------- */
.page { padding: clamp(24px, 5vw, 56px) 0 clamp(64px, 8vw, 96px); }
.page .wrap { max-width: 780px; }
.page h1 { font-size: clamp(38px, 6vw, 56px); display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.page h1 .jp { font-size: .4em; color: var(--vermilion); font-weight: 800; letter-spacing: .08em; }
.page .intro { color: var(--ink-soft); font-weight: 700; font-size: 20px; margin: 14px 0 32px; }
.page h2 { font-size: 24px; margin: 36px 0 10px; }
.page p, .page li { font-weight: 600; }
.page ul { padding-left: 1.2em; }
.page li { margin: 6px 0; }
.page a { color: var(--vermilion-deep); font-weight: 800; }
.prose { padding: clamp(24px, 4vw, 44px); }
.prose > :first-child { margin-top: 0; }

.faq { display: grid; gap: 12px; }
.faq details { background: var(--panel); border-radius: var(--r); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 900; font-size: 19px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(31, 42, 68, .07) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F2A44' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq summary:focus-visible { outline-offset: -3px; border-radius: var(--r); }
.faq .answer { padding: 0 24px 20px; color: var(--ink); }
.faq .answer p { margin: 0 0 10px; }
.faq .answer p:last-child { margin-bottom: 0; }
.kbd { display: inline-block; padding: 1px 8px; border-radius: 8px; background: rgba(31, 42, 68, .07); font-weight: 800; white-space: nowrap; }

.contact { margin-top: 28px; padding: 24px; text-align: center; }
.contact p { margin: 0; font-weight: 800; }
.placeholder { background: #FFE7A3; color: var(--ink); padding: 1px 6px; border-radius: 6px; font-weight: 900; }

.draft-note {
  margin: 0 0 28px; padding: 16px 20px; border-radius: var(--r-sm); background: #FFF1C9;
  border: 2px dashed #D9A84A; font-weight: 800; font-size: 16px;
}
.updated { color: var(--ink-soft); font-weight: 800; font-size: 15px; margin: -20px 0 28px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .cursor { transition: none; }
}

@media (max-width: 520px) {
  .btn { padding: 12px 22px; font-size: 17px; }
  .btn small { font-size: 12px; }
  .demo-head .hint { display: none; }
  .demo-tools { justify-content: center; }
  .palette-tabs { justify-content: center; }
  .palette-tab { padding: 7px 10px; font-size: 13.5px; }
  .site-header .btn-sm { padding: 8px 14px; min-height: 38px; font-size: 15px; }
  .site-header .wordmark { font-size: 19px; }
}
@media (max-width: 560px) {
  .finish-bar { flex-wrap: wrap; justify-content: space-between; }
  .finish-bar .progress { order: -1; flex-basis: 100%; }
  .gallery figcaption { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
.picture { position: relative; }
.picture .free {
  position: absolute; top: 18px; left: 18px; z-index: 1; background: var(--ink); color: var(--white);
  font-size: 12px; font-weight: 900; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px;
}
.picture figcaption .jp { font-size: 12.5px; color: var(--vermilion); font-weight: 800; }

/* One quiet line under the demo: the app does more than tap to fill. */
.demo-note { margin: 12px 4px 0; font-size: 0.875rem; line-height: 1.4; text-align: center; color: var(--ink-soft, #6B7280); }

/* Small screens: two rows of four, so each colour has room for its selection ring. */
@media (max-width: 520px) {
  .swatches { grid-template-columns: repeat(4, 1fr); gap: 16px 12px; max-width: 300px; margin-inline: auto; padding: 16px 8px 8px; }
  .swatch { max-width: 52px; }
}
@media (max-width: 520px) {
  .palette-tabs { gap: 4px; }
  .palette-tab { padding-inline: 10px; font-size: 0.8125rem; }
}
@media (max-width: 520px) { .palette-tab .jp { display: none; } }
