:root {
  --ink: #17171c;
  --ink-2: #4a4a55;
  --ink-3: #8a8a96;
  --line: rgba(23, 23, 28, 0.08);
  --paper: #f6f6f8;
  --card: #ffffff;
  --accent: #3a6df0;
  --radius: 28px;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 14px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 11px; }
.btn-dark { background: #1b1b21; color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 6px 18px rgba(20, 20, 40, .18); }
.btn-dark:hover { background: #000; }
.btn-light { background: #fff; border: 1px solid var(--line); }
.btn-glow { box-shadow: 0 0 0 3px rgba(150, 165, 245, .55), 0 10px 30px rgba(110, 120, 230, .35); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); background: rgba(250, 250, 253, .72); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-color: var(--line); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; letter-spacing: -.01em; }
.brand img { border-radius: 7px; }
.nav-links { display: flex; gap: 24px; margin-left: 12px; flex: 1; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
/* Japanese and Chinese headings break between phrases, not inside a word. */
:lang(ja) :is(h1, h2, h3, h4), :lang(zh-Hans) :is(h1, h2, h3, h4) { word-break: auto-phrase; text-wrap: balance; }
.lang { appearance: none; -webkit-appearance: none; cursor: pointer; font: 500 14px/1 inherit; color: var(--ink-2); padding: 8px 30px 8px 12px; margin-right: -14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23777' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 11px center; }
.lang:hover { color: var(--ink); }

/* Hero */
.hero {
  position: relative;
  padding: 72px 24px 40px;
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(201, 211, 245, .9), transparent 70%),
    radial-gradient(50% 40% at 10% 30%, rgba(246, 215, 228, .7), transparent 70%),
    radial-gradient(70% 60% at 50% 90%, rgba(214, 222, 252, .9), transparent 70%),
    linear-gradient(#fbfbfe, #eef1fc);
}
.hero-copy { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: end; }
h1, h2, h3 { margin: 0; }
h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(52px, 7.4vw, 104px); line-height: .95; letter-spacing: -.02em; }
.hero-side p { font-size: 19px; line-height: 1.5; color: var(--ink-2); margin: 0 0 24px; }
.hero-side .fine { margin: 14px 0 0; }
.fine { font-size: 13px; color: var(--ink-3); }
.center { text-align: center; }

/* Simulated app */
.app {
  max-width: 1200px; margin: 64px auto 0;
  background: #fbfbfd; border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 30px 80px rgba(60, 70, 140, .22), 0 8px 24px rgba(0,0,0,.06);
  overflow: hidden;
  opacity: 0; transform: translateY(30px) scale(.98);
  animation: rise 1s .15s var(--ease) forwards;
}
@keyframes rise { to { opacity: 1; transform: none; } }
.app-bar { height: 46px; display: flex; align-items: center; padding: 0 16px; border-bottom: 1px solid var(--line); background: #f3f3f6; }
.lights { display: flex; gap: 8px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.app-title { margin-left: 18px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.app-export { margin-left: auto; font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 8px; background: #fff; border: 1px solid var(--line); transition: background .2s, color .2s; }
.app-export.pressed { background: var(--accent); color: #fff; }
.app-body { display: grid; grid-template-columns: 240px minmax(0, 1fr) 240px; height: 600px; }
.app-side { border-right: 1px solid var(--line); padding: 18px 16px; background: #f7f7fa; overflow: hidden; }
.side-label { font-size: 12px; font-weight: 700; margin: 4px 0 10px; color: var(--ink-2); }
.side-label:not(:first-child) { margin-top: 22px; }
.shots { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 8px; border-radius: 12px; background: #eeeef3; }
.shot { position: relative; aspect-ratio: 3/4; padding: 3px; border-radius: 9px; border: 1.5px solid transparent; background: #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; transition: border-color .2s, transform .2s; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 6px; }
.shot.on { border-color: var(--accent); }
.shot.enter { animation: pop .45s var(--ease); }
.shot.leaving { opacity: 0; transform: scale(.7); transition: .3s var(--ease); pointer-events: none; }
.shot .del { position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #fff; background: #3a3a42; color: #fff; font-size: 13px; line-height: 1; display: grid; place-items: center; padding: 0; cursor: pointer; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .2s var(--ease), background .2s; }
.shot:hover .del, .shot.on .del, .shot.armed .del { opacity: 1; transform: none; }
.shot.armed .del, .shot .del:hover { background: #e5484d; transform: scale(1.15); }
@media (hover: none) { .shot .del { opacity: 1; transform: none; } }
.shot-add { aspect-ratio: 3/4; border-radius: 9px; border: 1.5px dashed #b4b6c4; background: transparent; color: #8b8d9c; font-size: 22px; font-weight: 300; cursor: pointer; display: grid; place-items: center; transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease); }
.shot-add:hover, .shot-add.hot { background: #e6ecff; border-color: var(--accent); color: var(--accent); }
.shot-add.hot { transform: scale(.92); }
.ratios { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.ratios button { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 10px; color: var(--ink-2); background: none; border: 0; cursor: pointer; padding: 0; }
.ratios button i { display: block; height: 28px; max-width: 34px; border: 1.5px solid #b9bac4; border-radius: 4px; background: #fff; }
.ratios button.on i { border-color: var(--accent); background: #e9efff; }
.ratios button.on { color: var(--accent); font-weight: 600; }
.swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.swatches button { aspect-ratio: 1; border-radius: 8px; border: 0; cursor: pointer; box-shadow: 0 0 0 1px rgba(0,0,0,.08) inset; transition: transform .15s; }
.swatches button:hover { transform: scale(1.08); }
.swatches button.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent); }
.app-canvas-wrap { position: relative; display: grid; place-items: center; padding: 32px; background-color: #ececf1; background-image: radial-gradient(rgba(0,0,0,.09) 1px, transparent 1px); background-size: 18px 18px; }
.app-canvas {
  position: relative; width: 420px; height: 420px;
  border-radius: 6px; overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}
/* Sized by the script first, then it animates each change. */
.app-canvas.ready { transition: width .6s var(--ease), height .6s var(--ease), background .6s; }
.devices { position: absolute; inset: 9%; display: flex; align-items: center; justify-content: center; gap: 14px; }
.devices .dev { height: var(--dev-h, 100%); width: auto; max-width: none; flex: none; cursor: pointer; border-radius: 12%/6%; outline: 2px dashed transparent; outline-offset: 2px; transition: outline-color .2s, opacity .3s, transform .3s var(--ease), height .6s var(--ease), max-width .35s var(--ease), margin .35s var(--ease); }
.devices .dev.sel { outline-color: var(--accent); }
.devices .dev.enter { animation: pop .5s var(--ease); }
.devices .dev.leaving { opacity: 0; transform: scale(.8); pointer-events: none; }
.empty-note { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; font-weight: 600; color: rgba(40, 40, 60, .45); opacity: 0; transition: opacity .3s; pointer-events: none; }
.app-canvas.empty .empty-note { opacity: 1; }
@keyframes pop { from { opacity: 0; transform: scale(.85); } }
.badge { position: absolute; right: 10px; bottom: 9px; font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: 6px; background: rgba(255,255,255,.75); color: #333; letter-spacing: .01em; }
.toast { position: absolute; left: 50%; bottom: 18px; transform: translate(-50%, 20px); background: rgba(30,30,36,.9); color: #fff; font-size: 13px; font-weight: 500; padding: 9px 16px; border-radius: 99px; opacity: 0; transition: .35s var(--ease); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.app-hint { text-align: center; font-size: 13px; color: var(--ink-3); margin: 18px 0 0; }

/* The rest of the app, faded: there's more to it than the demo does. */
.ghost { pointer-events: none; user-select: none; opacity: .5; filter: saturate(.5);
  -webkit-mask-image: linear-gradient(#000 15%, transparent 90%); mask-image: linear-gradient(#000 15%, transparent 90%); }
.side-more { margin-top: 22px; }
.app-inspector { border-left: 1px solid var(--line); padding: 18px 16px; background: #f7f7fa; overflow: hidden; }
.app-inspector.ghost { -webkit-mask-image: linear-gradient(#000 35%, transparent 95%); mask-image: linear-gradient(#000 35%, transparent 95%); }
.field { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 30px; padding: 0 10px; margin-top: 8px; border-radius: 8px; background: #ececf1; font-size: 12px; color: var(--ink-2); overflow: hidden; }
.field em { position: absolute; left: 30%; top: 0; bottom: 0; width: var(--v); max-width: 45%; background: #c9d6fb; }
.field span, .field b { position: relative; }
.field b { font-weight: 600; color: var(--ink); }
.layout-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; font-size: 10px; text-align: center; color: var(--ink-2); }
.layout-tiles span { display: grid; gap: 4px; justify-items: center; }
.layout-tiles b { display: flex; gap: 2px; justify-content: center; align-items: center; width: 100%; height: 40px; border-radius: 8px; background: #ececf1; }
.layout-tiles .on b { background: #dfe6fd; box-shadow: 0 0 0 1.5px var(--accent); }
.layout-tiles i { width: 7px; height: 16px; border-radius: 2px; background: #85879a; }
.layout-tiles .l-col { flex-direction: column; }
.layout-tiles .l-col i { width: 7px; height: 8px; }
.insp-card { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; background: #ececf1; font-size: 12px; }
.insp-card img { width: 30px; height: 60px; object-fit: cover; object-position: top; border-radius: 6px; border: 2px solid #1d1d22; }
.insp-card small { display: block; color: var(--ink-3); margin-top: 3px; }
.insp-row { display: flex; justify-content: space-between; font-size: 12px; margin: 14px 2px 10px; }
.insp-row span:last-child { font-weight: 600; }
.insp-dots { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
.insp-dots i { aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.insp-dots i:nth-child(2) { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--accent); }
.insp-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.insp-pair .field { margin-top: 0; }
.tilt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; perspective: 200px; }
.tilt-grid i { height: 48px; border-radius: 8px; background: #ececf1; position: relative; }
.tilt-grid i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 30px; margin: -15px 0 0 -9px; border-radius: 4px; background: #9a9cab; transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); }

/* Sections */
.section { max-width: 1200px; margin: 0 auto; padding: 110px 24px 0; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 99px; background: #e4e8fb; color: #3d4fa8; margin-bottom: 18px; }
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -.015em; }
.section-head p { font-size: 19px; color: var(--ink-2); line-height: 1.5; margin: 18px 0 0; }

/* Why frame */
@property --pos { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
.why { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.compare { --pos: 50%; position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 20px 50px rgba(40, 40, 90, .12); transition: --pos .9s var(--ease); user-select: none; }
.compare.dragging { transition: none; }
.compare .before, .compare .after { position: absolute; inset: 0; display: grid; place-items: center; }
.compare .before { background: #e8e8ec; }
.compare img { position: absolute; inset: 0; margin: auto; width: auto; max-width: 90%; object-fit: contain; }
.compare .before img { height: 78%; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.compare .after { background: radial-gradient(70% 60% at 85% 8%, #ffc15e, transparent 70%), linear-gradient(150deg, #ff9f2e 0%, #ff5a2c 50%, #e3193f 100%); clip-path: inset(0 0 0 var(--pos)); }
.compare .after img { height: 86%; filter: drop-shadow(0 30px 40px rgba(120, 10, 20, .35)); }
.cmp-label { position: absolute; top: 16px; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 99px; background: rgba(255,255,255,.85); color: var(--ink-2); pointer-events: none; }
.cmp-label.l { left: 16px; }
.cmp-label.r { right: 16px; }
.cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 10px rgba(0,0,0,.2); pointer-events: none; }
.cmp-handle i { position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.cmp-handle i::before, .cmp-handle i::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -5px; border: 5px solid transparent; }
.cmp-handle i::before { left: 7px; border-right-color: #6b6d7a; }
.cmp-handle i::after { right: 7px; border-left-color: #6b6d7a; }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.why-list { display: grid; gap: 22px; }
.stat { padding: 26px 28px; border-radius: 22px; background: linear-gradient(160deg, #eef1fd, #e3e8fb); }
.stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: 72px; line-height: 1; color: #2f45b5; }
.stat p { margin: 8px 0 10px; font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.stat a { font-size: 12px; color: var(--ink-3); }
.why-item h4 { margin: 0 0 4px; font-size: 17px; }
.why-item p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.card {
  position: relative; border-radius: var(--radius); background: var(--card);
  min-height: 460px; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 0 0 1px var(--line);
  opacity: 0; transform: translateY(24px) scale(.97);
  transition: opacity .8s var(--ease), transform .8s var(--ease), box-shadow .3s;
}
.card.in { opacity: 1; transform: none; }
.card:hover { box-shadow: 0 0 0 1px var(--line), 0 18px 40px rgba(40, 40, 90, .1); }
.card-copy { padding: 28px 30px 0; position: relative; z-index: 2; }
.card h3 { font-size: 21px; font-weight: 700; letter-spacing: -.015em; display: flex; align-items: center; gap: 8px; }
.card p { font-size: 15px; line-height: 1.5; color: var(--ink-2); margin: 8px 0 0; max-width: 420px; }
.card-dark { background: #121216; color: #fff; }
.card-dark p { color: #a3a3ad; }
.tint-sky { background: linear-gradient(160deg, #eef4fd, #dfe9fa); }
.tint-peach { background: linear-gradient(160deg, #fdf2ea, #f9dfd2); }
.tint-butter { background: linear-gradient(160deg, #fdf8e8, #f6ead0); }
.tint-lilac { background: linear-gradient(160deg, #f5f0fd, #e6dcf8); }
.tint-mint { background: linear-gradient(160deg, #eef8f2, #dcefe4); }
.tint-cloud { background: linear-gradient(160deg, #f6f7f9, #e7eaef); }
.tint-blush { background: linear-gradient(160deg, #fdf0f4, #f6dde6); }
.pro { font-size: 10px; font-weight: 700; padding: 3px 7px; border-radius: 6px; background: linear-gradient(90deg, #8fa2f5, #c49bf0); color: #fff; letter-spacing: .04em; text-transform: uppercase; }

/* The zoomed-in piece of UI each card shows: it zooms in as the card arrives. */
.zoom { position: relative; flex: 1; min-height: 280px; transform: scale(1.18); opacity: 0; transition: transform 1.2s var(--ease) .1s, opacity .8s .1s; }
.card.in .zoom { transform: none; opacity: 1; }
.card:hover .zoom { transform: scale(1.03); }

/* Detect */
.detect-stage { position: absolute; left: 50%; top: 18px; width: 0; height: 600px; }
.detect-stage img { position: absolute; left: 50%; top: 50%; translate: -50% -50%; max-width: none; }
.detect .raw { height: 498px; margin-top: -16px; border-radius: 22px; box-shadow: 0 14px 40px rgba(0,0,0,.16); animation: raw 6s var(--ease) infinite; }
.detect .framed { height: 600px; animation: framed 6s var(--ease) infinite; }
@keyframes raw {
  0% { transform: translate(-120px, 80px) rotate(-12deg) scale(.7); opacity: 0; }
  12% { opacity: 1; }
  30%, 42% { transform: none; opacity: 1; }
  52%, 100% { transform: scale(1.03); opacity: 0; }
}
@keyframes framed {
  0%, 42% { opacity: 0; transform: scale(1.06); }
  55%, 88% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: none; }
}
.detect-chip { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; display: flex; gap: 8px; align-items: center; background: #fff; border-radius: 99px; padding: 8px 14px; font-size: 13px; font-weight: 600; box-shadow: 0 6px 20px rgba(40,60,120,.15); white-space: nowrap; animation: chip 6s var(--ease) infinite; }
.detect-chip .px { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.detect-chip .arrow, .detect-chip .model { animation: model 6s var(--ease) infinite; }
.detect-chip .model { color: var(--accent); }
@keyframes chip { 0%, 22% { opacity: 0; transform: translateY(8px); } 30%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes model { 0%, 40% { opacity: 0; } 50%, 100% { opacity: 1; } }

/* Tilt: the app's presets, a click each */
.tilt { display: grid; grid-template-columns: minmax(0, 1fr) 176px; gap: 18px; padding: 0 28px; }
.tilt-stage { position: relative; min-height: 340px; }
.tilt-stage img { position: absolute; left: 50%; top: 8px; translate: -50% 0; height: 500px; width: auto; max-width: none; }
.tilt-presets { position: relative; z-index: 1; display: grid; gap: 12px; align-self: center; padding-bottom: 26px; }
.preset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.preset { position: relative; height: 44px; border-radius: 9px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.06); perspective: 110px; cursor: pointer; padding: 0; transition: background .2s, border-color .2s, transform .2s var(--ease); }
.preset:hover { background: rgba(255,255,255,.12); }
.preset.on { border-color: #8fa2f5; background: rgba(143,162,245,.2); }
.preset.hot { transform: scale(.92); }
.preset .slab { position: absolute; left: 50%; top: 50%; width: 17px; height: 28px; margin: -14px 0 0 -8.5px; border-radius: 4px; background: linear-gradient(135deg, #b9bbc8, #7d7f8d); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); transform: rotate(var(--z)) rotateX(var(--x)) rotateY(var(--y)); }
.preset .slab i { position: absolute; width: 4px; height: 4px; margin: -2px; border-radius: 50%; background: #fff; }

/* Colours: the real device up close, in each finish */
.colors { position: relative; display: flex; align-items: flex-end; padding: 0 30px 28px; min-height: 300px; }
.finish { position: absolute; right: -10px; top: -6px; width: 58%; max-width: 360px; aspect-ratio: 700/797; }
.finish img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .6s var(--ease); }
.finish img.on { opacity: 1; }
.finish-picker { position: relative; z-index: 2; display: grid; justify-items: start; gap: 8px; }
.pill-row { display: flex; gap: 10px; background: rgba(255,255,255,.9); padding: 8px 10px; border-radius: 99px; box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.pill-row i { cursor: pointer; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); transition: box-shadow .3s; }
.pill-row i.on { box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), 0 0 0 2px #fff, 0 0 0 4px var(--accent); }
.color-name { font-size: 13px; font-weight: 600; color: var(--ink-2); background: rgba(255,255,255,.85); padding: 4px 11px; border-radius: 99px; }

/* Layouts */
.layouts { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.lay { position: relative; width: 230px; height: 200px; background: #fff; border-radius: 14px; box-shadow: 0 10px 30px rgba(80,60,140,.15); }
.lay i { position: absolute; width: 52px; height: 112px; border-radius: 12px; background: #1d1d22; border: 3px solid #1d1d22; transition: all .8s var(--ease); left: calc(50% - 26px); top: calc(50% - 56px); box-shadow: 0 8px 14px rgba(0,0,0,.18); }
.lay i::after { content: ""; position: absolute; inset: 0; border-radius: 9px; background: url(/assets/screens/st0.webp) center / cover; }
.lay i:nth-child(2)::after { background-image: url(/assets/screens/st1.webp); }
.lay i:nth-child(3)::after { background-image: url(/assets/screens/st2.webp); }
.lay[data-layout="row"] i { transform: translateX(calc((var(--i) - 1) * 64px)); }
.lay[data-layout="column"] i { transform: translateY(calc((var(--i) - 1) * 60px)) scale(.48); }
.lay[data-layout="overlap"] i { transform: translate(calc((var(--i) - 1) * 34px), calc((var(--i) - 1) * 18px)); }
.lay[data-layout="rising"] i { transform: translate(calc((var(--i) - 1) * 34px), calc((1 - var(--i)) * 18px)); }
.seg { display: flex; background: rgba(255,255,255,.7); border-radius: 10px; padding: 3px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.seg span { cursor: pointer; padding: 6px 10px; border-radius: 8px; transition: background .3s, color .3s; }
.seg span.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.1); }

/* Backgrounds */
.backgrounds, .shadow, .watermark { margin-top: 24px; }
.bg-canvas, .shadow-stage, .wm-canvas { position: absolute; inset: 0; overflow: hidden; }
.bg-canvas img, .wm-canvas img, .shadow-phone { position: absolute; left: 50%; top: 28px; translate: -50% 0; height: 540px; width: auto; max-width: none; }
.bg-canvas { transition: background .8s var(--ease); }
.float-bar { position: absolute; left: 50%; bottom: 20px; translate: -50% 0; z-index: 2; display: flex; gap: 6px; padding: 6px; border-radius: 16px; background: rgba(255,255,255,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.bg-grid i { cursor: pointer; flex: none; width: 26px; height: 26px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); transition: box-shadow .3s; }
.bg-grid i.on { box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), 0 0 0 2px #fff, 0 0 0 4px var(--accent); }

/* Shadows */
.shadow-stage { background: linear-gradient(#eef0f5, #e1e5ee); }
/* Lit from the top left, so the shadow falls to the right of the phone. Same two filters in every state, so it animates. */
.shadow-phone { left: 42%; height: 500px; transition: filter .8s var(--ease), transform .8s var(--ease); filter: drop-shadow(0 0 0 transparent) drop-shadow(0 0 0 transparent); }
.shadow-phone[data-s="low"] { filter: drop-shadow(6px 10px 10px rgba(40,48,90,.34)) drop-shadow(14px 22px 24px rgba(40,48,90,.2)); }
.shadow-phone[data-s="medium"] { filter: drop-shadow(14px 22px 20px rgba(40,48,90,.3)) drop-shadow(36px 56px 56px rgba(40,48,90,.32)); transform: translateY(-6px); }
.shadow-phone[data-s="high"] { filter: drop-shadow(24px 36px 30px rgba(40,48,90,.3)) drop-shadow(70px 100px 90px rgba(40,48,90,.42)); transform: translateY(-14px); }
.shadow-tiles { gap: 2px; padding: 4px; border-radius: 12px; }
.shadow-tiles span { cursor: pointer; padding: 7px 12px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--ink-2); transition: background .3s, color .3s, box-shadow .3s; }
.shadow-tiles span.on { background: #fff; color: var(--accent); box-shadow: 0 1px 4px rgba(0,0,0,.12); }

/* Ratios */
.ratios-demo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.ratio-box { width: 230px; height: 230px; border-radius: 10px; cursor: pointer; background: linear-gradient(#f9d5e2, #dacbf5); display: grid; place-items: center; transition: width .7s var(--ease), height .7s var(--ease); box-shadow: 0 10px 30px rgba(140,60,100,.15); overflow: hidden; }
.ratio-box img { height: 84%; width: auto; max-width: 90%; object-fit: contain; }
.ratio-label { font-size: 13px; font-weight: 700; background: #fff; padding: 6px 12px; border-radius: 99px; box-shadow: 0 4px 12px rgba(0,0,0,.08); font-variant-numeric: tabular-nums; }

/* Watermark */
.wm-canvas { background: radial-gradient(70% 50% at 50% 25%, #3d3168, transparent 70%), linear-gradient(#251e3c, #0f0f16); }
.wm { position: absolute; right: 18px; bottom: 18px; z-index: 2; font-size: 14px; font-weight: 700; padding: 6px 11px; border-radius: 8px; background: rgba(255,255,255,.16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; transition: background .4s, color .4s; }
.wm.text { background: none; backdrop-filter: none; font-weight: 600; opacity: .8; }
.wm.logo { background: #fff; color: #121216; }

/* Export */
.export { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.res { display: flex; gap: 6px; }
.res span { background: #fff; padding: 8px 14px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--ink-2); box-shadow: 0 0 0 1px var(--line); transition: .3s; }
.res span.on { color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.export-file { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; animation: drag 4.5s var(--ease) infinite; }
.export-file img { height: 110px; width: auto; background: linear-gradient(#cee3f7, #e2d3f6); padding: 10px 18px; border-radius: 8px; box-shadow: 0 8px 20px rgba(0,0,0,.12); }
@keyframes drag {
  0%, 15% { transform: none; }
  45%, 60% { transform: translate(70px, -20px) rotate(6deg) scale(.9); }
  75%, 100% { transform: none; }
}
.mini-toast { background: rgba(30,30,36,.9); color: #fff; font-size: 12px; font-weight: 500; padding: 7px 13px; border-radius: 99px; animation: toast 4.5s var(--ease) infinite; }
@keyframes toast { 0%, 66% { opacity: 0; transform: translateY(6px); } 74%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* Workflow */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { background: #fff; border-radius: 22px; padding: 26px; box-shadow: 0 0 0 1px var(--line); }
.step h4 { margin: 18px 0 6px; font-size: 17px; }
.step p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.key { display: inline-block; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 10px; background: linear-gradient(#fff, #eef0f5); box-shadow: 0 0 0 1px rgba(0,0,0,.1), 0 2px 0 rgba(0,0,0,.08); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan { position: relative; background: #fff; border-radius: var(--radius); padding: 34px; box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; }
.plan-note { margin: 10px 0 0; font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.plan-flag { position: absolute; top: 26px; right: 26px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 6px 10px; border-radius: 99px; color: #fff; background: linear-gradient(90deg, #6f86f2, #b48bf0); box-shadow: 0 6px 16px rgba(110, 120, 230, .35); }
.plan h3 { font-size: 20px; }
.price { font-family: var(--serif); font-size: 64px; line-height: 1; margin: 16px 0 4px; }
.price small { font-family: var(--sans); font-size: 16px; color: var(--ink-3); margin-left: 4px; }
.plan ul { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 12px; flex: 1; align-content: start; }
.plan li { padding-left: 28px; position: relative; font-size: 15px; line-height: 1.4; }
.plan li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #e4e8fb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.6 2.4L13 6.5' fill='none' stroke='%233a6df0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.plan .btn { align-self: flex-start; }
.plan-pro { background: linear-gradient(170deg, #ffffff, #e9edfd 70%, #dfe5fa); box-shadow: 0 0 0 2px #b9c5f5, 0 20px 50px rgba(80, 100, 200, .15); }
#pricing .fine { margin-top: 18px; }

/* FAQ */
.faq { max-width: 820px; display: grid; gap: 10px; }
.faq details { background: #fff; border-radius: 18px; padding: 20px 24px; box-shadow: 0 0 0 1px var(--line); }
.faq summary { font-weight: 600; font-size: 17px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 22px; line-height: 1; color: var(--ink-3); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 12px 0 0; color: var(--ink-2); line-height: 1.6; }

/* Closing + footer */
.closing { text-align: center; padding: 130px 24px 110px; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.closing img { filter: drop-shadow(0 18px 30px rgba(80, 100, 200, .3)); }
/* Privacy and terms */
.legal { max-width: 720px; margin: 0 auto; padding: 72px 24px 110px; font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.legal h1 { font-size: clamp(48px, 7vw, 76px); color: var(--ink); }
.legal-date { font-size: 14px; color: var(--ink-3); margin: 20px 0 36px; }
.legal-lede { font-size: 20px; line-height: 1.55; color: var(--ink); }
.legal h2 { font-size: clamp(28px, 4vw, 34px); color: var(--ink); margin: 48px 0 12px; }
.legal p, .legal ul { margin: 0 0 14px; }
.legal li { margin-bottom: 10px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--accent); text-underline-offset: 2px; }

.footer { border-top: 1px solid var(--line); }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 28px 24px; display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--ink-3); flex-wrap: wrap; }
.footer nav { display: flex; gap: 22px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* Tablet */
@media (max-width: 980px) {
  .hero-copy { grid-template-columns: 1fr; gap: 24px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .span-2, .span-3 { grid-column: span 1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: 1fr; gap: 32px; }
  .compare { max-width: 560px; }
  .plans { grid-template-columns: 1fr; max-width: 560px; }
  .app-body { grid-template-columns: 220px minmax(0, 1fr); }
  .app-inspector { display: none; }
}

/* Phone */
@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-inner { gap: 10px; padding: 10px 16px; }
  .brand { margin-right: auto; }
  .lang { margin-right: 0; font-size: 13px; padding: 7px 24px 7px 9px; background-position: right 8px center; }
  .brand span { display: none; }
  .legal-page .brand span { display: inline; }
  .hero { padding: 44px 16px 28px; }
  .hero-side p { font-size: 17px; }
  .btn-glow { width: 100%; justify-content: center; }
  .app { margin-top: 40px; border-radius: 14px; }
  .app-body { grid-template-columns: minmax(0, 1fr); height: auto; }
  .side-more { display: none; }
  .shots { grid-template-columns: repeat(3, 56px); justify-content: start; }
  .app-side { order: 2; border-right: 0; border-top: 1px solid var(--line); padding: 14px 16px 16px; }
  .side-label:not(:first-child) { margin-top: 14px; }
  .swatches { grid-template-columns: repeat(10, 1fr); gap: 5px; }
  .swatches button { border-radius: 6px; }
  .app-canvas-wrap { padding: 20px 16px; }
  .section { padding: 80px 16px 0; }
  .bento, .steps, .plans { grid-template-columns: 1fr; }
  .card { min-height: 430px; }
  .card-copy { padding: 24px 22px 0; }
  .tilt { grid-template-columns: 1fr; padding: 0 22px; }
  .tilt-stage { min-height: 330px; }
  .tilt-stage img { height: 440px; }
  .tilt-presets { order: -1; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px 0 0; }
  .preset { height: 38px; }
  .colors { min-height: 320px; padding: 0 22px 24px; }
  .finish { width: 74%; right: -24px; }
  .bg-grid i { width: 23px; height: 23px; }
  .bg-canvas img, .wm-canvas img, .shadow-phone { height: 480px; }
  .plan { padding: 26px; }
  .closing { padding: 90px 16px 80px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .card, .zoom, .app { opacity: 1; transform: none; }
  .detect .raw { opacity: 0; }
  .detect .framed, .detect-chip, .detect-chip * { opacity: 1; }
}
