/* BreakPet — breakpet.app
   No frameworks, no web fonts. Everything below is hand-written and small. */

:root {
  --bg: #fff6ea;
  --bg-2: #fdeedb;
  --surface: #ffffff;
  --surface-2: #fff1e0;
  --ink: #2b2118;
  --ink-2: #5d4b3c;
  --muted: #8a7462;
  --line: #efdcc4;
  --orange: #e8743b;
  --orange-2: #c25a1e;
  --peach: #ffb27a;
  --teal: #3fb8c9;
  --sky: #8fd6e6;
  --pati: #ef8a3c;
  --hav: #d9a24b;
  --shadow: 0 10px 30px -12px rgba(80, 40, 10, .25);
  --shadow-lg: 0 30px 60px -20px rgba(80, 40, 10, .35);
  --r: 20px;
  --r-sm: 12px;
  --tile-r: 23%;
  --wrap: 1200px;
  --nav-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d1612;
    --bg-2: #241b15;
    --surface: #2b2118;
    --surface-2: #33271d;
    --ink: #fbf4e8;
    --ink-2: #e2d3c0;
    --muted: #b49b85;
    --line: #3f3126;
    --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html:lang(ja) body { font-family: "Avenir Next", "Avenir", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", "Segoe UI", sans-serif; }
html:lang(ko) body { font-family: "Avenir Next", "Avenir", "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif; }
html:lang(zh-Hans) body { font-family: "Avenir Next", "Avenir", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", sans-serif; }
html:lang(ja) body, html:lang(zh-Hans) body { line-break: strict; }
html:lang(ko) body { word-break: keep-all; overflow-wrap: break-word; }
body {
  margin: 0;
  font-family: "Avenir Next", "Avenir", -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(16px, 0.95rem + 0.2vw, 18px);
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: var(--orange-2); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.1; margin: 0; letter-spacing: -0.015em; font-weight: 800; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.9rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.wrap--narrow { max-width: 820px; }
.sec { padding: clamp(64px, 9vw, 128px) 0; position: relative; }
.sec__head { max-width: 760px; margin: 0 auto clamp(32px, 5vw, 64px); text-align: center; }
.sec__head .sub { margin-top: 14px; }
.eyebrow { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--orange-2); margin-bottom: 12px; }
.sub { color: var(--ink-2); font-size: clamp(1rem, .95rem + .3vw, 1.2rem); max-width: 62ch; }
.sec__head .sub { margin-inline: auto; }
.tile { border-radius: var(--tile-r); object-fit: cover; }
.ic { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 999; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h); transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.nav.is-solid { background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav__in { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a { color: var(--ink-2); font-weight: 600; padding: 8px 12px; border-radius: 999px; font-size: .95rem; transition: background .2s, color .2s; }
.nav__links a:hover, .nav__links a.is-active { background: color-mix(in srgb, var(--orange) 14%, transparent); color: var(--orange-2); text-decoration: none; }
.nav__right { display: flex; align-items: center; gap: 8px; }
.lang { position: relative; }
.lang__btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 10px 0 9px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; cursor: pointer; font: inherit; font-size: .8rem; font-weight: 700; letter-spacing: .04em; transition: border-color .2s; }
.lang__btn:hover, .lang__btn[aria-expanded="true"] { border-color: var(--orange); }
.lang__chev { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); transition: transform .25s var(--ease); }
.lang__btn[aria-expanded="true"] .lang__chev { transform: rotate(180deg); }
.flag { display: inline-block; flex: none; width: 21px; height: 15px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.12); line-height: 0; }
.flag svg { display: block; width: 100%; height: 100%; }
.lang__menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; margin: 0; padding: 6px; list-style: none; min-width: 210px; max-height: min(70vh, 480px); overflow-y: auto; overscroll-behavior: contain; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow), 0 2px 6px rgba(0,0,0,.08); animation: langIn .18s var(--ease); }
.lang__menu[hidden] { display: none; }
@keyframes langIn { from { opacity: 0; transform: translateY(-6px); } }
.lang__menu li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; cursor: pointer; font-size: .95rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.lang__menu li:hover, .lang__menu li.is-focus { background: color-mix(in srgb, var(--orange) 14%, transparent); }
.lang__menu li[aria-selected="true"] { color: var(--orange-2); }
.lang__menu li[aria-selected="true"]::after { content: ""; margin-left: auto; width: 6px; height: 11px; border: solid currentColor; border-width: 0 2.5px 2.5px 0; transform: translateY(-2px) rotate(45deg); }
.lang__menu .lang__sep { height: 1px; padding: 0; margin: 4px 6px; background: var(--line); cursor: default; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .lang__menu { animation: none; } }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 12px; cursor: pointer; position: relative; }
.burger span, .burger span::before, .burger span::after { content: ""; position: absolute; left: 11px; width: 22px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger span { top: 21px; }
.burger span::before { left: 0; top: -7px; }
.burger span::after { left: 0; top: 7px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }
.mnav { display: none; }
@media (max-width: 860px) {
  .nav__links { display: none; }
  .burger { display: block; }
  .mnav { position: absolute; top: var(--nav-h); left: 0; right: 0; display: grid; gap: 2px; padding: 8px 16px 16px; background: var(--bg); box-shadow: 0 20px 40px -20px rgba(0,0,0,.3); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: transform .3s var(--ease), opacity .25s; }
  .nav.is-open .mnav { transform: none; opacity: 1; pointer-events: auto; }
  .nav.is-open { background: var(--bg); }
  .mnav a { padding: 12px 10px; font-weight: 700; color: var(--ink); border-radius: 10px; }
  .mnav a:hover { background: var(--surface-2); text-decoration: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 40px) 0 72px; overflow: hidden; isolation: isolate; }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.hero__copy h1 { font-size: clamp(2.3rem, 1.4rem + 4.6vw, 4.6rem); font-weight: 900; letter-spacing: -.03em; }
.h-line { display: block; }
.grad { background: linear-gradient(92deg, var(--orange) 0%, #f5a05a 45%, var(--teal) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
.lead { margin-top: 20px; font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); color: var(--ink-2); max-width: 56ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px 12px 12px; border-radius: 999px; font-weight: 700; color: #fff; background: var(--ink); box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s; }
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn img { width: 28px; height: 28px; }
.btn--pati { background: linear-gradient(135deg, #f08a3e, #d9541f); }
.btn--hav { background: linear-gradient(135deg, #e0a94e, #b9792a); }
.trust { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--ink-2); font-size: .95rem; font-weight: 600; }
.trust li { display: flex; align-items: center; gap: 6px; }
.trust .ic { color: var(--teal); }

.blobs { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.blobs i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; will-change: transform; }
.b1 { width: 48vw; height: 48vw; left: -12vw; top: -14vw; background: radial-gradient(circle at 40% 40%, #ffb27a, #ff8a4c 60%, transparent 70%); animation: drift1 22s ease-in-out infinite alternate; }
.b2 { width: 44vw; height: 44vw; right: -14vw; top: 8vh; background: radial-gradient(circle at 50% 50%, #9fe0ee, #5cc4d6 55%, transparent 70%); animation: drift2 26s ease-in-out infinite alternate; }
.b3 { width: 34vw; height: 34vw; left: 30vw; bottom: -20vw; background: radial-gradient(circle at 50% 50%, #ffd59b, #ffb27a 55%, transparent 70%); animation: drift3 30s ease-in-out infinite alternate; }
@media (prefers-color-scheme: dark) { .blobs i { opacity: .28; } }
@keyframes drift1 { to { transform: translate(10vw, 8vh) scale(1.1); } }
@keyframes drift2 { to { transform: translate(-8vw, 12vh) scale(1.15); } }
@keyframes drift3 { to { transform: translate(-10vw, -8vh) scale(.95); } }

.floaters { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.f { position: absolute; width: 34px; height: 34px; fill: var(--orange); opacity: .22; animation: floaty 9s ease-in-out infinite; }
.f1 { left: 6%; top: 22%; animation-duration: 11s; }
.f2 { left: 14%; top: 74%; width: 24px; height: 24px; fill: #e5484d; animation-delay: -3s; }
.f3 { left: 46%; top: 12%; width: 22px; height: 22px; animation-delay: -5s; animation-duration: 13s; }
.f4 { left: 58%; top: 86%; width: 30px; height: 30px; fill: #e5484d; animation-delay: -7s; }
.f5 { left: 90%; top: 18%; width: 44px; height: 44px; fill: var(--teal); animation-delay: -2s; animation-duration: 12s; }
.f6 { left: 84%; top: 70%; width: 20px; height: 20px; fill: var(--orange); animation-delay: -9s; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-26px) rotate(10deg); } }

.hero__stage { position: relative; aspect-ratio: 16 / 12; perspective: 1200px; }
.mac { position: absolute; margin: 0; border-radius: 14px; overflow: hidden; background: #111; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,.08); transition: transform .6s var(--ease); will-change: transform; }
.mac--back { width: 78%; right: 0; top: 0; transform: rotate(3deg); opacity: .96; }
.mac--front { width: 80%; left: 0; bottom: 0; transform: rotate(-2.5deg); }
.mac__bar { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; background: #e9e2d8; }
.mac__bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.mac__bar i:nth-child(2) { background: #febc2e; }
.mac__bar i:nth-child(3) { background: #28c840; }
.mac__bar span { margin-left: auto; margin-right: auto; font-size: 11px; font-weight: 700; color: #5a4d40; }
.mac__v { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #222; }
.chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); font-weight: 700; font-size: .9rem; transition: transform .6s var(--ease); animation: bob 6s ease-in-out infinite; }
.chip__t { color: var(--muted); font-weight: 600; }
.chip b { font-size: 1.15rem; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.chip--a { left: -4%; top: 18%; }
.chip--b { right: -2%; bottom: 14%; animation-delay: -3s; }
.chip--b .ic { color: #e5484d; }
@keyframes bob { 0%, 100% { margin-top: 0; } 50% { margin-top: -8px; } }
.scrollhint { position: absolute; left: 50%; bottom: 18px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid var(--muted); border-radius: 14px; opacity: .6; }
.scrollhint i { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--muted); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

@media (max-width: 960px) {
  .hero { min-height: 0; padding-top: calc(var(--nav-h) + 28px); }
  .hero__in { grid-template-columns: 1fr; }
  .hero__stage { max-width: 640px; margin: 24px auto 0; width: 100%; }
  .scrollhint { display: none; }
}
@media (max-width: 480px) {
  .chip--a { left: 0; top: -8px; }
  .chip--b { right: 0; bottom: -8px; }
  .chip b { font-size: 1rem; }
  .mac--back { width: 84%; }
  .mac--front { width: 86%; }
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .blobs i, .f, .chip, .scrollhint i, .marquee__track { animation: none !important; }
}

/* ---------- apps ---------- */
.apps { background: linear-gradient(180deg, transparent, var(--bg-2)); }
.appgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.appcard { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: var(--r); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.appcard::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 200px at 100% 0%, var(--tint, transparent), transparent 60%); opacity: .7; }
.appcard--pati { --tint: #ffd2b3; }
.appcard--hav { --tint: #ffe4b0; }
.appcard--soon { --tint: #cdeff5; border-style: dashed; }
@media (prefers-color-scheme: dark) { .appcard--pati { --tint: #5a2f17; } .appcard--hav { --tint: #5a4318; } .appcard--soon { --tint: #163d45; } }
a.appcard:hover { text-decoration: none; transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.appcard > * { position: relative; }
.appcard__logo { width: 84px; height: 84px; box-shadow: 0 6px 18px rgba(0,0,0,.18); transition: transform .4s var(--ease); }
a.appcard:hover .appcard__logo { transform: rotate(-6deg) scale(1.06); }
.appcard__logo--q { display: grid; place-items: center; background: linear-gradient(135deg, var(--peach), var(--sky)); color: #fff; }
.appcard__logo--q { position: relative; overflow: visible; }
.appcard__logo--q .ic { width: 44px; height: 44px; }
.appcard__q { position: absolute; top: -9px; right: -9px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: #fff; font-size: 1.25rem; font-weight: 800; line-height: 1; box-shadow: 0 0 0 3px var(--surface), 0 4px 10px rgba(0,0,0,.2); animation: qBob 2.8s var(--ease) infinite; }
@keyframes qBob { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(12deg) translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .appcard__q { animation: none; } }
.appcard h3 { font-size: 1.5rem; margin-top: 6px; }
.appcard h3 small { display: block; font-size: .85rem; color: var(--muted); font-weight: 600; margin-top: 2px; }
.appcard p { color: var(--ink-2); }
.appcard__meta { font-size: .85rem; color: var(--muted); font-weight: 600; margin-top: auto; padding-top: 8px; }
.appcard__more { font-weight: 700; color: var(--orange-2); }
.appcard__more::after { content: " →"; transition: margin-left .25s; }
a.appcard:hover .appcard__more::after { margin-left: 4px; }
@media (max-width: 900px) { .appgrid { grid-template-columns: 1fr 1fr; } .appcard--soon { grid-column: 1 / -1; } }
@media (max-width: 560px) { .appgrid { grid-template-columns: 1fr; } }

/* ---------- how ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 28px 24px 24px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.step__n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg, var(--orange), var(--peach)); color: #fff; font-weight: 800; margin-bottom: 14px; box-shadow: 0 6px 14px -4px rgba(232,116,59,.6); }
.step p { color: var(--ink-2); margin-top: 8px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* ---------- app sections ---------- */
.app--pati { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.app--hav { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.app__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: start; margin-bottom: 36px; }
.app__logo { width: 128px; height: 128px; box-shadow: 0 16px 36px -10px rgba(0,0,0,.35); animation: tilt 7s ease-in-out infinite; }
@keyframes tilt { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg) translateY(-4px); } }
.app__head h2 { max-width: 20ch; }
.app__head .sub { margin-top: 12px; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.store { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 12px; background: var(--ink); color: var(--bg); font-weight: 700; line-height: 1.15; transition: transform .25s var(--ease), opacity .2s; }
@media (prefers-color-scheme: dark) { .store { background: #fbf4e8; color: #2b2118; } }
.store .ic { width: 26px; height: 26px; }
.store small { display: block; font-size: .68rem; font-weight: 600; opacity: .8; letter-spacing: .02em; }
.store:hover { text-decoration: none; transform: translateY(-2px); }
.store.is-soon { opacity: .55; cursor: default; pointer-events: none; }
.store.is-soon::after { content: attr(data-soon); position: absolute; right: -6px; top: -10px; font-size: .62rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--orange); color: #fff; }
@media (max-width: 640px) { .app__head { grid-template-columns: 1fr; gap: 16px; } .app__logo { width: 96px; height: 96px; } }

.player { position: relative; border-radius: var(--r); overflow: hidden; background: #000; box-shadow: var(--shadow-lg); aspect-ratio: 16 / 9; }
.player__poster, .player__frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.player__play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.35)); cursor: pointer; display: grid; place-items: center; transition: opacity .3s; }
.player__play svg { width: clamp(64px, 9vw, 96px); height: clamp(64px, 9vw, 96px); padding: clamp(18px, 2.4vw, 26px); border-radius: 50%; background: rgba(255,255,255,.92); fill: var(--orange-2); box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .3s var(--ease); }
.player__play:hover svg { transform: scale(1.08); }
.player__play::before { content: ""; position: absolute; width: clamp(64px, 9vw, 96px); height: clamp(64px, 9vw, 96px); border-radius: 50%; border: 2px solid rgba(255,255,255,.7); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
.player.is-playing .player__play, .player.is-playing .player__len { opacity: 0; pointer-events: none; visibility: hidden; }
.player__len { position: absolute; right: 14px; bottom: 12px; padding: 3px 9px; border-radius: 8px; background: rgba(0,0,0,.55); color: #fff; font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; transition: opacity .3s; }

.chapters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.chapters button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); cursor: pointer; text-align: left; transition: border-color .2s, transform .2s var(--ease), background .2s; }
.chapters button:hover { border-color: var(--orange); transform: translateY(-2px); }
.chapters button.is-on { background: color-mix(in srgb, var(--orange) 12%, var(--surface)); border-color: var(--orange); }
.chapters b { font-size: .8rem; color: var(--orange-2); font-variant-numeric: tabular-nums; }
.chapters span { font-size: .9rem; font-weight: 600; color: var(--ink-2); }
@media (max-width: 760px) { .chapters { grid-template-columns: 1fr 1fr; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: clamp(40px, 6vw, 72px); }
.split--flip .bullets { order: 2; }
.bullets { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.bullets li { position: relative; padding-left: 34px; color: var(--ink-2); }
.bullets li::before { content: ""; position: absolute; left: 0; top: .35em; width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, var(--orange), var(--peach)); -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><ellipse cx="19" cy="20" rx="7" ry="9"/><ellipse cx="45" cy="20" rx="7" ry="9"/><ellipse cx="8" cy="36" rx="6" ry="8" transform="rotate(-20 8 36)"/><ellipse cx="56" cy="36" rx="6" ry="8" transform="rotate(20 56 36)"/><path d="M32 30c11 0 20 9 20 18 0 6-5 10-11 10-4 0-6-2-9-2s-5 2-9 2c-6 0-11-4-11-10 0-9 9-18 20-18z"/></svg>') center / contain no-repeat; mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><ellipse cx="19" cy="20" rx="7" ry="9"/><ellipse cx="45" cy="20" rx="7" ry="9"/><ellipse cx="8" cy="36" rx="6" ry="8" transform="rotate(-20 8 36)"/><ellipse cx="56" cy="36" rx="6" ry="8" transform="rotate(20 56 36)"/><path d="M32 30c11 0 20 9 20 18 0 6-5 10-11 10-4 0-6-2-9-2s-5 2-9 2c-6 0-11-4-11-10 0-9 9-18 20-18z"/></svg>') center / contain no-repeat; }
.bullets b { color: var(--ink); }
.app--hav .bullets li::before, .app--hav .step__n { background: linear-gradient(135deg, var(--hav), #f0c66a); }

.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.bullets--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 40px; margin-top: clamp(40px, 6vw, 72px); }
@media (max-width: 760px) { .bullets--cols { grid-template-columns: 1fr; } }

/* ---------- shorts: moving phone carousel ---------- */
.shorts { min-width: 0; }
.shorts--wide { margin-top: clamp(40px, 6vw, 72px); }
.shorts__h { text-align: center; font-size: 1.25rem; }
.shorts__h small { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); margin-top: 4px; }
.shorts__hint { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 2px; }

.phones { --pw: 188px; position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px; margin-top: 8px; }
.shorts--wide .phones { --pw: 230px; }
.phones__rail { list-style: none; margin: 0; display: grid; grid-auto-flow: column; grid-auto-columns: var(--pw); gap: clamp(18px, 3vw, 40px); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 34px calc(50% - var(--pw) / 2) 18px; scrollbar-width: none; -webkit-overflow-scrolling: touch; border-radius: var(--r); }
.phones__rail::-webkit-scrollbar { display: none; }
.phones__rail:focus-visible { outline-offset: -3px; }
.phones__nav { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); transition: transform .2s var(--ease), opacity .2s; }
.phones__nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.phones__nav:hover:not(:disabled) { transform: scale(1.08); border-color: var(--orange); }
.phones__nav:disabled { opacity: .35; cursor: default; }

.phone-item { scroll-snap-align: center; perspective: 900px; display: flex; flex-direction: column; align-items: center; }
.phone-item__in { width: 100%; transform: scale(.84); opacity: .7; transform-origin: 50% 60%; transition: transform .5s var(--ease), opacity .5s; }
.phone-item.is-active .phone-item__in { transform: scale(1.06); opacity: 1; }
.phone { position: relative; width: 100%; padding: 9px; border-radius: 34px; background: linear-gradient(145deg, #3a3a40, #121214 55%, #26262a); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.14), inset 0 0 0 4px #0b0b0c, 0 26px 40px -18px rgba(40, 20, 5, .55), 0 8px 16px -10px rgba(0,0,0,.4); transform-style: preserve-3d; transition: transform .6s var(--ease); }
.phone-item.is-left .phone { transform: rotateY(18deg); }
.phone-item.is-right .phone { transform: rotateY(-18deg); }
.phone-item.is-active .phone { animation: phoneFloat 6.5s ease-in-out infinite; }
.phone-item.is-active.is-playing .phone { animation: none; transform: none; }
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0) rotateX(3deg) rotateY(-9deg) rotateZ(-1.2deg); }
  50% { transform: translateY(-14px) rotateX(-2deg) rotateY(8deg) rotateZ(1deg); }
}
.phone__key { position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(90deg, #4a4a50, #1a1a1c); }
.phone__key--a { left: -2px; top: 22%; height: 9%; }
.phone__key--b { left: -2px; top: 33%; height: 9%; }
.phone__key--p { right: -2px; top: 28%; height: 13%; }
.phone__screen { position: relative; aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden; background: #000; isolation: isolate; }
.phone__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.phone__frame { z-index: 4; background: #000; }
.phone__island { position: absolute; z-index: 5; top: 7px; left: 50%; width: 34%; height: 17px; margin-left: -17%; border-radius: 999px; background: #000; box-shadow: 0 0 0 1px rgba(255,255,255,.06); }
.phone__screen::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(125deg, rgba(255,255,255,.16), transparent 34%); }
.phone__play { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.45)); display: grid; place-items: center; border-radius: inherit; }
.phone__play svg { width: 52px; height: 52px; padding: 15px; border-radius: 50%; background: rgba(255,255,255,.92); fill: var(--orange-2); box-shadow: 0 8px 20px rgba(0,0,0,.35); transition: transform .3s var(--ease), opacity .3s; }
.phone-item:not(.is-active) .phone__play svg { opacity: .0; }
.phone-item:not(.is-active) .phone__play:focus-visible svg, .phone__play:hover svg { opacity: 1; transform: scale(1.08); }
.phone__play:focus-visible { outline-offset: -4px; }
.lb__close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.phone__cap { margin-top: 16px; width: 100%; text-align: center; font-size: .86rem; font-weight: 700; color: var(--ink-2); line-height: 1.3; opacity: .6; transition: opacity .4s; }
.phone__cap small { display: block; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 2px; }
.phone-item:not(.is-active) .phone__cap span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.phone-item.is-active .phone__cap { opacity: 1; color: var(--ink); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--flip .bullets { order: 0; } }
@media (max-width: 560px) {
  .phones, .shorts--wide .phones { --pw: min(52vw, 190px); grid-template-columns: minmax(0, 1fr); }
  .phones__nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .phone-item.is-active .phone { animation: none; }
  .phone, .phone-item__in { transition: none; }
}

/* lightbox for small screens */
html.lb-open { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; gap: clamp(12px, 3vw, 32px); padding: 16px; background: rgba(10, 6, 3, .88); }
.lb__phone { position: relative; flex: none; width: min(428px, calc((100svh - 72px) * 9 / 16), calc(100vw - 160px)); aspect-ratio: 9 / 16; padding: 8px; border-radius: 30px; background: #111; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.14), 0 30px 60px rgba(0,0,0,.6); }
.lb__phone iframe, .lb__poster { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); border: 0; border-radius: 22px; background: #000; object-fit: cover; }
.lb__soon { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); margin: 0; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.94); color: #2b2118; font-size: .85rem; font-weight: 700; white-space: nowrap; }
.lb__nav { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #2b2118; display: grid; place-items: center; cursor: pointer; transition: transform .2s var(--ease), opacity .2s; }
.lb__nav:hover:not(:disabled) { transform: scale(1.08); }
.lb__nav:disabled { opacity: .25; cursor: default; }
.lb__nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.lb.is-single .lb__nav, .lb.is-single .lb__count { display: none; }
.lb__count { position: absolute; left: 0; right: 0; bottom: max(10px, env(safe-area-inset-bottom)); margin: 0; text-align: center; color: rgba(255,255,255,.75); font-size: .85rem; font-weight: 700; font-variant-numeric: tabular-nums; pointer-events: none; }
.lb__close { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #2b2118; display: grid; place-items: center; cursor: pointer; }
@media (max-width: 560px) {
  .lb { display: grid; grid-template-columns: auto auto; grid-template-areas: "phone phone" "prev next"; justify-content: center; align-content: center; gap: 14px 48px; padding-top: 64px; }
  .lb__phone { grid-area: phone; justify-self: center; width: min(calc(100vw - 32px), calc((100svh - 160px) * 9 / 16)); }
  .lb__nav--prev { grid-area: prev; justify-self: end; }
  .lb__nav--next { grid-area: next; justify-self: start; }
  .lb__count { bottom: auto; top: max(24px, env(safe-area-inset-top)); }
}

.scenes { display: grid; grid-auto-flow: column; grid-auto-columns: min(82vw, 420px); gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; padding: 8px 4px 16px; margin-top: clamp(32px, 5vw, 56px); scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.scenes figure { margin: 0; scroll-snap-align: start; }
.scenes img { border-radius: 14px; box-shadow: var(--shadow); aspect-ratio: 16 / 10; object-fit: cover; }
.scenes figcaption { display: none; }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; padding: 14px 0; background: linear-gradient(90deg, var(--orange), #f5a05a 50%, var(--teal)); color: #fff; font-weight: 800; letter-spacing: .01em; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 40px; width: max-content; animation: marquee 40s linear infinite; }
.marquee span { white-space: nowrap; font-size: 1.05rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- features ---------- */
.fgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feat { padding: 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feat__ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--surface-2); font-size: 1.35rem; margin-bottom: 12px; }
.feat h3 { font-size: 1.05rem; }
.feat p { color: var(--ink-2); font-size: .95rem; margin-top: 6px; }
@media (max-width: 1000px) { .fgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .fgrid { grid-template-columns: 1fr; } }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: clamp(32px, 5vw, 56px); padding: clamp(20px, 3vw, 32px); border-radius: var(--r); background: linear-gradient(135deg, var(--ink), #4a3626); color: #fff; }
.stat { text-align: center; }
.stat b { display: block; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); font-weight: 900; letter-spacing: -.03em; line-height: 1; background: linear-gradient(90deg, #ffd59b, #ffb27a); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 6px; font-size: .9rem; opacity: .85; font-weight: 600; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ---------- packs ---------- */
.packs { background: var(--bg-2); }
.packs__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.packs .sub { margin-top: 14px; }
.packlist { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.packlist li { padding: 10px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: .95rem; transition: transform .3s var(--ease), background .3s; }
.packlist li:hover { transform: translateY(-3px) rotate(-1.5deg); background: var(--surface-2); }
.packlist li.all { background: linear-gradient(135deg, var(--orange), var(--teal)); color: #fff; border: 0; }
@media (max-width: 800px) { .packs__in { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
.acc { display: grid; gap: 10px; }
.acc details { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); overflow: hidden; }
.acc summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 18px; font-weight: 700; position: relative; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; border-right: 2.5px solid var(--orange-2); border-bottom: 2.5px solid var(--orange-2); transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease); }
.acc details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.acc details p { padding: 0 18px 18px; color: var(--ink-2); }
.acc details[open] p { animation: fadeDown .35s var(--ease); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- final ---------- */
.final { padding-top: 0; }
.final__in { text-align: center; padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 48px); border-radius: calc(var(--r) + 8px); background: radial-gradient(900px 400px at 50% -10%, #ffe1c4, transparent 70%), var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (prefers-color-scheme: dark) { .final__in { background: radial-gradient(900px 400px at 50% -10%, #4a2d18, transparent 70%), var(--surface); } }
.final__logo { width: 96px; height: 96px; margin: 0 auto 20px; box-shadow: 0 16px 36px -10px rgba(0,0,0,.35); animation: tilt 7s ease-in-out infinite; }
.final .sub { margin: 12px auto 0; }
.final .cta { justify-content: center; }

/* ---------- footer ---------- */
.foot { padding: 40px 0 calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg-2); }
.foot__in { display: grid; grid-template-columns: 1fr auto; gap: 20px 32px; align-items: center; }
.foot__brand { display: flex; align-items: center; gap: 12px; color: var(--ink-2); font-size: .95rem; }
.foot__brand b { color: var(--ink); }
.foot__links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-weight: 600; }
.foot__links a { color: var(--ink-2); }
.foot__note { grid-column: 1 / -1; margin: 0; color: var(--ink-2); font-size: .95rem; }
.foot__note a { font-weight: 700; color: var(--orange-2); overflow-wrap: anywhere; }
.foot__legal { grid-column: 1 / -1; font-size: .8rem; color: var(--muted); }
@media (max-width: 640px) { .foot__in { grid-template-columns: 1fr; } }

/* ---------- misc ---------- */
.sec:not(.hero) { content-visibility: auto; contain-intrinsic-size: auto 800px; }
::selection { background: var(--peach); color: var(--ink); }

/* ---------- social links (header + footer) ---------- */
.socials { display: inline-flex; align-items: center; gap: 4px; }
.social { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); transition: color .2s, background .2s, transform .2s var(--ease); }
.social svg { width: 19px; height: 19px; fill: currentColor; }
.social:hover { color: var(--orange); background: var(--surface); transform: translateY(-1px); }
.social:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.socials--foot .social { width: 40px; height: 40px; }
.socials--foot .social svg { width: 21px; height: 21px; }
@media (max-width: 560px) { .nav__right .socials { display: none; } }

/* ---------- feedback form ---------- */

.lang__menu:focus { outline: none; }
.player.show-soon::after { content: attr(data-soon); position: absolute; z-index: 3; left: 50%; bottom: 20px; transform: translateX(-50%); padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.94); color: #2b2118; font-size: .85rem; font-weight: 700; white-space: nowrap; pointer-events: none; }
