/* LoveType — site visual system (1.2 glare design).
   Same system as withpois.com: the browser window is the glass, an edge light runs around it,
   one white pill, quiet type. LoveType's palette: plum ground, rose / violet / blue-violet light,
   DM Serif Display for statements. Generated pages link this one file. */

@font-face {
  font-family: "DM Serif Display";
  src: url("/assets/fonts/dm-serif-display.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0e0910;
  --bezel: #040204;
  --ink: #f5eef2;
  --ink-2: rgb(245 238 242 / 0.66);
  --ink-3: rgb(245 238 242 / 0.58);
  --ink-dim: rgb(245 238 242 / 0.42);
  --ink-4: rgb(245 238 242 / 0.22);
  --hair: rgb(255 220 240 / 0.09);
  --hair-2: rgb(255 220 240 / 0.16);
  --surface: rgb(255 240 250 / 0.04);
  --surface-2: rgb(255 240 250 / 0.07);
  --rose: #c07090;
  --rose-l: #dda0b8;
  --blush: #e8c8d8;
  --violet: #a080c0;
  --violet-l: #c0a0dc;
  --blue: #7080c0;
  --blue-l: #98a4dc;
  --gold-soft: #d9c39a;
  --accent: var(--rose-l);
  --serif: "DM Serif Display", "Iowan Old Style", Georgia, "Hiragino Mincho ProN", "Songti TC", "Noto Serif CJK JP", "Noto Serif CJK TC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 5.4vw, 84px);
  --max: 1240px;
  --read: 680px;
  --ease: cubic-bezier(0.45, 0, 0.35, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --glass-inset: 0px;
  --glass-radius: 0px;
  color-scheme: dark;
}
@media (min-width: 900px) {
  :root {
    --glass-inset: 12px;
    --glass-radius: 44px;
  }
}
@supports (corner-shape: squircle) {
  @media (min-width: 900px) {
    :root { --glass-radius: 84px; }
  }
  .viewport-light, .glass-frame::before, .phone { corner-shape: squircle; }
}

[data-family="attachment"] { --accent: var(--rose-l); --accent-deep: var(--rose); }
[data-family="loveStyle"] { --accent: var(--violet-l); --accent-deep: var(--violet); }
[data-family="conflict"] { --accent: var(--blue-l); --accent-deep: var(--blue); }
[data-family="profile"], [data-family="full"] { --accent: var(--blush); --accent-deep: var(--rose); }

*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--bg);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 96px;
  overflow-x: clip;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
h1, h2, h3, h4, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blush); outline-offset: 4px; border-radius: 8px; }
::selection { background: rgb(192 112 144 / 0.4); color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 50; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 700; }
.skip:focus { top: 16px; }

/* ─── The glass ─────────────────────────────────────────────────────────────── */
.viewport-light {
  position: fixed;
  inset: var(--glass-inset);
  width: calc(100% - 2 * var(--glass-inset));
  height: calc(100% - 2 * var(--glass-inset));
  z-index: 0;
  pointer-events: none;
  display: block;
}
.glass-frame { display: none; }
@media (min-width: 900px) {
  html { background: var(--bezel); }
  .viewport-light { border-radius: var(--glass-radius); }
  .glass-frame { display: block; position: fixed; inset: 0; z-index: 40; pointer-events: none; }
  .glass-frame::before {
    content: "";
    position: absolute;
    inset: var(--glass-inset);
    border-radius: var(--glass-radius);
    box-shadow: 0 0 0 max(100vw, 100vh) var(--bezel), inset 0 0 0 1px rgb(255 230 245 / 0.04);
  }
}
.no-webgl body {
  background:
    radial-gradient(42vmax 30vmax at 0% 18%, rgb(192 112 144 / 0.22), transparent 70%),
    radial-gradient(36vmax 26vmax at 100% 90%, rgb(112 128 192 / 0.14), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
.page { position: relative; z-index: 1; }

/* ─── Type ──────────────────────────────────────────────────────────────────── */
.label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.label .sep { opacity: 0.5; margin-inline: 0.5em; }
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(50px, 8.2vw, 118px);
  line-height: 0.98;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.statement {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.008em;
  text-wrap: balance;
}
.statement-s { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; text-wrap: balance; }
.dim { color: var(--ink-dim); }
.display .dim, .statement .dim { display: block; }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--ink-2); font-weight: 450; max-width: 34em; text-wrap: pretty; }
.body { color: var(--ink-2); text-wrap: pretty; }
.small { font-size: 14px; color: var(--ink-3); }
.serif { font-family: var(--serif); font-weight: 400; }
.wordmark { font-weight: 900; font-size: 13px; letter-spacing: 0.34em; text-transform: uppercase; }

/* ─── Layout ────────────────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.read { max-width: calc(var(--read) + 2 * var(--gutter)); }
.section { padding-block: clamp(96px, 14vw, 200px); position: relative; }
.section-tight { padding-block: clamp(64px, 9vw, 120px); }
.stack > * + * { margin-top: var(--gap, 24px); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ─── Header ────────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: var(--glass-inset);
  left: var(--glass-inset);
  right: var(--glass-inset);
  z-index: 30;
  padding: 0 var(--gutter);
  transition: background-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-radius: var(--glass-radius) var(--glass-radius) 0 0;
}
.site-header.scrolled {
  background: rgb(14 9 16 / 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; max-width: var(--max); margin-inline: auto; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
.brand-heart { width: 15px; height: 15px; color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a { font-size: 14.5px; font-weight: 550; color: var(--ink-2); transition: color 0.25s; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; align-items: center; justify-content: center; }
.menu-btn span { display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; transition: transform 0.3s var(--ease); }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--ink); transition: transform 0.3s var(--ease); }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 960px) {
  .site-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .menu-open .site-header { background: #0e0910; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .menu-open .site-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px var(--gutter) 32px;
    background: #0e0910;
    z-index: 60;
  }
  .menu-open { overflow: hidden; }
  .menu-open .site-nav a { font-family: var(--serif); font-size: 30px; color: var(--ink); padding: 6px 0; }
}

/* ─── Pills ─────────────────────────────────────────────────────────────────── */
@property --glint-angle { syntax: "<angle>"; inherits: true; initial-value: -100deg; }
.pill {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 30px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: transform 0.15s ease-out, box-shadow 0.6s var(--ease), background-color 0.4s var(--ease);
}
.pill svg { width: 17px; height: 17px; flex: none; }
.pill-s { min-height: 40px; padding: 0 18px; font-size: 14px; gap: 8px; }
.pill-s svg { width: 14px; height: 14px; }
@media (hover: hover) {
  .pill:hover { background: #fff; box-shadow: 0 14px 44px -14px rgb(192 112 144 / 0.7), 0 0 0 1px rgb(232 200 216 / 0.3); }
}
.pill:active { transform: scale(0.975); }
.pill-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair-2); }
@media (hover: hover) {
  .pill-ghost:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1px rgb(255 220 240 / 0.3); }
}
.glint { position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit; opacity: 0;
  --glint-band: conic-gradient(from var(--glint-angle), transparent 0 60%, rgb(192 112 144 / 0.6) 69%, rgb(251 238 244 / 0.95) 77%, rgb(160 128 192 / 0.65) 84%, transparent 94% 100%); }
.glint i { position: absolute; border-radius: 999px; background: var(--glint-band);
  -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.glint-ring { inset: -2px; padding: 2px; }
.glint-glow { position: absolute; inset: 0; filter: blur(8px); }
.glint-glow i { inset: -9px; padding: 8px; }
[data-glint].glinting > .glint { animation: glint-turn 2.4s cubic-bezier(0.45, 0, 0.25, 1) both, glint-fade 2.4s linear both; }
@keyframes glint-turn { from { --glint-angle: -100deg; } to { --glint-angle: 260deg; } }
@keyframes glint-fade { 0% { opacity: 0; } 10% { opacity: 1; } 78% { opacity: 1; } 100% { opacity: 0; } }

.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: var(--ink); opacity: 0.86; transition: opacity 0.25s, gap 0.3s var(--ease-out); }
.text-link:hover { opacity: 1; gap: 12px; }
.text-link .arr { transition: transform 0.3s var(--ease-out); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.meta-line { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--ink-3); }
.meta-line span { display: inline-flex; align-items: center; gap: 8px; }
.meta-line span + span::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: var(--ink-4); margin-right: 10px; }

/* ─── Reveal on scroll ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
  .js .rv.in { opacity: 1; transform: none; }
  .js .rv-blur { filter: blur(10px); transition-property: opacity, transform, filter; }
  .js .rv-blur.in { filter: none; }
}

/* ─── Hero (home) ───────────────────────────────────────────────────────────── */
.hero { min-height: 100svh; display: grid; align-items: center; padding-block: 104px 56px; overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; gap: 24px; }
.hero-copy { --gap: 28px; }
.hero-copy .display { margin-top: 18px; font-size: clamp(50px, 6.6vw, 104px); }
.hero-stage { position: relative; display: grid; place-items: center; }
.hero-stage .heart { width: min(620px, 46vw); aspect-ratio: 1; }
.progress-dots { display: flex; justify-content: center; gap: 22px; margin-top: -24px; position: relative; }
.progress-dots li { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); transition: color 0.8s var(--ease); }
.progress-dots li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1.2px currentColor; transition: background 0.8s var(--ease), box-shadow 0.8s; }
.progress-dots li.on { color: var(--c); }
.progress-dots li.on::before { background: var(--c); box-shadow: 0 0 12px var(--c); }
@media (max-width: 860px) {
  .hero { padding-block: 96px 56px; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-stage { order: -1; margin-bottom: 4px; }
  .hero-stage .heart { width: min(250px, 62vw); margin-block: -18px -26px; }
  .progress-dots { margin-top: 0; gap: 16px; }
  .hero-copy .display { font-size: clamp(44px, 12.4vw, 64px); margin-top: 10px; }
  .hero-copy { --gap: 20px; }
}

/* ─── Heart ─────────────────────────────────────────────────────────────────── */
.heart { position: relative; }
.heart canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.heart .heart-fallback { position: absolute; inset: 33%; width: 34%; height: 34%; color: #050305; filter: drop-shadow(0 0 40px rgb(192 112 144 / 0.5)); }
.heart.is-live .heart-fallback { display: none; }

/* ─── Phone ─────────────────────────────────────────────────────────────────── */
.phone {
  position: relative;
  width: var(--pw, 300px);
  aspect-ratio: 1206 / 2622;
  border-radius: calc(var(--pw, 300px) * 0.16);
  padding: calc(var(--pw, 300px) * 0.028);
  background: linear-gradient(160deg, #2a2028, #0b080b 40%, #1a1219);
  box-shadow: 0 0 0 1px rgb(255 225 240 / 0.12), 0 50px 120px -30px rgb(0 0 0 / 0.9), 0 30px 90px -40px var(--glow, rgb(192 112 144 / 0.6));
  flex: none;
}
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: calc(var(--pw, 300px) * 0.135); overflow: hidden; background: #0e0910; }
.phone .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.9s var(--ease); }
.phone .screen img.off { opacity: 0; }

/* ─── Story: the page takes the three tests ─────────────────────────────────── */
.story { position: relative; }
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 60px; }
.story-steps > * { min-height: 92vh; display: flex; flex-direction: column; justify-content: center; --gap: 22px; }
.story-steps > *:first-child { min-height: 70vh; }
.story-stage { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; padding-top: 60px; }
.story-stage .phone { --pw: min(330px, 26vw, calc((100vh - 150px) * 0.46)); }
.step .phone-inline { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px;
  font-size: 14.5px; font-weight: 550; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--hair-2);
  transition: color 0.25s, box-shadow 0.25s, background-color 0.25s;
}
.chip:hover { color: var(--ink); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--accent); }
.chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@media (max-width: 860px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-stage { display: none; }
  .story-steps > * { min-height: auto; padding-block: 56px; }
  .step .phone-inline { display: block; --pw: min(260px, 64vw); margin: 18px auto 0; }
}

/* ─── The reveal: one LoveType ──────────────────────────────────────────────── */
.reveal-sec { text-align: center; }
.reveal-sec .heart { width: min(460px, 80vw); aspect-ratio: 1; margin: -40px auto -30px; }
.types-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; max-width: 1040px; margin: 48px auto 0; }
.types-cloud a {
  display: inline-flex; flex-direction: column; align-items: center; padding: 14px 22px; border-radius: 22px;
  transition: background-color 0.3s, transform 0.4s var(--ease-out);
}
.types-cloud a:hover { background: var(--surface-2); transform: translateY(-2px); }
.types-cloud .serif { font-size: clamp(22px, 2.3vw, 30px); line-height: 1.15; }
.types-cloud .small { margin-top: 4px; font-size: 13px; }

/* ─── Features (new in 1.2) ─────────────────────────────────────────────────── */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(40px, 7vw, 120px); }
.feature + .feature { margin-top: clamp(110px, 14vw, 200px); }
.feature.flip .feature-media { order: -1; }
.feature-copy { --gap: 24px; }
.feature-media { position: relative; display: grid; place-items: center; min-height: 560px; }
.feature-media .phone { --pw: min(300px, 70vw, calc((100vh - 140px) * 0.46)); }
.feature-media .float {
  position: absolute; z-index: 2; max-width: 280px; padding: 18px 20px; border-radius: 22px;
  background: rgb(26 18 30 / 0.78); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 0 0 1px var(--hair-2), 0 30px 60px -20px rgb(0 0 0 / 0.7);
}
.float-code { left: -4%; bottom: 14%; text-align: left; }
.float-code .code { font-family: var(--sans); font-weight: 800; font-size: 46px; letter-spacing: 0.08em; line-height: 1; margin-top: 8px; font-variant-numeric: tabular-nums; }
.float-quote { right: -6%; top: 16%; }
.float-quote p { font-family: var(--serif); font-size: 19px; line-height: 1.3; margin-top: 8px; }
.copy-btn { margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--ink-3); display: inline-flex; gap: 6px; align-items: center; min-height: 32px; }
.copy-btn:hover { color: var(--ink); }
.starter { padding: 20px 22px; border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); }
.starter blockquote { font-family: var(--serif); font-size: 22px; line-height: 1.3; margin-top: 8px; color: var(--ink); }
.float-manual { left: -6%; top: 20%; }
.float-manual p { font-family: var(--serif); font-size: 21px; margin-top: 6px; }
.float-manual p + p { color: var(--ink-3); }
.twin-hearts { display: flex; gap: 6px; margin-top: 4px; }
.twin-hearts svg { width: 26px; height: 26px; }
.bullets { display: grid; gap: 12px; }
.bullets li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; color: var(--ink-2); }
.bullets li::before { content: ""; width: 6px; height: 6px; margin-top: 0.62em; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
@media (max-width: 860px) {
  .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .feature-media { order: 0; }
  .feature-media { min-height: 0; padding-block: 20px 0; }
  .float-code { left: 0; bottom: 6%; }
  .float-quote { right: 0; top: 8%; max-width: 230px; }
  .starter { padding: 20px 22px; border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); }
.starter blockquote { font-family: var(--serif); font-size: 22px; line-height: 1.3; margin-top: 8px; color: var(--ink); }
.float-manual { left: 0; top: 10%; max-width: 230px; }
}

/* ─── Pair picker ───────────────────────────────────────────────────────────── */
.picker { margin-top: 48px; padding: clamp(22px, 3vw, 40px); border-radius: 32px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); }
.tabs { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 999px; background: rgb(255 240 250 / 0.05); gap: 2px; }
@media (max-width: 520px) { .tabs { display: grid; width: 100%; } .tabs button { padding: 0 6px; font-size: 13.5px; white-space: nowrap; } }
.tabs button { min-height: 40px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 650; color: var(--ink-3); transition: background-color 0.3s, color 0.3s; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.picker-rows { display: grid; gap: 22px; margin-top: 28px; }
.picker-row .label { margin-bottom: 10px; display: block; color: var(--ink-3); }
.opt-row { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-row button { min-height: 42px; padding: 0 16px; border-radius: 999px; font-size: 14.5px; font-weight: 550; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--hair-2); transition: all 0.25s; }
.opt-row button:hover { color: var(--ink); }
.opt-row button[aria-pressed="true"] { background: var(--accent); color: var(--bg); box-shadow: none; }
.picker-out { margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--hair); display: grid; gap: 14px; min-height: 180px; }
.picker-out .statement-s { font-size: clamp(26px, 2.6vw, 34px); }

/* ─── Languages ─────────────────────────────────────────────────────────────── */
.lang-line { font-family: var(--serif); font-size: clamp(38px, 6vw, 84px); line-height: 1.1; min-height: 2.3em; display: grid; place-items: center; }
.lang-line span { grid-area: 1 / 1; transition: opacity 0.9s var(--ease), transform 0.9s var(--ease-out), filter 0.9s; }
.lang-line span.off { opacity: 0; transform: translateY(14px); filter: blur(8px); }
.lang-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 28px; color: var(--ink-3); font-weight: 600; font-size: 15px; }

/* ─── Promise / trust ───────────────────────────────────────────────────────── */
.promise { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 56px; }
.promise > div { padding: 30px 28px; border-radius: 28px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); --gap: 12px; }
.promise h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.15; }
@media (max-width: 860px) { .promise { grid-template-columns: 1fr; } }

/* ─── FAQ ───────────────────────────────────────────────────────────────────── */
.faq { margin-top: 40px; border-top: 1px solid var(--hair); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 24px 0; font-size: clamp(18px, 1.6vw, 21px); font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3); transform: rotate(45deg) translate(-3px, -3px); transition: transform 0.35s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq .answer { padding: 0 0 26px; color: var(--ink-2); max-width: 46em; }

/* ─── Closing CTA ───────────────────────────────────────────────────────────── */
.closing { text-align: center; min-height: 92vh; display: grid; place-items: center; }
.closing .cta-row { justify-content: center; margin-top: 40px; }
.qr { display: none; align-items: center; gap: 16px; margin: 36px auto 0; padding: 14px 18px 14px 14px; border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); text-align: left; width: max-content; }
.qr img { width: 84px; height: 84px; }
.qr p { font-size: 14px; color: var(--ink-3); max-width: 15em; }
.qr strong { display: block; color: var(--ink); font-weight: 650; }
@media (hover: hover) and (pointer: fine) and (min-width: 900px) { .qr { display: flex; } }

/* ─── Interior pages ────────────────────────────────────────────────────────── */
.page-hero { padding-block: clamp(130px, 16vw, 210px) clamp(40px, 6vw, 80px); }
.page-hero .display { font-size: clamp(46px, 7vw, 100px); margin-top: 18px; }
.page-hero .lead { margin-top: 26px; }
.page-hero .cta-row { margin-top: 36px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--ink-3); margin-bottom: 26px; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { opacity: 0.5; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(40px, 6vw, 96px); align-items: start; }
.aside { position: sticky; top: 110px; display: grid; justify-items: center; gap: 22px; }
.aside .phone { --pw: 250px; }
.aside .small { text-align: center; max-width: 18em; }
@media (max-width: 1000px) {
  .split { grid-template-columns: 1fr; }
  .aside { position: static; }
}
.prose { font-size: 17.5px; line-height: 1.7; color: var(--ink-2); max-width: var(--read); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.2vw, 42px); line-height: 1.1; color: var(--ink); margin-top: 2.2em; text-wrap: balance; }
.prose h3 { font-size: 19px; font-weight: 700; color: var(--ink); margin-top: 1.8em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.7em; }
.prose strong { color: var(--ink); font-weight: 650; }
.prose a:not(.pill):not(.chip):not(.card) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:not(.pill):not(.chip):not(.card):hover { text-decoration-thickness: 2px; }
.prose ul.dash li { position: relative; padding-left: 22px; }
.prose ul.dash li + li { margin-top: 8px; }
.prose ul.dash li::before { content: ""; position: absolute; left: 0; top: 0.82em; width: 10px; height: 1.5px; background: var(--accent); }
.prose ol.num { counter-reset: n; }
.prose ol.num li { counter-increment: n; position: relative; padding-left: 40px; }
.prose ol.num li + li { margin-top: 12px; }
.prose ol.num li::before { content: counter(n); position: absolute; left: 0; top: -0.1em; font-family: var(--serif); font-size: 26px; color: var(--accent); }
.answer-box { padding: 26px 28px; border-radius: 24px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink); font-size: 18.5px; line-height: 1.6; }
.answer-box .label { display: block; margin-bottom: 10px; }
.quote { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 31px); line-height: 1.28; color: var(--ink); padding-left: 24px; border-left: 2px solid var(--accent); }
.worth { padding: 22px 24px; border-radius: 20px; background: rgb(217 195 154 / 0.08); color: var(--ink-2); }
.worth .label { color: var(--gold-soft); display: block; margin-bottom: 8px; }
.locked { display: grid; gap: 10px; }
.locked li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-radius: 18px; background: var(--surface); }
.locked li strong { font-weight: 650; color: var(--ink); font-size: 16.5px; }
.locked .lines { flex: 1; max-width: 220px; display: grid; gap: 6px; }
.locked .lines i { display: block; height: 7px; border-radius: 4px; background: linear-gradient(90deg, rgb(255 240 250 / 0.12), rgb(255 240 250 / 0.03)); }
.locked .lines i:nth-child(2) { width: 72%; }
.lock { width: 15px; height: 15px; color: var(--ink-3); flex: none; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.card {
  position: relative; display: grid; align-content: start; gap: 8px; padding: 24px 24px 26px; border-radius: 26px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); transition: background-color 0.3s, transform 0.5s var(--ease-out), box-shadow 0.3s;
}
.card:hover { background: var(--surface-2); transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--hair-2); }
.card .serif { font-size: 26px; line-height: 1.12; color: var(--ink); }
.card .label { font-size: 11px; }
.card p { font-size: 15px; color: var(--ink-3); line-height: 1.5; }
.card .go { position: absolute; right: 22px; top: 22px; color: var(--ink-4); transition: color 0.3s, transform 0.4s var(--ease-out); }
.card:hover .go { color: var(--ink); transform: translateX(3px); }

/* Compatibility matrix */
.matrix-wrap { overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
.matrix { border-collapse: separate; border-spacing: 6px; margin-top: 20px; min-width: 560px; }
.matrix th { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); padding: 6px 8px; text-align: left; white-space: nowrap; }
.matrix thead th { text-align: center; }
.matrix td a { display: grid; place-items: center; min-width: 74px; height: 58px; border-radius: 14px; background: var(--surface); color: var(--ink-3); font-size: 13px; font-weight: 600; transition: all 0.25s; }
.matrix td a:hover { background: var(--accent); color: var(--bg); }
.matrix td a.self { box-shadow: inset 0 0 0 1px var(--hair-2); }

.closing-card { margin-top: clamp(70px, 9vw, 120px); padding: clamp(32px, 5vw, 64px); border-radius: 36px; background: radial-gradient(120% 140% at 0% 0%, rgb(192 112 144 / 0.16), transparent 60%), radial-gradient(120% 140% at 100% 100%, rgb(112 128 192 / 0.14), transparent 60%), var(--surface); box-shadow: inset 0 0 0 1px var(--hair); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: center; }
.closing-card .statement-s { max-width: 16em; }
.closing-card .body { margin-top: 10px; }
@media (max-width: 760px) { .closing-card { grid-template-columns: 1fr; } }

/* Compare tool */
.code-field { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.code-field input {
  flex: 1 1 220px; min-height: 64px; padding: 0 24px; border-radius: 999px; border: 0; outline: none;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--hair-2); color: var(--ink);
  font-size: 28px; font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase;
}
.code-field input::placeholder { color: var(--ink-4); letter-spacing: 0.08em; font-size: 18px; font-weight: 600; }
.code-field input:focus { box-shadow: inset 0 0 0 1.5px var(--blush); }
.code-msg { min-height: 24px; margin-top: 10px; font-size: 14.5px; color: var(--ink-3); }
.result-card { margin-top: 26px; padding: 30px; border-radius: 30px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); display: none; }
.result-card.on { display: block; animation: rise 0.9s var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.dims { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.dims a { display: grid; gap: 6px; padding: 16px 18px; border-radius: 18px; background: var(--surface); transition: background-color 0.3s; }
.dims a:hover { background: var(--surface-2); }
.dims .serif { font-size: 21px; line-height: 1.15; }
@media (max-width: 700px) { .dims { grid-template-columns: 1fr; } }

/* Journal */
.posts { display: grid; gap: 14px; margin-top: 40px; }
.post { display: grid; gap: 10px; padding: 30px; border-radius: 28px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); transition: background-color 0.3s; }
.post:hover { background: var(--surface-2); }
.post .statement-s { font-size: clamp(26px, 2.6vw, 34px); }

/* ─── Footer ────────────────────────────────────────────────────────────────── */
.site-footer { position: relative; z-index: 1; padding: 90px 0 calc(54px + var(--glass-inset)); border-top: 1px solid var(--hair); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 36px; }
.foot-brand { --gap: 16px; }
.foot-brand .app { display: flex; align-items: center; gap: 14px; }
.foot-brand .app img { width: 52px; height: 52px; border-radius: 12px; box-shadow: 0 0 0 1px var(--hair-2); }
.foot-col h2 { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.foot-col ul { display: grid; gap: 10px; }
.foot-col a { font-size: 14.5px; color: var(--ink-2); transition: color 0.25s; }
.foot-col a:hover { color: var(--ink); }
.foot-langs { margin-top: 48px; }
.foot-langs ul { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-langs a { font-size: 14px; color: var(--ink-3); }
.foot-langs a:hover, .foot-langs a[aria-current] { color: var(--ink); }
.lang-list a:hover { color: var(--ink); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--hair); font-size: 13px; color: var(--ink-3); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* CJK: no negative tracking, no italic; let lines break naturally. */
:lang(ja) .display, :lang(zh-Hant) .display, :lang(ja) .statement, :lang(zh-Hant) .statement { letter-spacing: 0; line-height: 1.15; word-break: auto-phrase; }
:lang(ja) .label, :lang(zh-Hant) .label { letter-spacing: 0.08em; }
:lang(ja) .hero-copy .display, :lang(zh-Hant) .hero-copy .display { font-size: clamp(40px, 4.8vw, 74px); }
:lang(ja) .display, :lang(zh-Hant) .display { font-size: clamp(38px, 5vw, 76px); }
:lang(ja) .statement, :lang(zh-Hant) .statement { font-size: clamp(30px, 3.6vw, 52px); }
