@font-face { font-family: "Libre Franklin"; src: url("fonts/libre-franklin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/source-serif-4.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }

:root {
  --bg: #ffffff;
  --surface: #f4f4f4;
  --ink: #111111;
  --muted: #5f5f5f;
  --accent: #4f46e5;
  --accent-ink: #ffffff;
  --field: #111111;
  --field-ink: #ffffff;
  --margin: clamp(16px, 2.8vw, 40px);
  --gap: clamp(120px, 13vw, 200px);
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-title: clamp(2.75rem, 5.2vw, 5rem);
  --sans: "Libre Franklin", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--step-body)/1.55 var(--serif); overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: var(--accent); }
h1, h2, h3, .display { font-family: var(--sans); font-weight: 700; letter-spacing: -0.035em; line-height: 1; text-wrap: balance; }
h2 { font-size: var(--step-head); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.on-dark :focus-visible, .stage :focus-visible { outline-color: #fff; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

.badge { display: inline-block; transition: transform .25s var(--ease); }
.badge img { height: 54px; width: auto; }
.badge:hover { transform: translateY(-2px); }
.badge:active { transform: scale(.97); }

/* Navigation */
.bar { position: absolute; inset: 0 0 auto; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px var(--margin); font: 600 var(--step-small)/1 var(--sans); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 1rem; letter-spacing: -0.02em; }
.brand img { border-radius: 8px; }
.bar nav { display: flex; gap: clamp(16px, 2.4vw, 32px); }
.bar nav a { position: relative; color: var(--ink); text-decoration: none; padding: 8px 0; }
.bar nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); } /* taste-skill-ignore */
.bar nav a:hover::after { transform: scaleX(1); }

/* Hero */
.hero { position: relative; min-height: max(100svh, 860px); display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: auto 1fr; column-gap: 16px; padding: 0 0 0 var(--margin); }
.hero-text { grid-column: 1 / 8; grid-row: 1; padding-top: clamp(104px, 15vh, 150px); position: relative; z-index: 2; }
h1 { font-size: var(--step-title); line-height: .98; }
.hero-side { grid-column: 1 / 5; grid-row: 2; padding: 32px 24px 0 0; display: flex; flex-direction: column; min-height: 0; }
.hero-shot { flex: 1 1 0; min-height: 0; margin-top: 28px; overflow: hidden; }
.hero-shot img { width: 100%; height: auto; margin-top: -62%; }
.hero-side p { max-width: 40ch; margin-bottom: 24px; }
.hero-side small { display: block; margin-top: 14px; font-size: var(--step-small); color: var(--muted); }
.stage { grid-column: 5 / 13; grid-row: 2; margin-top: 32px; background: var(--accent); clip-path: polygon(144px 0, 100% 0, 100% 100%, 0 100%, 0 56px, 144px 56px); padding: 104px clamp(24px, 4vw, 56px) 0; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 32px); align-items: start; min-height: 560px; }

/* Live fragment: its own interface conventions */
[data-ui] { font-family: var(--ui); }
.pad-card { background: #fff; border-radius: 20px; padding: 16px; color: #111; }
.pad-title { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.pad { position: relative; aspect-ratio: 1.75; background: #f4f4f6; border-radius: 12px; touch-action: none; cursor: crosshair; overflow: hidden; user-select: none; -webkit-user-select: none; }
.pad svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pad-line { position: absolute; left: 7%; right: 7%; bottom: 22%; height: 1px; background: #c9c9d0; } /* taste-skill-ignore: the app's signing line */
.pad-hint { position: absolute; left: 7%; bottom: 8%; font-size: 13px; color: #6a6a72; pointer-events: none; }
.tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.swatches { display: flex; gap: 6px; }
.swatch { width: 30px; height: 30px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); transition: transform .2s var(--ease); } /* taste-skill-ignore */
.swatch:hover { transform: scale(1.1); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--c); } /* taste-skill-ignore */
.tool-btns { display: flex; gap: 6px; }
.tool { font-size: 14px; font-weight: 500; padding: 7px 12px; min-height: 34px; border-radius: 8px; background: #f0f0f3; transition: background-color .15s, transform .15s; }
.tool:hover { background: #e4e4ea; }
.tool:active { transform: scale(.96); }
.pad-note { margin-top: 12px; font-size: 13px; line-height: 1.35; color: #5a5a62; }

.preview { color: #fff; }
.segmented { display: flex; background: rgba(255,255,255,.18); border-radius: 10px; padding: 3px; margin-bottom: 12px; }
.segmented button { flex: 1; font-size: 14px; font-weight: 500; color: #fff; padding: 7px 6px; min-height: 34px; border-radius: 8px; transition: background-color .2s, color .2s; }
.segmented button[aria-pressed="true"] { background: #fff; color: #111; }
.screen { background: #101018; border-radius: 28px 28px 0 0; padding: 24px 20px 40px; min-height: 480px; text-align: center; }
.lock-date { font-size: 16px; font-weight: 600; opacity: .9; }
.lock-time { font-size: clamp(64px, 6.6vw, 96px); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.lock-widget { width: 62%; aspect-ratio: 2.3; margin-top: 16px; }
[data-sig] path { vector-effect: non-scaling-stroke; }
.lock-widget svg, .home-widget svg { width: 100%; height: 100%; }
.home-screen { display: none; }
.screen[data-mode="home"] .lock-screen { display: none; }
.screen[data-mode="home"] .home-screen { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.home-widget { background: #fff; border-radius: 20px; padding: 14px; aspect-ratio: 1; }
.home-widget.medium { grid-column: 1 / -1; aspect-ratio: 2.1; }
.home-widget.dark { background: #26262e; }

/* Showcase */
.section { padding-inline: var(--margin); margin-top: var(--gap); }
.showcase { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 16px; align-items: start; }
.showcase-list { grid-column: 1 / 7; }
.showcase-list h2 { margin-bottom: 40px; max-width: 13em; }
.out-names button { display: block; text-align: left; font: 700 var(--step-head)/1.18 var(--sans); letter-spacing: -0.035em; color: #8c8c8c; transition: color .2s, transform .35s var(--ease); }
.out-names button:hover { color: var(--ink); transform: translateX(6px); }
.out-names button[aria-pressed="true"] { color: var(--ink); }
.out-caption { margin-top: 32px; max-width: 44ch; min-height: 6.5em; }
.showcase-stage { grid-column: 7 / 13; background: var(--surface); height: 88svh; min-height: 640px; overflow: hidden; position: relative; }
.out-panel { position: absolute; inset: 56px 0 0; display: flex; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.out-panel.on { opacity: 1; visibility: visible; }
.out-panel img { width: min(390px, 76%); height: auto; align-self: flex-start; border-radius: 28px 28px 0 0; }
.out-panel figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* Store gallery */
.store-video { width: 100%; height: auto; margin-bottom: clamp(16px, 2vw, 32px); background: #17122e; }
.store-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 48px; margin-bottom: 48px; }
.store-facts { max-width: 40ch; }
.store-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 32px); }
.store-row img { width: 100%; height: auto; background: var(--surface); }

/* Privacy field */
.field { background: var(--field); color: var(--field-ink); margin-top: var(--gap); padding: clamp(72px, 9vw, 136px) var(--margin); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 16px; row-gap: 40px; }
.field h2 { grid-column: 1 / 7; font-size: clamp(2.5rem, 1.3rem + 5vw, 6rem); line-height: .96; }
.field-list { grid-column: 7 / 13; display: grid; gap: 28px; }
.field-list strong { display: block; font: 600 var(--step-lead)/1.2 var(--sans); letter-spacing: -0.02em; margin-bottom: 6px; }
.field a { color: #fff; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 16px; }
.plans { grid-column: 1 / 7; }
.plans h2 { font-size: var(--step-lead); letter-spacing: -0.02em; margin-bottom: 28px; line-height: 1.2; max-width: 22em; }
.plan-names button { display: flex; align-items: center; gap: .28em; font: 700 clamp(2.75rem, 5vw, 4.75rem)/1.12 var(--sans); letter-spacing: -0.035em; color: #8c8c8c; transition: color .2s; }
.plan-names button::before { content: ""; width: .3em; height: .3em; border-radius: 50%; background: var(--accent); opacity: 0; transform: scale(.96); transition: transform .3s var(--ease), opacity .2s; margin-left: -.05em; }
.plan-names button:hover { color: var(--ink); }
.plan-names button[aria-pressed="true"] { color: var(--ink); }
.plan-names button[aria-pressed="true"]::before { opacity: 1; transform: scale(1); }
.plan-stage { grid-column: 8 / 13; position: relative; min-height: 460px; }
.plan { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.plan.on { opacity: 1; visibility: visible; }
.plan-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font: 700 clamp(3.5rem, 7vw, 6.5rem)/1 var(--sans); letter-spacing: -0.04em; margin-bottom: 20px; font-variant-numeric: tabular-nums; }
.plan-price span { font: 400 var(--step-body)/1 var(--serif); letter-spacing: 0; }
.plan ul { margin-bottom: 28px; }
.plan li { padding: 3px 0 3px 20px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: .68em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.plan-note { margin-top: 20px; font-size: var(--step-small); color: var(--muted); }
.button { display: inline-block; background: var(--accent); color: var(--accent-ink); font: 600 1rem/1.2 var(--sans); padding: 15px 22px; text-decoration: none; transition: transform .2s var(--ease), background-color .2s; }
.button:hover { background: #4038c9; transform: translateY(-2px); }
.button:active { transform: scale(.98); }

/* FAQ */
.faq { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 16px; }
.faq h2 { grid-column: 1 / 5; position: sticky; top: 56px; align-self: start; }
.faq-list { grid-column: 5 / 13; display: grid; gap: 8px; }
.faq details { background: var(--surface); transition: background-color .2s, color .2s; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 24px; font: 600 1.25rem/1.25 var(--sans); letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.plus { flex: none; position: relative; width: 16px; height: 16px; }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; top: 6.5px; width: 16px; height: 3px; background: currentColor; transition: transform .25s var(--ease); }
.plus::after { transform: rotate(90deg); }
.faq details[open] { background: var(--accent); color: var(--accent-ink); }
.faq details[open] .plus::after { transform: rotate(0); }
.faq details:not([open]):hover { background: #ebebeb; }
.faq details p { padding: 0 24px 24px; max-width: 58ch; }
.faq details a { color: inherit; }
.faq :focus-visible { outline-offset: -3px; }

/* CTA */
.cta { background: var(--accent); color: var(--accent-ink); margin-top: var(--gap); min-height: 84svh; padding: 56px var(--margin); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 16px; row-gap: 40px; align-items: end; }
.cta-text { grid-column: 1 / 7; }
.cta h2 { font-size: clamp(3.25rem, 7vw, 7rem); line-height: .94; margin-bottom: 20px; }
.cta-text p { max-width: 40ch; }
.store-card { grid-column: 8 / 13; align-self: center; background: #fff; color: #111; border-radius: 22px; padding: 24px; box-shadow: 0 24px 64px rgba(10, 6, 80, .35); } /* taste-skill-ignore: open card, the product's own */
.store-id { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.store-id img { border-radius: 16px; }
.store-name { font-size: 18px; font-weight: 600; line-height: 1.2; }
.store-sub { font-size: 14px; color: #5a5a62; line-height: 1.3; }
.store-qr { display: flex; align-items: center; gap: 20px; background: #f4f4f6; border-radius: 14px; padding: 16px; margin-bottom: 20px; }
.store-qr img { width: 112px; height: 112px; flex: none; }
.store-qr p { font-size: 15px; line-height: 1.35; }

/* Footer */
footer { padding: 8px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; }
.tile { background: var(--surface); padding: 24px; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.tile a { color: var(--ink); }
.t-state { grid-column: span 4; }
.t-state p:first-child { font: 600 var(--step-lead)/1.2 var(--sans); letter-spacing: -0.02em; }
.t-state small, .t-lang small { font-size: var(--step-small); color: var(--muted); }
.t-nav { grid-column: span 3; }
.t-nav li { padding: 3px 0; }
.t-nav a { font-size: 1rem; }
.t-lang { grid-column: span 2; font-size: 1rem; }
.t-mail { grid-column: span 3; justify-content: flex-end; }
.t-mail span { font-size: var(--step-small); color: var(--muted); }
.t-mail a { font: 600 clamp(1rem, 1.3vw, 1.25rem)/1.2 var(--sans); overflow-wrap: anywhere; }
.t-word { grid-column: span 8; background: var(--field); color: #fff; min-height: 320px; align-items: center; justify-content: center; text-align: center; font: 700 clamp(2.75rem, 7.6vw, 7.5rem)/1 var(--sans); letter-spacing: -0.04em; }
.t-go { grid-column: span 4; background: var(--accent); min-height: 320px; color: #fff !important; text-decoration: none; font: 600 clamp(1.5rem, 2.2vw, 1.75rem)/1.1 var(--sans); letter-spacing: -0.02em; transition: background-color .2s; }
.t-go:hover { background: #4038c9; }
.t-go svg { align-self: flex-end; width: 56px; height: 56px; transition: transform .35s var(--ease); }
.t-go:hover svg { transform: translate(6px, -6px); }

/* No script: every panel is plain and visible */
html:not(.js) .tools, html:not(.js) .segmented, html:not(.js) .pad-note, html:not(.js) .pad-hint { display: none; }
html:not(.js) .out-names { display: none; }
html:not(.js) .showcase-stage { height: auto; overflow: visible; background: none; display: grid; gap: 32px; }
html:not(.js) .out-panel { position: static; opacity: 1; visibility: visible; display: block; }
html:not(.js) .out-panel figcaption { position: static; width: auto; height: auto; clip-path: none; margin-top: 8px; }
html:not(.js) .plan-names { display: none; }
html:not(.js) .plan-stage { display: grid; gap: 48px; min-height: 0; }
html:not(.js) .plan { position: static; opacity: 1; visibility: visible; }

/* Motion: only where script and preference allow */
@media (prefers-reduced-motion: no-preference) {
  .js .stage { animation: shutter 1.1s var(--ease) both .1s; }
  .js .stage > * { animation: settle 1.1s var(--ease) both .1s; }
  .js h1, .js .hero-side > * { animation: rise .8s var(--ease) both; }
  .js .hero-side > :nth-child(1) { animation-delay: .08s; }
  .js .hero-side > :nth-child(2) { animation-delay: .16s; }
  .js [data-rise] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease) var(--d, 0ms), transform .7s var(--ease) var(--d, 0ms); }
  .js [data-rise].in { opacity: 1; transform: none; }
  .js [data-open] { clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--ease) var(--d, 0ms); }
  .js [data-open].in { clip-path: inset(0); }
  .out-panel img { transition: transform .5s var(--ease); transform: translateY(16px); }
  .out-panel.on img { transform: none; }
}
@keyframes shutter { from { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%, 100% 56px, 100% 56px); } }
@keyframes settle { from { transform: scale(1.06); } }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Tablet */
@media (max-width: 1080px) {
  .hero { display: block; min-height: 0; padding: 0; }
  .hero-text { padding: 96px var(--margin) 0; }
  .hero-side { padding: 20px var(--margin) 32px; }
  .hero-shot { display: none; }
  .stage { margin-top: 0; padding-top: 92px; min-height: 0; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); clip-path: polygon(96px 0, 100% 0, 100% 100%, 0 100%, 0 48px, 96px 48px); }
  .screen { min-height: 400px; }
  .field h2, .field-list { grid-column: 1 / -1; }
  .cta-text { grid-column: 1 / 7; align-self: end; }
  .store-card { grid-column: 7 / 13; }
  .out-names { display: flex; flex-wrap: wrap; gap: 0 28px; }
  .showcase-list { grid-column: 1 / -1; position: static; margin-bottom: 32px; }
  .showcase-stage { grid-column: 1 / -1; }
  .out-caption { min-height: 0; }
  .plans, .plan-stage { grid-column: 1 / -1; }
  .plans { margin-bottom: 32px; }
  .faq h2 { grid-column: 1 / -1; position: static; margin-bottom: 32px; }
  .faq-list { grid-column: 1 / -1; }
  .store-qr { display: block; }
  .store-qr p { margin-top: 10px; }
  .cta { min-height: 0; padding-block: 72px; }
  .t-state, .t-mail { grid-column: span 6; }
  .t-nav, .t-lang { grid-column: span 6; }
  .t-word, .t-go { grid-column: 1 / -1; min-height: 200px; }
}

/* Phone: its own composition */
@media (max-width: 640px) {
  :root { --gap: 104px; }
  .bar { padding-block: 16px; }
  .bar nav a:not(.lang) { display: none; }
  h1 { font-size: 11.4vw; }
  .hero-text { padding-top: 84px; }
  .stage { display: block; padding: 64px 16px 0; clip-path: polygon(72px 0, 100% 0, 100% 100%, 0 100%, 0 36px, 72px 36px); }
  .preview { margin-top: 16px; }
  .screen { min-height: 300px; padding-bottom: 32px; }
  .lock-widget { width: 70%; }
  .home-widget.medium { aspect-ratio: 2.3; }
  .pad { aspect-ratio: 1.9; }
  .swatch { width: 34px; height: 34px; }
  .tool, .segmented button { min-height: 44px; }

  .showcase-list h2 { margin-bottom: 20px; }
  .out-names { gap: 0 18px; }
  .out-names button { font-size: 1.375rem; white-space: nowrap; min-height: 44px; }
  .out-names button:hover { transform: none; }
  .out-caption { margin-top: 12px; min-height: 8em; }
  .showcase-list { margin-bottom: 0; }
  .showcase-stage { height: 70svh; min-height: 480px; margin-inline: calc(var(--margin) * -1); grid-column: auto; }
  .showcase { display: block; }
  .out-panel { inset: 24px 0 0; }
  .out-panel img { width: 86%; }

  .store-head { margin-bottom: 28px; }
  .store-row { grid-template-columns: 1fr 1fr; gap: 12px; }

  .field { display: block; }
  .field h2 { margin-bottom: 36px; }
  .pricing, .faq, .cta { display: block; }
  .plan-names button { font-size: 12vw; min-height: 52px; }
  .plan-stage { min-height: 500px; }
  .plan-price { font-size: 20vw; }
  .button { display: block; text-align: center; min-height: 52px; padding-block: 17px; }
  .faq summary { font-size: 1.125rem; padding: 18px 20px; min-height: 64px; }
  .faq details p { padding: 0 20px 20px; font-size: 1rem; }
  .faq-list { gap: 6px; }
  .cta h2 { font-size: 15vw; }
  .store-card { margin-top: 36px; }
  .store-qr { display: none; }
  .store-card { grid-column: auto; }
  .badge img { height: 58px; }

  footer { grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; }
  .t-word, .t-go { grid-column: 1 / -1; min-height: 160px; font-size: 13vw; }
  .t-go { font-size: 1.5rem; order: 1; }
  .t-word { order: 0; }
  .t-nav { order: 2; grid-column: auto; }
  .t-mail { order: 3; grid-column: auto; }
  .t-lang { order: 4; grid-column: auto; }
  .t-state { order: 5; grid-column: 1 / -1; }
  .tile { padding: 20px; min-height: 0; }
}
