/* ============================================================
   spontane.net — design system
   cream / ink / vermilion dot
   ============================================================ */
:root {
  --cream: #F1F1ED;
  --cream-2: #E6E6E1;
  --cream-3: #FAFAF7;
  --ink: #18161A;
  --ink-soft: #4C4850;
  --dot: #E0492A;
  --dot-deep: #C23A1F;
  --blue: #4F6BF0;
  --green: #27B05E;
  --amber: #F2A93B;
  --radius-lg: 28px;
  --radius-md: 18px;
  --font-display: "Bricolage Grotesque", sans-serif;
  --font-brand: "Figtree", sans-serif;
  --font-body: "Figtree", sans-serif;
  --page-pad: clamp(20px, 5vw, 72px);
  --header-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--dot); color: var(--cream-3); }

a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- texture ---------- */
.grain::before {
  content: "";
  position: fixed; inset: -50%;
  pointer-events: none;
  z-index: 4;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* ---------- wordmark ---------- */
.wordmark {
  font-family: var(--font-brand);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 0.06em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark .wm-dot {
  width: 0.26em; height: 0.26em;
  border-radius: 50%;
  background: var(--dot);
  display: inline-block;
  align-self: center;
  translate: 0 -0.42em;
}

/* ---------- intro overlay ---------- */
#intro {
  position: fixed; inset: 0; z-index: 100;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.55s ease, visibility 0.55s;
}
#intro.gone { opacity: 0; visibility: hidden; pointer-events: none; }
.intro-lockup {
  font-family: var(--font-brand);
  font-weight: 800;
  letter-spacing: -0.035em;
  font-size: clamp(48px, 11vw, 150px);
  display: flex; align-items: baseline;
  color: var(--ink);
}
.intro-lockup .ltr {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em) rotate(6deg);
}
#intro.play .ltr {
  animation: ltr-in 0.5s cubic-bezier(0.2, 1.4, 0.3, 1) forwards;
  animation-delay: calc(0.55s + var(--i) * 0.055s);
}
@keyframes ltr-in {
  to { opacity: 1; transform: translateY(0) rotate(0deg); }
}
.intro-dot {
  width: 0.24em; height: 0.24em;
  margin-left: 0.07em;
  border-radius: 50%;
  background: var(--dot);
  align-self: center;
  translate: 0 -0.42em;
  opacity: 0;
}
#intro.play .intro-dot {
  animation: dot-drop 0.9s cubic-bezier(0.3, 0, 0.4, 1) 1.18s forwards;
}
@keyframes dot-drop {
  0%   { opacity: 1; transform: translateY(-220px) scale(1); }
  45%  { opacity: 1; transform: translateY(0) scaleX(1.25) scaleY(0.75); }
  60%  { transform: translateY(-44px) scale(0.95); }
  78%  { transform: translateY(0) scaleX(1.12) scaleY(0.88); }
  88%  { transform: translateY(-10px) scale(1); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.intro-tag {
  position: absolute;
  bottom: 12vh;
  font-size: 14px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0;
}
#intro.play .intro-tag { animation: fade-up 0.6s ease 1.9s forwards; }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 0.85; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  #intro { display: none; }
}

/* ---------- cursor dot ---------- */
#cursor-dot {
  position: fixed; z-index: 90;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--dot);
  pointer-events: none;
  top: 0; left: 0;
  transform: translate(-50%, -50%);
  transition: width 0.25s, height 0.25s, opacity 0.3s;
  opacity: 0;
}
#cursor-dot.on { opacity: 1; }
#cursor-dot.grow { width: 34px; height: 34px; opacity: 0.55; }
@media (hover: none), (prefers-reduced-motion: reduce) { #cursor-dot { display: none; } }

/* ---------- header ---------- */
header.site {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--page-pad);
  background: color-mix(in srgb, var(--cream) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  transition: transform 0.4s ease;
}
header.site .wordmark { font-size: 27px; }
nav.main {
  display: flex; align-items: center; gap: clamp(14px, 2.6vw, 34px);
  font-weight: 600; font-size: 15.5px;
}
nav.main a {
  text-decoration: none;
  position: relative;
  padding: 6px 2px;
  color: var(--ink-soft);
  transition: color 0.2s;
}
nav.main a:hover, nav.main a.active { color: var(--ink); }
nav.main a::after {
  content: "";
  position: absolute; left: 50%; bottom: -2px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--dot);
  transform: translateX(-50%) scale(0);
  transition: transform 0.25s cubic-bezier(0.2, 1.6, 0.4, 1);
}
nav.main a:hover::after, nav.main a.active::after { transform: translateX(-50%) scale(1); }

.lang-switch {
  display: flex; gap: 2px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 3px;
  font-size: 12.5px; font-weight: 700;
}
.lang-switch button {
  padding: 4px 11px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.lang-switch button.on { background: var(--ink); color: var(--cream-3); }

/* ---------- layout ---------- */
main#app { min-height: 100vh; position: relative; z-index: 1; }
footer.site { position: relative; z-index: 2; }
.page { padding-top: var(--header-h); }
.section { padding: clamp(56px, 9vw, 130px) var(--page-pad); }

/* ---------- animated background layer ---------- */
#bg-fx {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
#bg-fx .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  will-change: transform;
}
#bg-fx .blob-a {
  width: 52vw; height: 52vw;
  top: -18vw; right: -14vw;
  background: radial-gradient(circle, color-mix(in srgb, var(--dot) 17%, transparent), transparent 66%);
}
#bg-fx .blob-b {
  width: 44vw; height: 44vw;
  top: 46vh; left: -16vw;
  background: radial-gradient(circle, color-mix(in srgb, var(--blue) 13%, transparent), transparent 66%);
}
#bg-fx .blob-c {
  width: 36vw; height: 36vw;
  bottom: -14vw; right: 8vw;
  background: radial-gradient(circle, color-mix(in srgb, var(--green) 11%, transparent), transparent 66%);
}
@media (prefers-reduced-motion: no-preference) {
  #bg-fx .blob-a { animation: drift-a 22s ease-in-out infinite alternate; }
  #bg-fx .blob-b { animation: drift-b 27s ease-in-out infinite alternate; }
  #bg-fx .blob-c { animation: drift-c 19s ease-in-out infinite alternate; }
}
@keyframes drift-a { to { transform: translate(-9vw, 7vh) scale(1.12); } }
@keyframes drift-b { to { transform: translate(7vw, -9vh) scale(0.92); } }
@keyframes drift-c { to { transform: translate(-6vw, -6vh) scale(1.1); } }
#bg-fx .fx-dot {
  position: absolute;
  left: var(--x); top: var(--y);
  width: var(--s); height: var(--s);
  border-radius: 50%;
  background: var(--dot);
  opacity: 0.22;
}
#bg-fx .fx-dot:nth-child(3n) { background: var(--blue); }
#bg-fx .fx-dot:nth-child(4n) { background: var(--green); }
@media (prefers-reduced-motion: no-preference) {
  #bg-fx .fx-dot { animation: fx-float var(--t, 7s) ease-in-out infinite alternate; }
}
@keyframes fx-float { to { transform: translateY(-26px); } }

/* parallax (JS sets --py on [data-px]) */
[data-px] { translate: 0 var(--py, 0); }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(20px, 4vw, 60px);
  align-items: center;
  align-content: center;
  min-height: calc(100svh - var(--header-h) - 74px); /* leave room so the marquee is visible on first load */
  padding: clamp(10px, 2vh, 24px) var(--page-pad) clamp(16px, 2.5vh, 32px);
  position: relative;
}
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
}
.hero-kicker {
  font-size: clamp(12px, 1.3vw, 15px);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--dot);
  margin-bottom: clamp(14px, 2.2vh, 24px);
  display: flex; align-items: center; gap: 14px;
}
.hero-kicker::before { content: ""; width: 38px; height: 2px; background: var(--dot); }
h1.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(42px, 6.6vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
  max-width: 13ch;
}
h1.hero-title .accent { color: var(--dot); }
h1.hero-title .hollow {
  color: transparent;
  -webkit-text-stroke: 2.5px var(--ink);
}
.hero-sub {
  margin-top: clamp(16px, 2.4vh, 28px);
  font-size: clamp(16px, 1.5vw, 20px);
  max-width: 52ch;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.hero-cta-row { display: flex; gap: 16px; margin-top: clamp(20px, 3vh, 36px); flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 10px; left: var(--page-pad);
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 600;
}
.hero-scroll .pulse {
  width: 9px; height: 9px; border-radius: 50%; background: var(--dot);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-scroll .pulse { animation: pulse-fall 1.8s ease-in-out infinite; }
}
@keyframes pulse-fall {
  0%, 100% { transform: translateY(-4px); opacity: 1; }
  50% { transform: translateY(6px); opacity: 0.5; }
}

/* ---------- hero 3D visual ---------- */
.hero-visual {
  position: relative;
  display: flex; justify-content: center; align-items: center;
  perspective: 1300px;
  min-height: 340px;
}
.h3d {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(-20deg) rotateX(7deg);
}
@media (prefers-reduced-motion: no-preference) {
  .h3d { animation: h3d-sway 9s ease-in-out infinite alternate; }
}
@keyframes h3d-sway {
  from { transform: rotateY(-24deg) rotateX(8deg) translateY(0); }
  to   { transform: rotateY(-6deg)  rotateX(3deg) translateY(-14px); }
}
.h3d-phone {
  width: clamp(190px, 17vw, 245px);
  border-radius: 38px;
  border: 7px solid var(--ink);
  background: var(--ink);
  overflow: hidden;
  box-shadow: -28px 40px 70px -30px rgba(24, 22, 26, 0.45);
  transform: translateZ(30px);
}
.h3d-phone img { width: 100%; border-radius: 34px; }

/* generic in-phone screen (CSS-drawn, no app screenshot) */
.h3d-screen {
  aspect-ratio: 9 / 18.5;
  border-radius: 34px;
  background:
    radial-gradient(130% 80% at 85% -5%, color-mix(in srgb, var(--dot) 14%, transparent), transparent 55%),
    radial-gradient(120% 90% at 0% 105%, color-mix(in srgb, var(--blue) 12%, transparent), transparent 58%),
    var(--cream-3);
  display: flex; flex-direction: column;
  padding: 16px 18px 14px;
}
.scr-status { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.scr-status .scr-pill { grid-column: 2; }
.scr-time { font-weight: 700; font-size: 12px; letter-spacing: 0.02em; grid-column: 1; justify-self: start; }
.scr-pill { width: 46px; height: 13px; border-radius: 999px; background: var(--ink); }
.scr-brand {
  font-family: var(--font-brand);
  font-weight: 800;
  letter-spacing: -0.035em;
  font-size: 25px;
  display: inline-flex; align-items: baseline; gap: 0.06em;
  margin: 26px 0 20px;
}
.scr-dot { width: 0.26em; height: 0.26em; border-radius: 50%; background: var(--dot); align-self: center; translate: 0 -0.42em; }
.scr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.scr-tile { aspect-ratio: 1; border-radius: 30%; }
.scr-tile.t1 { background: var(--ink); }
.scr-tile.t2 { background: var(--dot); }
.scr-tile.t3 { border: 2px dashed color-mix(in srgb, var(--ink) 38%, transparent); }
.scr-tile.t4 { background: var(--blue); }
.scr-tile.t5 { border: 2px dashed color-mix(in srgb, var(--ink) 38%, transparent); }
.scr-tile.t6 { background: var(--amber); }
@media (prefers-reduced-motion: no-preference) {
  .scr-tile { animation: tile-pop 0.55s cubic-bezier(0.2, 1.5, 0.4, 1) both; }
  .scr-tile.t1 { animation-delay: 0.7s; }
  .scr-tile.t2 { animation-delay: 0.82s; }
  .scr-tile.t3 { animation-delay: 0.94s; }
  .scr-tile.t4 { animation-delay: 1.06s; }
  .scr-tile.t5 { animation-delay: 1.18s; }
  .scr-tile.t6 { animation-delay: 1.3s; }
}
@keyframes tile-pop { from { transform: scale(0); } to { transform: scale(1); } }
.scr-bar { margin-top: auto; display: flex; justify-content: center; }
.scr-bar span { width: 38%; height: 5px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 28%, transparent); }
.h3d-ring {
  position: absolute; inset: -14% -22%;
  border: 1.5px dashed color-mix(in srgb, var(--ink) 30%, transparent);
  border-radius: 50%;
  transform: translateZ(-60px);
}
@media (prefers-reduced-motion: no-preference) {
  .h3d-ring { animation: ring-spin 32s linear infinite; }
}
@keyframes ring-spin {
  from { transform: translateZ(-60px) rotate(0deg); }
  to   { transform: translateZ(-60px) rotate(360deg); }
}
.h3d-ring .o-dot {
  position: absolute;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--dot);
  top: -8px; left: 50%;
}
.h3d-ring .o-dot.o2 { top: auto; bottom: -8px; left: 22%; background: var(--blue); width: 11px; height: 11px; }
.h3d-ring .o-dot.o3 { top: 38%; left: auto; right: -8px; background: var(--green); width: 9px; height: 9px; }
.h3d-chip {
  position: absolute;
  border: 1.5px solid var(--ink);
  background: var(--cream-3);
  border-radius: 50%;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  box-shadow: 0 10px 26px -12px rgba(24, 22, 26, 0.45);
}
.h3d-chip svg { width: 26px; height: 26px; color: var(--ink); }
.h3d-chip3 svg { color: var(--amber); }
.h3d-chip1 { top: 7%; left: -10%; transform: translateZ(85px); }
.h3d-chip2 { bottom: 18%; right: -13%; transform: translateZ(110px); background: var(--ink); }
.h3d-chip2 svg { color: var(--cream-3); }
.h3d-chip3 { bottom: -4%; left: -4%; transform: translateZ(60px); }
@media (prefers-reduced-motion: no-preference) {
  .h3d-chip1 { animation: chip-z1 6s ease-in-out infinite alternate; }
  .h3d-chip2 { animation: chip-z2 7s ease-in-out infinite alternate; }
  .h3d-chip3 { animation: chip-z3 8s ease-in-out infinite alternate; }
}
@keyframes chip-z1 { to { transform: translateZ(85px) translateY(-12px); } }
@keyframes chip-z2 { to { transform: translateZ(110px) translateY(10px); } }
@keyframes chip-z3 { to { transform: translateZ(60px) translateY(-8px); } }
@media (max-width: 980px) {
  .hero-visual { display: none; }
}

/* word-by-word reveal (transition-based) */
.split-words .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding: 0 0.15em 0.12em 0;
  margin: 0 -0.15em -0.12em 0;
}
.split-words .w > span {
  display: inline-block;
  transform: translateY(110%);
}
@media (prefers-reduced-motion: no-preference) {
  .split-words .w > span {
    transition: transform 0.7s cubic-bezier(0.2, 0.9, 0.25, 1);
    transition-delay: calc(0.15s + var(--i) * 0.07s);
  }
}
.page-ready .split-words .w > span { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .split-words .w > span { transform: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 16px;
  padding: 15px 28px;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  transition: transform 0.2s cubic-bezier(0.2, 1.4, 0.4, 1), background 0.2s, color 0.2s, box-shadow 0.2s;
  min-height: 44px;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--ink); color: var(--cream-3); }
.btn-primary:hover { box-shadow: 0 8px 24px -8px rgba(23, 19, 16, 0.5); }
.btn-primary .b-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dot); transition: transform 0.25s; }
.btn-primary:hover .b-dot { transform: scale(1.5); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream-3); }

/* ---------- marquee ---------- */
.marquee {
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  overflow: hidden;
  padding: 16px 0;
  background: var(--cream-2);
  display: flex;
}
.marquee-track {
  display: flex; gap: 0; flex-shrink: 0;
  align-items: center;
  white-space: nowrap;
}
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 30s linear infinite; }
}
@keyframes marquee { to { transform: translateX(-100%); } }
.marquee-track span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(17px, 2vw, 24px);
  letter-spacing: 0.01em;
  display: inline-flex; align-items: center; gap: 28px;
  padding-right: 28px;
}
.marquee-track span::after {
  content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--dot);
  flex: none;
}

/* ---------- section headers ---------- */
.sec-head { margin-bottom: clamp(34px, 5vw, 64px); max-width: 880px; }
.sec-kicker {
  font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase;
  font-weight: 700; color: var(--dot); margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
.sec-kicker::before { content: ""; width: 28px; height: 2px; background: var(--dot); }
h2.sec-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 4.6vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.sec-sub { margin-top: 18px; color: var(--ink-soft); font-size: clamp(16px, 1.5vw, 19px); max-width: 56ch; text-wrap: pretty; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); }
@media (prefers-reduced-motion: no-preference) {
  .reveal { transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.9, 0.25, 1); transition-delay: var(--d, 0s); }
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- app showcase (redesigned) ---------- */
.app-showcase { display: flex; flex-direction: column; gap: clamp(18px, 2.5vw, 30px); }
.app-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--cream-3);
  text-decoration: none;
  overflow: hidden;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.2, 1.2, 0.4, 1), box-shadow 0.35s;
}
.app-hero-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -22px rgba(24, 22, 26, 0.45); }
@media (max-width: 880px) { .app-hero-card { grid-template-columns: 1fr; } }
.ahc-info {
  padding: clamp(22px, 2.6vw, 36px);
  display: flex; flex-direction: column; gap: 14px;
  justify-content: center;
}
.ahc-visual {
  position: relative;
  display: flex; align-items: flex-end; justify-content: center;
  padding: clamp(20px, 2.4vw, 34px) clamp(20px, 2.4vw, 34px) 0;
  background:
    radial-gradient(120% 110% at 80% 15%, color-mix(in srgb, var(--dot) 13%, transparent), transparent 58%),
    radial-gradient(110% 100% at 15% 90%, color-mix(in srgb, var(--blue) 12%, transparent), transparent 60%),
    var(--cream-2);
  overflow: hidden;
  min-height: 210px;
}
.ahc-visual img {
  width: min(52%, 210px);
  aspect-ratio: 353 / 660;
  object-fit: cover;
  object-position: top;
  border-radius: 26px 26px 0 0;
  border: 5px solid var(--ink);
  border-bottom: none;
  transform: translateY(14px) rotate(2.2deg);
  transition: transform 0.5s cubic-bezier(0.2, 1, 0.3, 1);
  box-shadow: -18px 0 44px -22px rgba(24, 22, 26, 0.5);
}
.app-hero-card:hover .ahc-visual img { transform: translateY(0) rotate(0deg); }
.ahc-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.ahc-tags .meta-pill { white-space: nowrap; }
.soon-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(18px, 2.5vw, 30px);
}
.soon-card {
  border: 1.5px dashed color-mix(in srgb, var(--ink) 55%, transparent);
  border-radius: var(--radius-md);
  padding: clamp(20px, 2.4vw, 30px);
  display: flex; align-items: center; gap: 18px;
  background: transparent;
  transition: transform 0.3s cubic-bezier(0.2, 1.2, 0.4, 1), border-color 0.3s, background 0.3s;
}
.soon-card:hover {
  transform: translateY(-4px);
  border-style: solid; border-color: var(--ink);
  background: var(--cream-3);
}
.soon-card .app-icon { width: 58px; height: 58px; border-radius: 16px; font-size: 24px; background: var(--cream-2); font-family: var(--font-display); font-weight: 800; color: var(--ink-soft); }
.soon-card h3 { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.015em; margin-bottom: 3px; }
.soon-card p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }
.soon-card:hover .q { display: inline-block; animation: wiggle 0.5s ease; }
@media (max-width: 560px) {
  /* stack: icon + badge on top row, text full-width below */
  .soon-card { flex-wrap: wrap; gap: 14px 18px; }
  .soon-card .app-icon { order: 1; margin-right: auto; }
  .soon-card .badge { order: 2; }
  .soon-card > div:not(.app-icon) { order: 3; flex: 1 1 100%; }
}

/* ---------- legacy app cards (detail page still uses some bits) ---------- */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: clamp(18px, 2.5vw, 30px);
}
.app-card {
  position: relative;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--cream-3);
  text-decoration: none;
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.2, 1.2, 0.4, 1), box-shadow 0.3s;
}
.app-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px -18px rgba(23, 19, 16, 0.4); }
.app-card.featured { grid-row: span 2; }
.app-card-body { padding: clamp(24px, 3vw, 38px); display: flex; flex-direction: column; gap: 16px; flex: 1; }
.app-card-top { display: flex; align-items: center; gap: 18px; }
.app-icon {
  width: 72px; height: 72px; border-radius: 20px;
  flex: none;
  display: grid; place-items: center;
  font-size: 34px;
  border: 1.5px solid var(--ink);
  overflow: hidden;
}
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-icon.kpss { background: linear-gradient(145deg, #5A79FF, #3D55D9); color: #fff; }
.app-card h3 {
  font-family: var(--font-display);
  font-weight: 800; font-size: clamp(22px, 2.1vw, 27px);
  letter-spacing: -0.02em; line-height: 1.1;
}
.app-card .app-tagline { color: var(--ink-soft); font-size: 16px; max-width: 46ch; text-wrap: pretty; }
.badge-row { display: flex; gap: 8px; flex-wrap: wrap; }
.badge {
  font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  white-space: nowrap;
  flex: none;
}
.badge.live { background: var(--green); border-color: var(--green); color: #fff; }
.badge.soon { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.app-card-shot {
  margin-top: auto;
  padding: 0 clamp(24px, 3vw, 38px);
  display: flex; justify-content: center;
}
.app-card-shot img {
  width: min(78%, 320px);
  border-radius: 28px 28px 0 0;
  border: 6px solid var(--ink);
  border-bottom: none;
  transform: translateY(8px);
  transition: transform 0.45s cubic-bezier(0.2, 1, 0.3, 1);
}
.app-card:hover .app-card-shot img { transform: translateY(-4px) rotate(-1deg); }
.app-card-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 15.5px;
  margin-top: 4px;
}
.app-card-link .arr { transition: transform 0.25s; }
.app-card:hover .app-card-link .arr { transform: translateX(5px); }

.app-card.mystery { border-style: dashed; background: transparent; min-height: 220px; }
.app-card.mystery:hover { transform: translateY(-3px); box-shadow: none; border-style: solid; }
.app-card.mystery .app-icon {
  background: var(--cream-2);
  font-family: var(--font-display); font-weight: 800;
  color: var(--ink-soft);
}
.app-card.mystery .q {
  display: inline-block;
}
@media (prefers-reduced-motion: no-preference) {
  .app-card.mystery:hover .q { animation: wiggle 0.5s ease; }
}
@keyframes wiggle { 25% { transform: rotate(-9deg); } 75% { transform: rotate(9deg); } }

/* ---------- manifesto ---------- */
.manifesto { background: var(--ink); color: var(--cream); position: relative; }
.manifesto .sec-kicker { color: var(--dot); }
.manifesto p.big {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 54px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  max-width: 24ch;
  text-wrap: balance;
}
.manifesto p.big .mw { opacity: 0.18; transition: opacity 0.45s ease; }
.manifesto p.big .mw.lit { opacity: 1; }
.manifesto p.big .dot-word { color: var(--dot); }
.manifesto-foot { margin-top: clamp(30px, 5vw, 60px); display: flex; gap: 14px; flex-wrap: wrap; }
.manifesto .btn-ghost { border-color: var(--cream); color: var(--cream); }
.manifesto .btn-ghost:hover { background: var(--cream); color: var(--ink); }

/* ---------- manifesto: rotating brand stamp + cursor light ---------- */
.manifesto-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
}
/* soft light that follows the cursor across the dark section */
.manifesto::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: var(--spot, 0);
  transition: opacity 0.6s ease;
  background: radial-gradient(560px circle at var(--mx, 70%) var(--my, 50%),
    rgba(224, 73, 42, 0.10), rgba(241, 241, 237, 0.03) 38%, transparent 68%);
}
.manifesto-visual {
  position: relative;
  width: clamp(250px, 27vw, 360px);
  aspect-ratio: 1;
  margin-right: clamp(0px, 1.5vw, 30px);
}
.stamp { position: absolute; inset: 0; will-change: transform; }
.stamp::before {
  content: "";
  position: absolute; inset: 22%;
  border: 1.5px dashed color-mix(in srgb, var(--cream) 20%, transparent);
  border-radius: 50%;
}
.stamp-ring {
  position: absolute; inset: 0;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: clamp(14px, 1.5vw, 19px);
  color: color-mix(in srgb, var(--cream) 82%, transparent);
}
.stamp-ring span {
  position: absolute; left: 50%; top: 50%;
  transform: rotate(var(--ca)) translateY(-8.4em) translateX(-50%);
  transform-origin: 0 0;
}
.stamp-ring span svg {
  display: block;
  width: 1.5em; height: 1.5em;
  /* cancel the orbit angle (and the spin, via animation below) so icons stay upright */
  transform: rotate(calc(-1 * var(--ca)));
  /* JS sets the scale property when the cursor is near (magnet effect) */
  transition: scale 0.3s ease;
}
.stamp-dot { position: absolute; inset: 33%; display: block; }
.sd-core {
  display: block;
  width: 100%; height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 32%, #EE5B3C, var(--dot) 58%, var(--dot-deep));
  box-shadow: 0 0 42px rgba(224, 73, 42, 0.3);
  transition: box-shadow 0.45s ease;
}
.stamp-dot.near .sd-core { box-shadow: 0 0 70px rgba(224, 73, 42, 0.55), 0 0 140px rgba(224, 73, 42, 0.22); }
@media (prefers-reduced-motion: no-preference) {
  .stamp-ring { animation: stamp-spin 40s linear infinite; }
  .stamp-ring span svg { animation: stamp-counter-spin 40s linear infinite; }
  .sd-core { animation: stamp-breathe 5.5s ease-in-out infinite; }
}
@keyframes stamp-spin { to { rotate: 360deg; } }
@keyframes stamp-counter-spin {
  from { transform: rotate(calc(-1 * var(--ca))); }
  to { transform: rotate(calc(-1 * var(--ca) - 360deg)); }
}
@keyframes stamp-breathe {
  0%, 100% { scale: 1; }
  50% { scale: 1.06; }
}
@media (max-width: 820px) {
  .manifesto-grid { grid-template-columns: 1fr; }
  .manifesto-visual {
    width: clamp(220px, 62vw, 290px);
    margin: 18px auto 0;
  }
  .stamp-ring { font-size: clamp(12.5px, 3.45vw, 16px); }
}

/* ---------- stat strip ---------- */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: clamp(16px, 2vw, 26px); }
.value-card {
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-md);
  padding: clamp(22px, 2.6vw, 34px);
  background: var(--cream-3);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 1.2, 0.4, 1), box-shadow 0.35s;
}
.value-card::after {
  content: "";
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  top: -110px; right: -110px;
  background: radial-gradient(circle, color-mix(in srgb, var(--vc-color, var(--dot)) 16%, transparent), transparent 70%);
  transform: scale(0);
  transition: transform 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}
.value-card:hover { transform: translateY(-7px); box-shadow: 0 20px 44px -22px rgba(24, 22, 26, 0.4); }
.value-card:hover::after { transform: scale(1.6); }
.value-card .v-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--vc-color, var(--dot));
  margin-bottom: 18px;
  transition: transform 0.35s cubic-bezier(0.2, 1.6, 0.4, 1), box-shadow 0.35s;
  position: relative; z-index: 1;
}
.value-card:hover .v-dot {
  transform: scale(1.45);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--vc-color, var(--dot)) 18%, transparent);
}
.value-card:nth-child(2) { --vc-color: var(--blue); }
.value-card:nth-child(3) { --vc-color: var(--green); }
.value-card h3 { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; position: relative; z-index: 1; transition: color 0.3s; }
.value-card:hover h3 { color: color-mix(in srgb, var(--vc-color, var(--dot)) 75%, var(--ink)); }
.value-card p { color: var(--ink-soft); font-size: 16px; text-wrap: pretty; position: relative; z-index: 1; }

/* ---------- footer ---------- */
footer.site {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(48px, 7vw, 90px) var(--page-pad) 36px;
  overflow: hidden;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(150px, 1fr));
  gap: clamp(28px, 4vw, 60px);
  padding-bottom: clamp(40px, 6vw, 80px);
}
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-col h4 {
  font-size: 12.5px; letter-spacing: 0.26em; text-transform: uppercase;
  color: color-mix(in srgb, var(--cream) 55%, transparent);
  margin-bottom: 18px; font-weight: 700;
}
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.foot-col a { text-decoration: none; font-size: 15.5px; color: var(--cream); opacity: 0.85; transition: opacity 0.2s, color 0.2s; }
.foot-col a:hover { opacity: 1; color: var(--dot); }
.foot-desc { font-size: 15.5px; opacity: 0.7; max-width: 36ch; text-wrap: pretty; }
.foot-mark {
  font-family: var(--font-brand);
  font-weight: 800;
  letter-spacing: -0.035em;
  font-size: clamp(64px, 14vw, 220px);
  line-height: 0.9;
  display: flex; align-items: baseline; gap: 0.05em;
  color: var(--cream);
  user-select: none;
  margin: 0 calc(var(--page-pad) * -0.2);
}
.foot-mark .wm-dot { width: 0.23em; height: 0.23em; border-radius: 50%; background: var(--dot); align-self: center; translate: 0 -0.42em; }
.foot-legal {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  border-top: 1px solid color-mix(in srgb, var(--cream) 16%, transparent);
  padding-top: 26px; margin-top: 30px;
  font-size: 13.5px; opacity: 0.6;
}

/* ---------- generic content page (legal etc.) ---------- */
.doc {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 90px) var(--page-pad) clamp(70px, 9vw, 130px);
}
.doc-kicker { font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 700; color: var(--dot); margin-bottom: 16px; }
.doc h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 5.4vw, 64px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 12px;
  text-wrap: balance;
}
.doc .doc-meta { color: var(--ink-soft); font-size: 15px; margin-bottom: clamp(30px, 4vw, 50px); }
.doc h2 {
  font-family: var(--font-display);
  font-weight: 700; font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.015em;
  margin: clamp(34px, 4.5vw, 54px) 0 14px;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.doc h3 { font-size: 19px; font-weight: 700; margin: 26px 0 10px; }
.doc p { margin-bottom: 14px; color: var(--ink-soft); text-wrap: pretty; }
.doc strong { color: var(--ink); }
.doc ul, .doc ol { margin: 0 0 16px 22px; color: var(--ink-soft); display: flex; flex-direction: column; gap: 7px; }
.doc a { color: var(--dot-deep); font-weight: 600; text-underline-offset: 3px; }
.doc .callout {
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-md);
  background: var(--cream-3);
  padding: 22px 26px;
  margin: 24px 0;
}
.doc .callout p:last-child { margin-bottom: 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 18px 0 24px; font-size: 15.5px; }
@media (max-width: 700px) {
  .doc table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
.doc th, .doc td { text-align: left; padding: 11px 14px; border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); vertical-align: top; }
.doc th { background: var(--cream-2); font-weight: 700; }
.doc td { color: var(--ink-soft); }

/* ---------- app detail ---------- */
.detail-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
  padding: clamp(40px, 6vw, 80px) var(--page-pad) clamp(30px, 4vw, 60px);
}
@media (max-width: 900px) { .detail-hero { grid-template-columns: 1fr; } }
.detail-hero .app-icon { width: 92px; height: 92px; border-radius: 24px; font-size: 44px; margin-bottom: 24px; }
.detail-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 6.4vw, 88px);
  letter-spacing: -0.03em; line-height: 1;
  margin-bottom: 18px;
}
.detail-hero .lead { font-size: clamp(17px, 1.8vw, 21px); color: var(--ink-soft); max-width: 46ch; text-wrap: pretty; }
.store-row { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  padding: 11px 20px 11px 16px;
  text-decoration: none;
  background: var(--ink); color: var(--cream-3);
  transition: transform 0.2s, opacity 0.2s;
  min-height: 56px;
}
.store-btn:hover { transform: translateY(-2px); }
.store-btn.disabled { opacity: 0.55; cursor: default; }
.store-btn.disabled:hover { transform: none; }
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn .s-lines { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-btn .s-top { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }
.store-btn .s-name { font-weight: 700; font-size: 16.5px; }
.soon-pill {
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em;
  background: var(--amber); color: var(--ink);
  border-radius: 999px; padding: 3px 9px;
  margin-left: 4px;
}

/* phone frame */
.phone-wrap { display: flex; justify-content: center; position: relative; }
.phone {
  width: min(320px, 78vw);
  border-radius: 44px;
  border: 8px solid var(--ink);
  background: var(--ink);
  box-shadow: 0 30px 60px -25px rgba(23, 19, 16, 0.5);
  overflow: hidden;
  position: relative;
  transform: rotate(2.5deg);
  transition: transform 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}
.phone:hover { transform: rotate(0deg) scale(1.015); }
.phone img { width: 100%; aspect-ratio: 353 / 772; object-fit: cover; object-position: top; border-radius: 36px; }
.phone-blob {
  position: absolute; inset: -8% -14%;
  background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--blue) 30%, transparent), transparent 68%);
  z-index: -1;
  border-radius: 50%;
}
.float-chip {
  position: absolute;
  border: 1.5px solid var(--ink);
  background: var(--cream-3);
  border-radius: 999px;
  font-weight: 700; font-size: 14px;
  padding: 9px 17px;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 8px 20px -10px rgba(23, 19, 16, 0.4);
}
.float-chip .c-dot { width: 8px; height: 8px; border-radius: 50%; }
@media (prefers-reduced-motion: no-preference) {
  .float-chip { animation: floaty 5s ease-in-out infinite; }
}
@keyframes floaty { 50% { transform: translateY(-10px); } }
.chip-1 { top: 12%; left: 0; animation-delay: 0s; }
.chip-2 { bottom: 22%; right: 0; animation-delay: 1.4s; }
.chip-3 { bottom: 4%; left: 6%; animation-delay: 2.6s; }
@media (max-width: 900px) {
  .chip-1 { left: 2%; } .chip-2 { right: 2%; }
  .phone-blob { inset: -6% 0; }
}

/* feature list */
.feat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(16px, 2vw, 26px);
}
.feat {
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-md);
  background: var(--cream-3);
  padding: clamp(22px, 2.6vw, 32px);
}
.feat .f-num {
  font-family: var(--font-display);
  font-weight: 800; font-size: 15px;
  color: var(--dot);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  display: block;
}
.feat h3 { font-family: var(--font-display); font-size: 21px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.feat p { color: var(--ink-soft); font-size: 16px; text-wrap: pretty; }

.detail-meta {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 28px;
}
.meta-pill {
  border: 1.5px solid color-mix(in srgb, var(--ink) 35%, transparent);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 14px; font-weight: 600;
  color: var(--ink-soft);
}

/* legal links strip on detail */
.legal-strip {
  border-top: 1.5px solid var(--ink);
  background: var(--cream-2);
  padding: clamp(28px, 4vw, 44px) var(--page-pad);
  display: flex; align-items: center; gap: 18px 34px; flex-wrap: wrap;
  font-weight: 600; font-size: 15.5px;
}
.legal-strip a { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.legal-strip a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dot); }
.legal-strip a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- contact / about ---------- */
.contact-single { max-width: 720px; }
.contact-single .contact-card {
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--cream-3);
  padding: clamp(26px, 3.4vw, 44px);
  display: flex; flex-direction: column; gap: clamp(20px, 3vw, 32px);
}
.contact-topics {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px);
  padding-top: clamp(16px, 2vw, 24px);
  border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
}
@media (max-width: 600px) { .contact-topics { grid-template-columns: 1fr; } }
.contact-topic h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.contact-topic p { color: var(--ink-soft); font-size: 15px; margin: 0; }
.contact-addr { color: var(--ink-soft); font-size: 15px; margin: 0;
  padding-top: clamp(14px, 1.8vw, 20px);
  border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
}
.contact-email {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 30px);
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 3px solid var(--dot);
  padding-bottom: 2px;
  display: inline-block;
  transition: color 0.2s;
  word-break: break-all;
}
.contact-email:hover { color: var(--dot-deep); }

/* form (data deletion) */
.mail-template {
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-md);
  background: var(--cream-3);
  overflow: hidden;
  margin: 22px 0 14px;
}
.mail-template .mt-row {
  display: flex; gap: 12px; align-items: baseline;
  padding: 13px 22px;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
  font-size: 15.5px;
}
.mail-template .mt-row .mt-label {
  font-weight: 700; font-size: 12.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft);
  min-width: 52px;
}
.mail-template .mt-row a { color: var(--dot-deep); font-weight: 700; text-decoration: none; }
.mail-template .mt-row a:hover { text-decoration: underline; text-underline-offset: 3px; }
.mail-template pre {
  font: inherit;
  white-space: pre-wrap;
  padding: 20px 22px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.mail-template pre mark {
  background: color-mix(in srgb, var(--amber) 35%, transparent);
  color: var(--ink);
  border-radius: 5px;
  padding: 1px 6px;
  font-weight: 600;
}
.mt-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 0 0 10px; }
.mt-copied { color: var(--green); font-weight: 700; font-size: 15px; }

.form-grid { display: flex; flex-direction: column; gap: 18px; margin-top: 8px; }
.form-field label { display: block; font-weight: 700; font-size: 14.5px; margin-bottom: 7px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  font: inherit;
  padding: 13px 16px;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  background: var(--cream-3);
  color: var(--ink);
  outline: none;
  transition: box-shadow 0.2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot) 30%, transparent);
}
.form-note { font-size: 14px; color: var(--ink-soft); }
.form-ok {
  border: 1.5px solid var(--green);
  background: color-mix(in srgb, var(--green) 12%, var(--cream-3));
  border-radius: 14px; padding: 16px 20px; font-weight: 600;
}

/* breadcrumb-ish back link */
.backlink {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 15px;
  text-decoration: none;
  margin-bottom: 26px;
  color: var(--ink-soft);
}
.backlink:hover { color: var(--ink); }

/* mobile nav tweaks */
@media (max-width: 640px) {
  nav.main { gap: 14px; font-size: 14px; }
  nav.main a.hide-sm { display: none; }
  header.site .wordmark { font-size: 23px; }
}
@media (max-width: 400px) {
  header.site { padding: 0 14px; }
  nav.main { gap: 10px; font-size: 13.5px; }
  header.site .wordmark { font-size: 21px; }
  .lang-switch button { padding: 4px 8px; }
}
@media (max-width: 340px) {
  /* wordmark already links home */
  nav.main a[data-nav="apps"] { display: none; }
}

/* page transition */
#app .page { animation: page-in 0.45s ease both; }
@media (prefers-reduced-motion: reduce) { #app .page { animation: none; } }
@keyframes page-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
