/* PoomFit public site: bright, product-first, with motion that follows the scroll. */
@property --glow {
    syntax: '<color>';
    inherits: true;
    initial-value: #4b2fd6;
}

@property --tone {
    syntax: '<color>';
    inherits: true;
    initial-value: #6a4cf5;
}

:root {
    --paper: #f7f5f0;
    --surface: #ffffff;
    --ink: #15131a;
    --ink-2: #3a3741;
    --muted: #6d6875;
    --line: rgba(21, 19, 26, 0.1);
    --violet: #6a4cf5;
    --violet-2: #a58bff;
    --coral: #ff6a3d;
    --coral-2: #ffa35c;
    --mint: #0fb383;
    --mint-2: #7fe3b8;
    --sun: #ffbf1f;
    --pink: #ff5c9d;
    --sky: #3fb8ff;
    --accent: var(--violet);
    --tone: var(--violet);
    --night: #121019;
    --night-line: rgba(255, 255, 255, 0.14);
    --night-text: #f4f2f8;
    --night-muted: #aaa4b4;
    --radius-panel: 36px;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --spring: cubic-bezier(0.34, 1.45, 0.5, 1);
    transition: --tone 0.6s var(--ease);
}

:root[data-tone='coral'] {
    --tone: var(--coral);
}

:root[data-tone='mint'] {
    --tone: var(--mint);
}

:root[data-tone='sun'] {
    --tone: #f0a400;
}

:root[data-tone='pink'] {
    --tone: var(--pink);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Onest, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}

::selection {
    background: rgba(106, 76, 245, 0.2);
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--violet);
    outline-offset: 3px;
    border-radius: 6px;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
    margin: 0;
}

.wrap {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: clamp(16px, 4vw, 40px);
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
}

/* Type */
h1 {
    font-size: clamp(2.75rem, 1.4rem + 5.4vw, 6.25rem);
    font-weight: 660;
    line-height: 0.98;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

h2 {
    font-size: clamp(2.125rem, 1.25rem + 3.1vw, 4rem);
    font-weight: 640;
    line-height: 1.02;
    letter-spacing: -0.038em;
    text-wrap: balance;
}

.headline-color {
    --from: var(--violet);
    --via: var(--pink);
    --to: var(--coral);
    background: linear-gradient(100deg, var(--from) 0%, var(--via) 45%, var(--to) 75%, var(--from) 100%) 0 50% / 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    padding-bottom: 0.06em;
}

.motion .headline-color {
    animation: gradient-drift 9s linear infinite;
}

@keyframes gradient-drift {
    to {
        background-position: -220% 50%;
    }
}

.lead {
    max-width: 34rem;
    color: var(--ink-2);
    font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
    line-height: 1.6;
    text-wrap: pretty;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 0 0 1px rgba(106, 76, 245, 0.18);
    color: var(--violet);
    font-size: 0.9375rem;
    font-weight: 600;
}

.eyebrow-dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mint);
}

.eyebrow-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--mint);
    opacity: 0;
}

.motion .eyebrow-dot::after {
    animation: ping 2.4s var(--ease) infinite;
}

@keyframes ping {
    0% {
        transform: scale(0.6);
        opacity: 0.8;
    }

    80%,
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* Buttons */
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 26px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    text-decoration: none;
    transition: background-color 0.25s, border-color 0.25s, color 0.25s, transform 0.3s var(--spring), box-shadow 0.3s;
}

.button svg {
    transition: transform 0.3s var(--spring);
}

.button:hover svg {
    transform: translateX(4px);
}

.button:active {
    transform: scale(0.97);
}

.button-glow {
    border-color: transparent;
    background: linear-gradient(120deg, var(--violet), #8b5cf6 50%, var(--pink)) 0 0 / 200% 100%;
    box-shadow: 0 14px 32px -14px rgba(106, 76, 245, 0.75);
}

.button-glow:hover {
    background-position: 100% 0;
    box-shadow: 0 18px 40px -14px rgba(255, 92, 157, 0.7);
    transform: translateY(-2px);
}

.button-quiet {
    background: rgba(255, 255, 255, 0.6);
    border-color: var(--line);
    color: var(--ink);
}

.button-quiet:hover {
    background: var(--surface);
    border-color: rgba(21, 19, 26, 0.18);
    transform: translateY(-2px);
}

.button-small {
    min-height: 40px;
    padding: 0 18px;
    border-color: transparent;
    background: var(--tone);
    font-size: 0.9375rem;
    transition: background-color 0.6s var(--ease), transform 0.3s var(--spring);
}

.button-small:hover {
    transform: translateY(-1px);
}

.button-light {
    background: #fff;
    border-color: #fff;
    color: var(--ink);
}

.button-light:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -12px rgba(255, 255, 255, 0.45);
}

/* Header: brand and account only; the menu is the dock below. */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid transparent;
    transition: background-color 0.25s, border-color 0.25s;
}

.site-header.is-scrolled {
    background: rgba(247, 245, 240, 0.8);
    border-bottom-color: var(--line);
    -webkit-backdrop-filter: blur(16px) saturate(1.5);
    backdrop-filter: blur(16px) saturate(1.5);
}

.site-header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 1200px;
    height: 68px;
    margin-inline: auto;
    padding-inline: clamp(16px, 4vw, 40px);
}

.wordmark {
    display: inline-flex;
    align-items: center;
    color: var(--ink);
    font-size: 1.1875rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    text-decoration: none;
}

.wordmark img {
    margin-right: 8px;
    transition: transform 0.4s var(--spring);
}

.wordmark:hover img {
    transform: rotate(-12deg) scale(1.08);
}

.wordmark-fit {
    background: linear-gradient(90deg, var(--violet), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.header-login {
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
}

.header-login:hover {
    background: rgba(21, 19, 26, 0.05);
}

.language-menu {
    position: relative;
}

.language-menu summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.875rem;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}

.language-menu summary::-webkit-details-marker {
    display: none;
}

.language-menu summary:hover {
    color: var(--ink);
    background: rgba(21, 19, 26, 0.05);
}

.language-menu summary svg {
    transition: transform 0.3s var(--ease);
}

.language-menu[open] summary svg {
    transform: rotate(180deg);
}

.language-menu nav {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 184px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 24px 48px -24px rgba(21, 19, 26, 0.28);
    animation: pop 0.25s var(--spring);
    transform-origin: top right;
}

@keyframes pop {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(-4px);
    }
}

.language-menu nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.9375rem;
    text-decoration: none;
}

.language-menu nav a:hover {
    background: var(--paper);
}

.language-menu nav a[aria-current] {
    color: var(--violet);
    font-weight: 650;
}

/* Dock: floating menu like the app's tab bar */
.dock {
    position: fixed;
    left: 50%;
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(22, 19, 31, 0.82);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        0 24px 48px -18px rgba(21, 12, 60, 0.55);
    -webkit-backdrop-filter: blur(18px) saturate(1.6);
    backdrop-filter: blur(18px) saturate(1.6);
    transform: translateX(-50%);
}

.motion .dock {
    transform: translate(-50%, 140%);
    transition: transform 0.9s var(--spring) 0.9s;
}

.motion.is-loaded .dock {
    transform: translateX(-50%);
}

.dock-top {
    position: relative;
    display: grid;
    place-items: center;
    flex: none;
    width: 48px;
    height: 48px;
    margin-right: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.dock-top img {
    transition: transform 0.4s var(--spring);
}

.dock-top:hover img {
    transform: translateY(-3px) rotate(-10deg);
}

.dock-progress {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    fill: none;
    stroke-width: 3;
}

.dock-progress circle {
    stroke: rgba(255, 255, 255, 0.12);
}

.dock-progress .dock-progress-bar {
    stroke: var(--tone);
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: calc(100 - var(--progress, 0) * 100);
}

.dock-indicator {
    position: absolute;
    left: 0;
    top: 6px;
    width: var(--w, 48px);
    height: 48px;
    border-radius: 999px;
    background: var(--tone);
    box-shadow: 0 8px 22px -8px var(--tone);
    opacity: 0;
    transform: translateX(var(--x, 0)) scale(0.6);
    transition:
        transform 0.55s var(--spring),
        width 0.55s var(--spring),
        opacity 0.3s;
}

.dock.has-active .dock-indicator {
    opacity: 1;
    transform: translateX(var(--x, 0));
}

.dock-link {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    height: 48px;
    padding: 0 13px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s;
}

.dock-link svg {
    flex: none;
    transition: transform 0.4s var(--spring);
}

.dock-link:hover {
    color: #fff;
}

.dock-link:hover svg {
    transform: translateY(-2px) scale(1.08);
}

.dock-link[aria-current] {
    color: #fff;
}

.dock-label {
    display: inline-block;
    overflow: hidden;
    max-width: 0;
    opacity: 0;
    transition: max-width 0.5s var(--spring), opacity 0.3s, margin 0.5s var(--spring);
}

.dock-link[aria-current] .dock-label,
.dock-link:hover .dock-label,
.dock-link:focus-visible .dock-label {
    max-width: 160px;
    margin-left: 8px;
    opacity: 1;
}

/* Devices */
.phone {
    position: relative;
    padding: 3.1%;
    border-radius: 15% / 6.9%;
    background: linear-gradient(150deg, #34313b 0%, #0e0d11 55%, #24222a 100%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.09),
        0 0 0 1px rgba(0, 0, 0, 0.5),
        0 50px 90px -40px rgba(34, 24, 74, 0.5),
        0 24px 40px -24px rgba(0, 0, 0, 0.35);
}

.phone-screen {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12.6% / 5.8%;
    background: #f4f3f8;
}

/* Hero */
.hero {
    position: relative;
    isolation: isolate;
    overflow: clip;
    padding-top: clamp(32px, 6vw, 88px);
    padding-bottom: 8px;
}

.hero-aura,
.closing-aura {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.hero-aura {
    -webkit-mask-image: linear-gradient(#000 60%, transparent);
    mask-image: linear-gradient(#000 60%, transparent);
}

.hero-aura i,
.closing-aura i {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.5;
}

.hero-aura i:nth-child(1) {
    top: -10%;
    right: 4%;
    width: 46vw;
    max-width: 620px;
    aspect-ratio: 1;
    background: var(--violet-2);
}

.hero-aura i:nth-child(2) {
    top: 30%;
    right: 26%;
    width: 30vw;
    max-width: 400px;
    aspect-ratio: 1;
    background: #ffb3cf;
}

.hero-aura i:nth-child(3) {
    top: 48%;
    right: -6%;
    width: 30vw;
    max-width: 420px;
    aspect-ratio: 1;
    background: #ffd08a;
}

.hero-aura i:nth-child(4) {
    top: 6%;
    left: -12%;
    width: 30vw;
    max-width: 380px;
    aspect-ratio: 1;
    background: #a9ecd2;
    opacity: 0.4;
}

.motion .hero-aura i,
.motion .closing-aura i {
    animation: drift 18s ease-in-out infinite alternate;
}

.motion .hero-aura i:nth-child(2),
.motion .closing-aura i:nth-child(2) {
    animation-duration: 14s;
    animation-delay: -6s;
}

.motion .hero-aura i:nth-child(3),
.motion .closing-aura i:nth-child(3) {
    animation-duration: 21s;
    animation-delay: -3s;
}

.motion .hero-aura i:nth-child(4) {
    animation-duration: 16s;
    animation-delay: -9s;
}

@keyframes drift {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(-6%, 8%, 0) scale(1.12);
    }

    100% {
        transform: translate3d(5%, -6%, 0) scale(0.92);
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(40px, 6vw, 88px);
}

.hero-copy h1 {
    margin-top: 22px;
}

.hero-copy .lead {
    margin-top: 28px;
}

.hero-copy .actions {
    margin-top: 36px;
}

.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin-top: 28px;
    padding: 0;
    color: var(--muted);
    font-size: 0.875rem;
    list-style: none;
}

.hero-facts li:first-child {
    color: var(--ink);
    font-weight: 600;
}

.hero-visual {
    --px: 0;
    --py: 0;
    --hero: 0;
    position: relative;
    display: flex;
    justify-content: flex-end;
    padding-block: 24px 8px;
}

.hero-ring {
    position: absolute;
    top: 50%;
    right: clamp(-40px, -2vw, 0px);
    width: min(110%, 600px);
    aspect-ratio: 1;
    border: 1.5px dashed rgba(106, 76, 245, 0.28);
    border-radius: 50%;
    transform: translateY(-50%);
}

.hero-ring::after {
    content: '';
    position: absolute;
    top: 12%;
    left: 12%;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--coral);
    box-shadow: 0 0 0 6px rgba(255, 106, 61, 0.18);
}

.motion .hero-ring {
    animation: spin 40s linear infinite;
}

@keyframes spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

.device--front {
    position: relative;
    z-index: 2;
    width: clamp(240px, 25vw, 330px);
    margin-right: clamp(0px, 3vw, 40px);
}

.device--back {
    position: absolute;
    z-index: 1;
    top: 15%;
    right: calc(clamp(240px, 25vw, 330px) * 0.62 + clamp(0px, 3vw, 40px));
    width: clamp(200px, 21vw, 275px);
}

.device--back .phone {
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.09),
        0 0 0 1px rgba(0, 0, 0, 0.5),
        0 30px 60px -36px rgba(34, 24, 74, 0.4);
}

.hero-mascot {
    position: absolute;
    z-index: 3;
    left: 6%;
    bottom: -2%;
    width: clamp(96px, 10vw, 140px);
    height: auto;
    filter: drop-shadow(0 18px 24px rgba(34, 24, 74, 0.25));
}

.motion .hero-mascot {
    animation: bob 4.5s ease-in-out infinite;
}

@keyframes bob {
    50% {
        translate: 0 -12px;
        rotate: -4deg;
    }
}

.motion [data-depth] {
    --d: 1;
    transform: translate3d(calc(var(--px) * 18px * var(--d)), calc(var(--hero) * -70px * var(--d) + var(--py) * 12px * var(--d)), 0) rotate(calc(var(--hero) * -4deg * var(--d) + var(--px) * 3deg));
    transition: transform 0.5s var(--ease);
}

.motion .device--back[data-depth] {
    transform: translate3d(calc(var(--px) * 10px - var(--hero) * 40px), calc(var(--hero) * 30px + var(--py) * 8px), 0) rotate(calc(-6deg + var(--hero) * 6deg + var(--px) * 2deg));
}

.demo-note {
    margin-top: 28px;
    color: var(--muted);
    font-size: 0.8125rem;
    text-align: right;
}

/* Intro timeline */
.motion .line-mask {
    display: block;
    overflow: hidden;
    padding-bottom: 0.08em;
    margin-bottom: -0.08em;
}

.motion .line {
    display: inline-block;
    transform: translateY(110%) rotate(4deg);
    transform-origin: 0 100%;
    transition: transform 1.1s var(--ease) calc(0.15s + var(--line) * 0.14s);
}

.motion.is-loaded .line {
    transform: none;
}

.motion [data-intro] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.motion.is-loaded .eyebrow[data-intro] {
    transition-delay: 0.05s;
}

.motion.is-loaded .lead[data-intro] {
    transition-delay: 0.5s;
}

.motion.is-loaded .actions[data-intro] {
    transition-delay: 0.62s;
}

.motion.is-loaded .hero-facts[data-intro] {
    transition-delay: 0.74s;
}

.motion.is-loaded [data-intro] {
    opacity: 1;
    transform: none;
}

.motion .hero-visual .phone,
.motion .hero-mascot {
    opacity: 0;
}

.motion .device--front .phone {
    transform: translateY(80px) rotate(6deg) scale(0.94);
}

.motion .device--back .phone {
    transform: translateX(60px) rotate(10deg) scale(0.9);
}

.motion .hero-visual .phone {
    transition: opacity 1s var(--ease), transform 1.3s var(--spring);
}

.motion.is-loaded .hero-visual .phone {
    opacity: 1;
    transform: none;
}

.motion.is-loaded .device--front .phone {
    transition-delay: 0.3s;
}

.motion.is-loaded .device--back .phone {
    transition-delay: 0.55s;
}

.motion.is-loaded .hero-mascot {
    opacity: 1;
    transition: opacity 0.8s var(--ease) 1.1s;
}

/* Marquee */
.marquee-band {
    overflow: hidden;
    margin-top: clamp(32px, 5vw, 72px);
    padding-block: 24px;
}

.marquee {
    --skew: 0deg;
    overflow: hidden;
    padding-block: 18px;
    background: var(--ink);
    color: #fff;
    transform: rotate(-1.6deg);
    margin-inline: -2vw;
}

.marquee-track {
    display: flex;
    width: max-content;
    will-change: transform;
}

.marquee-set {
    display: flex;
    align-items: center;
    flex: none;
}

.marquee-word {
    display: inline-block;
    padding-inline: 28px;
    font-size: clamp(1.75rem, 1rem + 3vw, 3.75rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.1;
    white-space: nowrap;
    transform: skewX(var(--skew));
}

.marquee-word--0 {
    color: var(--violet-2);
}

.marquee-word--1 {
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.85);
}

.marquee-word--2 {
    color: var(--coral-2);
}

.marquee-star {
    flex: none;
    width: 26px;
    height: 26px;
    background: var(--sun);
    clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}

.motion .marquee-star {
    animation: twinkle 3s linear infinite;
}

@keyframes twinkle {
    to {
        rotate: 360deg;
    }
}

/* Highlights */
.highlights {
    margin-top: clamp(48px, 6vw, 80px);
}

.highlight-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding-block: 0;
    list-style: none;
}

.highlight-row li {
    --c: var(--violet);
    --bg: #efeafe;
    padding: 26px 24px 28px;
    border-radius: 26px;
    background: var(--bg);
    transition: transform 0.4s var(--spring), box-shadow 0.4s;
}

.highlight-row li:nth-child(2) {
    --c: var(--coral);
    --bg: #ffece3;
}

.highlight-row li:nth-child(3) {
    --c: var(--mint);
    --bg: #ddf6ec;
}

.highlight-row li:nth-child(4) {
    --c: #d98e00;
    --bg: #fff3d2;
}

.highlight-row li:hover {
    transform: translateY(-6px) rotate(-0.6deg);
    box-shadow: 0 24px 40px -28px var(--c);
}

.highlight-num {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--c);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.highlight-row strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.0625rem;
    font-weight: 660;
    letter-spacing: -0.01em;
}

.highlight-row span:last-child {
    display: block;
    color: var(--ink-2);
    font-size: 0.9375rem;
    line-height: 1.55;
}

/* Chapters */
.chapter {
    --c: var(--violet);
    --c2: var(--sky);
    --panel: linear-gradient(145deg, #7b5cff 0%, #5a3df0 45%, #3a2bc4 100%);
    padding-block: clamp(80px, 11vw, 150px) 0;
}

.chapter--eat {
    --c: var(--coral);
    --c2: var(--pink);
    --panel: linear-gradient(145deg, #ffb35c 0%, #ff7a45 45%, #ff4f7a 100%);
}

.chapter--grow {
    --c: var(--mint);
    --c2: var(--sky);
    --panel: linear-gradient(145deg, #6ee3b4 0%, #13b88a 45%, #0b8f8f 100%);
}

.chapter .headline-color {
    --from: var(--c);
    --via: var(--c2);
    --to: var(--c);
}

.chapter-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(40px, 7vw, 104px);
}

.chapter--eat .chapter-copy {
    order: 2;
}

.chapter-index {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink-2);
    font-size: 0.9375rem;
    font-weight: 600;
}

.chapter-index span {
    display: inline-grid;
    place-items: center;
    min-width: 40px;
    height: 28px;
    padding-inline: 10px;
    border-radius: 999px;
    background: var(--c);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.chapter h2 {
    margin-top: 18px;
}

.chapter .lead {
    margin-top: 24px;
}

.checklist {
    max-width: 34rem;
    margin-top: 32px;
    padding: 0;
    list-style: none;
}

.checklist li {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    font-size: 1rem;
    font-weight: 500;
}

.checklist li:last-child {
    border-bottom: 1px solid var(--line);
}

.checklist li::before {
    content: '';
    flex: none;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border-radius: 50%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.5 12.5 3.5 3.5 7.5-8'/%3E%3C/svg%3E") center / 14px no-repeat,
        var(--c);
}

.reveal-ready .chapter-copy .checklist li {
    opacity: 0;
    transform: translateX(-14px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
    transition-delay: calc(0.35s + var(--i, 0) * 0.1s);
}

.reveal-ready .chapter-copy.is-visible .checklist li {
    opacity: 1;
    transform: none;
}

.more {
    max-width: 34rem;
    margin-top: 24px;
}

.more summary,
.faq-list summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    list-style: none;
    cursor: pointer;
}

.more summary {
    justify-content: flex-start;
    gap: 12px;
    color: var(--c);
    font-size: 0.9375rem;
    font-weight: 650;
}

.more summary::-webkit-details-marker,
.faq-list summary::-webkit-details-marker {
    display: none;
}

.more-sign {
    position: relative;
    flex: none;
    width: 24px;
    height: 24px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    transition: transform 0.4s var(--spring), background-color 0.3s;
}

.more-sign::before,
.more-sign::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 1.5px;
    border-radius: 1px;
    background: currentColor;
    transform: translate(-50%, -50%);
    transition: transform 0.3s var(--ease);
}

.more-sign::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

details[open] > summary .more-sign {
    transform: rotate(180deg);
}

details[open] > summary .more-sign::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.more p {
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.9375rem;
}

details[open] > p,
details[open] > ul {
    animation: unfold-text 0.45s var(--ease);
}

@keyframes unfold-text {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
}

.chapter-visual {
    --unfold: 1;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    justify-items: center;
    gap: 18px;
    padding: clamp(40px, 5vw, 72px) 16px clamp(24px, 3vw, 32px);
    border-radius: var(--radius-panel);
    background: var(--panel);
    box-shadow: 0 50px 90px -60px var(--c);
}

.motion .chapter-visual {
    clip-path: inset(calc((1 - var(--unfold)) * 9%) calc((1 - var(--unfold)) * 13%) round var(--radius-panel));
}

.chapter-numeral {
    position: absolute;
    z-index: -1;
    top: -0.12em;
    left: 0.06em;
    color: rgba(255, 255, 255, 0.16);
    font-size: clamp(9rem, 6rem + 10vw, 17rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
}

.motion .chapter-numeral {
    transform: translateY(calc((1 - var(--unfold)) * 60px)) scale(calc(0.85 + var(--unfold) * 0.15));
    transform-origin: 0 0;
}

.chapter-orbit {
    position: absolute;
    z-index: -1;
    right: -18%;
    bottom: -28%;
    width: 78%;
    aspect-ratio: 1;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.chapter-orbit::before {
    content: '';
    position: absolute;
    inset: 14%;
    border: 1.5px dashed rgba(255, 255, 255, 0.22);
    border-radius: 50%;
}

.chapter-orbit i {
    position: absolute;
    top: 9%;
    left: 21%;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.2);
}

.motion .chapter-orbit {
    animation: orbit 26s linear infinite;
}

@keyframes orbit {
    to {
        rotate: 360deg;
    }
}

.chapter-visual .device {
    width: clamp(230px, 23vw, 310px);
}

.motion .chapter-visual .device {
    transform: translate3d(0, var(--shift, 0), 0) rotate(calc((1 - var(--unfold)) * 5deg));
}

.chapter-visual .phone {
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.09),
        0 0 0 1px rgba(0, 0, 0, 0.45),
        0 50px 80px -30px rgba(10, 6, 40, 0.55);
}

figcaption {
    color: var(--muted);
    font-size: 0.8125rem;
    text-align: center;
}

.chapter-visual figcaption {
    color: rgba(255, 255, 255, 0.82);
}

/* Theme gallery: the band takes the tint of the chosen theme */
.theme-gallery {
    --glow: #4b2fd6;
    position: relative;
    overflow: clip;
    margin-top: clamp(96px, 12vw, 160px);
    padding-block: clamp(80px, 10vw, 128px);
    background:
        radial-gradient(60% 70% at 78% 45%, color-mix(in srgb, var(--glow) 70%, transparent), transparent 70%),
        radial-gradient(40% 50% at 10% 100%, color-mix(in srgb, var(--glow) 35%, transparent), transparent 70%),
        var(--night);
    color: var(--night-text);
    transition: --glow 0.8s var(--ease);
}

.theme-gallery[data-palette='bronze'] {
    --glow: #a85a26;
}

.theme-gallery[data-palette='olive'] {
    --glow: #6b7d2e;
}

.theme-gallery[data-palette='dark'] {
    --glow: #6c55d9;
}

.theme-gallery[data-palette='obsidian-bronze'] {
    --glow: #b9802f;
}

.theme-gallery[data-palette='iron'] {
    --glow: #e2461a;
}

.theme-gallery-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(40px, 7vw, 104px);
}

.theme-gallery-copy > p {
    max-width: 30rem;
    margin-top: 20px;
    color: var(--night-muted);
    font-size: 1.0625rem;
}

.theme-gallery fieldset {
    min-width: 0;
    margin: 32px 0 0;
    padding: 0;
    border: 0;
}

.theme-gallery legend {
    margin-bottom: 12px;
    padding: 0;
    color: var(--night-muted);
    font-size: 0.875rem;
    font-weight: 600;
}

.gallery-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gallery-options label {
    position: relative;
}

.gallery-options input {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.gallery-options span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--night-line);
    border-radius: 999px;
    color: var(--night-text);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.35s var(--spring);
}

.gallery-options i {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.gallery-options label:hover span {
    border-color: rgba(255, 255, 255, 0.32);
    transform: translateY(-2px);
}

.gallery-options input:checked + span {
    background: #fff;
    border-color: #fff;
    color: var(--ink);
}

.gallery-options input:focus-visible + span {
    outline: 2px solid #b8a8ff;
    outline-offset: 3px;
}

.gallery-status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.theme-gallery-preview {
    display: grid;
    justify-items: center;
    gap: 18px;
}

.theme-gallery-preview .device {
    width: clamp(240px, 24vw, 320px);
}

.theme-gallery-preview .phone {
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.06),
        0 60px 120px -40px rgba(0, 0, 0, 0.8);
}

.theme-gallery-preview .phone-screen {
    transition: opacity 0.35s var(--ease), transform 0.5s var(--spring), filter 0.35s;
}

.theme-gallery-preview .phone-screen.is-swapping {
    opacity: 0.25;
    filter: blur(6px);
    transform: scale(0.96);
}

.theme-gallery figcaption {
    color: var(--night-muted);
}

/* Details */
.details {
    padding-block: clamp(96px, 12vw, 160px) clamp(64px, 8vw, 104px);
}

.section-heading {
    max-width: 40rem;
}

.section-heading .lead {
    margin-top: 20px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 14px;
    margin-top: clamp(40px, 5vw, 64px);
}

.detail-grid > div {
    --c: var(--violet);
    position: relative;
    padding: 26px 26px 30px;
    border-radius: 24px;
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
    transition: transform 0.4s var(--spring), box-shadow 0.4s;
}

.detail-grid > div:nth-child(5n + 2) {
    --c: var(--coral);
}

.detail-grid > div:nth-child(5n + 3) {
    --c: var(--mint);
}

.detail-grid > div:nth-child(5n + 4) {
    --c: #e09a00;
}

.detail-grid > div:nth-child(5n + 5) {
    --c: var(--pink);
}

.detail-grid > div::before {
    content: '';
    display: block;
    width: 28px;
    height: 6px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: var(--c);
    transition: width 0.5s var(--spring);
}

.detail-grid > div:hover {
    transform: translateY(-4px);
    box-shadow: inset 0 0 0 1px var(--c), 0 24px 40px -30px var(--c);
}

.detail-grid > div:hover::before {
    width: 56px;
}

.detail-grid dt {
    font-size: 1.0625rem;
    font-weight: 660;
    letter-spacing: -0.01em;
}

.detail-grid dd {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* FAQ */
.faq {
    padding-block: clamp(40px, 6vw, 72px) clamp(96px, 12vw, 160px);
}

.faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(32px, 6vw, 88px);
    align-items: start;
}

.faq .section-heading {
    position: sticky;
    top: 100px;
}

.faq-list details {
    border-top: 1px solid var(--line);
}

.faq-list details:last-child {
    border-bottom: 1px solid var(--line);
}

.faq-list summary {
    padding: 22px 0;
    font-size: 1.0625rem;
    font-weight: 580;
    letter-spacing: -0.01em;
    transition: color 0.2s, padding 0.35s var(--spring);
}

.faq-list summary:hover {
    color: var(--violet);
    padding-left: 6px;
}

.faq-list details[open] summary {
    color: var(--violet);
}

.faq-list details > p,
.faq-list details > ul {
    max-width: 44rem;
    padding-bottom: 24px;
    color: var(--ink-2);
    font-size: 1rem;
}

.faq-list details > ul {
    padding-left: 20px;
}

.faq-list details > ul li + li {
    margin-top: 6px;
}

/* Closing */
.closing {
    position: relative;
    isolation: isolate;
    overflow: clip;
    padding-block: clamp(88px, 11vw, 144px);
    background: var(--night);
    color: var(--night-text);
    text-align: center;
}

.closing-aura i {
    opacity: 0.55;
    filter: blur(90px);
}

.closing-aura i:nth-child(1) {
    top: -30%;
    left: 10%;
    width: 50vw;
    max-width: 640px;
    aspect-ratio: 1;
    background: #5b3df0;
}

.closing-aura i:nth-child(2) {
    bottom: -40%;
    right: 5%;
    width: 44vw;
    max-width: 560px;
    aspect-ratio: 1;
    background: #ff4f7a;
}

.closing-aura i:nth-child(3) {
    top: 20%;
    right: 35%;
    width: 26vw;
    max-width: 320px;
    aspect-ratio: 1;
    background: #ff9a3d;
    opacity: 0.4;
}

.closing-inner {
    display: grid;
    justify-items: center;
}

.closing-mascot {
    width: 120px;
    height: auto;
    margin-bottom: 28px;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.4));
}

.motion .closing-mascot {
    animation: bob 4s ease-in-out infinite;
}

.closing .headline-color {
    --from: var(--violet-2);
    --via: #ff8fb8;
    --to: var(--coral-2);
}

.closing .lead {
    max-width: 36rem;
    margin-top: 24px;
    color: rgba(244, 242, 248, 0.78);
}

.closing .actions {
    justify-content: center;
    margin-top: 36px;
}

.closing-note {
    max-width: 34rem;
    margin-top: 20px;
    color: var(--night-muted);
    font-size: 0.875rem;
}

/* Footer */
.site-footer {
    padding-block: 48px 120px;
    border-top: 1px solid var(--line);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px 48px;
}

.footer-inner p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.footer-links a {
    color: var(--ink-2);
    font-size: 0.9375rem;
    text-decoration: none;
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
    transition: color 0.2s, background-size 0.35s var(--ease);
}

.footer-links a:hover,
.footer-links a[aria-current] {
    color: var(--violet);
    background-size: 100% 1.5px;
}

.footer-year {
    color: var(--muted);
    font-size: 0.875rem;
}

/* Reveal (only when JavaScript and motion are available) */
.reveal-ready [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
    transition-delay: calc(var(--i, 0) * 0.08s);
}

.reveal-ready [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* Legal documents */
.legal-page .site-footer {
    padding-bottom: 56px;
}

.legal-hero {
    position: relative;
    isolation: isolate;
    overflow: clip;
    padding-block: clamp(40px, 7vw, 96px) clamp(36px, 5vw, 64px);
}

.legal-hero .hero-aura i:nth-child(1) {
    top: -40%;
    right: -6%;
    width: 40vw;
}

.legal-hero .hero-aura i:nth-child(2) {
    top: 10%;
    right: 30%;
    width: 24vw;
}

.legal-hero .hero-aura i:nth-child(3) {
    top: 30%;
    right: -10%;
    width: 22vw;
}

.legal-hero .hero-aura i:nth-child(4) {
    display: none;
}

.legal-hero h1 {
    margin-top: 22px;
    font-size: clamp(1.75rem, 0.9rem + 4.4vw, 4.75rem);
    overflow-wrap: anywhere;
    hyphens: auto;
}

.legal-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    margin-top: 26px;
    color: var(--muted);
    font-size: 0.9375rem;
}

.legal-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.legal-meta span::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mint);
}

.doc-switch {
    position: relative;
    display: inline-flex;
    padding: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: inset 0 0 0 1px var(--line);
}

.doc-switch a {
    position: relative;
    z-index: 1;
    padding: 10px 18px;
    border-radius: 999px;
    color: var(--ink-2);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.25s, background-color 0.25s;
}

.doc-switch a:hover {
    background: rgba(21, 19, 26, 0.05);
}

.doc-switch a[aria-current] {
    background: var(--ink);
    color: #fff;
    box-shadow: 0 10px 24px -12px rgba(21, 19, 26, 0.6);
}

.legal-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: clamp(32px, 6vw, 88px);
    align-items: start;
    padding-bottom: clamp(64px, 9vw, 120px);
}

.legal-toc {
    position: sticky;
    top: 96px;
}

.legal-toc p {
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 0.8125rem;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.legal-toc ol {
    position: relative;
    padding: 0;
    list-style: none;
    counter-reset: toc;
}

.legal-toc li {
    counter-increment: toc;
}

.legal-toc a {
    position: relative;
    display: flex;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 12px;
    color: var(--ink-2);
    font-size: 0.9375rem;
    line-height: 1.35;
    text-decoration: none;
    transition: background-color 0.25s, color 0.25s;
}

.legal-toc a::before {
    content: counter(toc, decimal-leading-zero);
    flex: none;
    color: var(--muted);
    font-size: 0.8125rem;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    line-height: 1.6;
}

.legal-toc a:hover {
    background: rgba(106, 76, 245, 0.07);
}

.legal-toc a[aria-current] {
    background: rgba(106, 76, 245, 0.1);
    color: var(--violet);
    font-weight: 600;
}

.legal-toc a[aria-current]::before {
    color: var(--violet);
}

.legal-article {
    max-width: 46rem;
    overflow-wrap: anywhere;
    counter-reset: section;
    color: var(--ink-2);
    font-size: 1.0625rem;
    line-height: 1.75;
}

.legal-article h2 {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin: 0 0 16px;
    padding-top: 36px;
    border-top: 1px solid var(--line);
    color: var(--ink);
    font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
    font-weight: 650;
    letter-spacing: -0.02em;
    line-height: 1.25;
    counter-increment: section;
    scroll-margin-top: 96px;
}

.legal-article h2:first-child {
    padding-top: 0;
    border-top: 0;
}

.legal-article h2::before {
    content: counter(section, decimal-leading-zero);
    flex: none;
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 30px;
    border-radius: 999px;
    background: var(--c, var(--violet));
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
    transform: translateY(-3px);
}

.legal-article h2:nth-of-type(5n + 2) {
    --c: var(--coral);
}

.legal-article h2:nth-of-type(5n + 3) {
    --c: var(--mint);
}

.legal-article h2:nth-of-type(5n + 4) {
    --c: #e09a00;
}

.legal-article h2:nth-of-type(5n + 5) {
    --c: var(--pink);
}

.legal-article h3 {
    margin: 24px 0 10px;
    color: var(--ink);
    font-size: 1.125rem;
    font-weight: 640;
}

.legal-article p,
.legal-article ul,
.legal-article ol {
    margin: 0 0 18px;
}

.legal-article ul,
.legal-article ol {
    padding-left: 0;
    list-style: none;
}

.legal-article li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 26px;
}

.legal-article ul > li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 0.72em;
    width: 8px;
    height: 8px;
    border-radius: 3px;
    background: var(--violet-2);
    transform: rotate(45deg);
}

.legal-article ol {
    counter-reset: item;
}

.legal-article ol > li {
    counter-increment: item;
}

.legal-article ol > li::before {
    content: counter(item) '.';
    position: absolute;
    left: 0;
    color: var(--violet);
    font-weight: 650;
}

.legal-article strong {
    color: var(--ink);
    font-weight: 640;
}

.legal-article a {
    color: var(--violet);
    font-weight: 550;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
}

.legal-article a:hover {
    color: var(--pink);
}

.legal-article table {
    width: 100%;
    margin: 0 0 18px;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.legal-article th,
.legal-article td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.legal-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 40px;
    padding: 26px 28px;
    border-radius: 26px;
    background: linear-gradient(130deg, #efeafe, #ffece3);
}

.legal-contact img {
    width: 56px;
    height: auto;
}

.legal-contact div {
    display: flex;
    align-items: center;
    gap: 16px;
}

.legal-contact strong {
    display: block;
    color: var(--ink);
    font-size: 1.0625rem;
}

.legal-contact span {
    color: var(--ink-2);
    font-size: 0.9375rem;
}

/* Responsive */
/* Plans */
.plans {
    padding-block: clamp(64px, 8vw, 104px);
}

.plans-label {
    margin-bottom: 14px;
    color: var(--violet);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 16px;
    align-items: start;
    margin-top: clamp(40px, 5vw, 64px);
}

.plan-card {
    --c: var(--mint);
    position: relative;
    min-width: 0;
    padding: clamp(26px, 3vw, 36px);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
}

.plan-card--hart {
    --c: #b9a6ff;
    overflow: hidden;
    color: var(--night-text);
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(106, 76, 245, 0.55), transparent 60%),
        radial-gradient(90% 70% at 0% 100%, rgba(255, 106, 61, 0.28), transparent 65%),
        var(--night);
    box-shadow: inset 0 0 0 1px var(--night-line), 0 40px 80px -48px rgba(106, 76, 245, 0.9);
}

.plan-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px 16px;
}

.plan-head h3 {
    font-size: clamp(1.5rem, 2.4vw, 1.875rem);
    font-weight: 720;
    letter-spacing: -0.02em;
}

.plan-price {
    color: var(--muted);
    font-weight: 600;
}

.plan-badge {
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--night);
    background: linear-gradient(135deg, #ffd27a, #ffbf1f);
    font-size: 0.8125rem;
    font-weight: 700;
}

.plan-lead {
    margin-top: 22px;
    font-weight: 650;
}

.plan-list {
    display: grid;
    gap: 12px;
    margin-top: 22px;
    padding: 0;
    list-style: none;
}

.plan-list li {
    display: flex;
    gap: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.plan-list li::before {
    content: '';
    flex: none;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border-radius: 50%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.5 12.5 3.5 3.5 7.5-8'/%3E%3C/svg%3E") center / 14px no-repeat,
        var(--c);
}

.plan-card--hart .plan-list li::before {
    background-color: var(--violet);
}

.plan-beta {
    margin-top: 26px;
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 0 0 1px var(--night-line);
    color: var(--night-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.plan-beta-title {
    margin-bottom: 6px;
    color: var(--night-text);
    font-weight: 650;
}

.plan-note {
    margin-top: 24px;
    color: var(--muted);
    font-size: 0.9375rem;
}

@media (max-width: 1040px) {
    .highlight-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .hero-grid,
    .chapter-grid,
    .theme-gallery-grid,
    .faq-grid,
    .legal-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .faq .section-heading,
    .legal-toc {
        position: static;
    }

    .legal-toc ol {
        display: flex;
        gap: 6px;
        overflow-x: auto;
        margin-inline: calc(clamp(16px, 4vw, 40px) * -1);
        padding-inline: clamp(16px, 4vw, 40px);
        scrollbar-width: none;
    }

    .legal-toc a {
        white-space: nowrap;
        background: var(--surface);
        box-shadow: inset 0 0 0 1px var(--line);
    }

    .hero-visual {
        justify-content: center;
        padding-top: 8px;
    }

    .hero-ring {
        right: 50%;
        width: min(120%, 520px);
        transform: translate(50%, -50%);
    }

    .motion .hero-ring {
        animation: none;
    }

    .device--front {
        width: min(64vw, 300px);
        margin-right: 0;
        margin-left: min(22vw, 120px);
    }

    .device--back {
        top: 14%;
        right: auto;
        left: max(0px, calc(50% - min(64vw, 300px) * 0.5 - min(22vw, 120px) * 0.55));
        width: min(52vw, 240px);
    }

    .hero-mascot {
        left: auto;
        right: 2%;
        bottom: -1%;
    }

    .demo-note {
        text-align: center;
    }

    .chapter--eat .chapter-copy {
        order: 0;
    }

    .chapter-visual .device,
    .theme-gallery-preview .device {
        width: min(66vw, 300px);
    }
}

@media (max-width: 600px) {
    body {
        font-size: 16px;
    }

    .site-header-inner {
        gap: 8px;
        height: 60px;
    }

    .header-actions .button-small {
        display: none;
    }

    .hero-copy .actions .button {
        flex: 1 1 100%;
    }

    .highlight-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .chapter-visual {
        border-radius: 28px;
    }

    .motion .chapter-visual {
        clip-path: inset(calc((1 - var(--unfold)) * 6%) calc((1 - var(--unfold)) * 8%) round 28px);
    }

    .closing .actions .button {
        width: 100%;
    }

    .footer-inner {
        flex-direction: column;
    }

    .legal-contact {
        padding: 22px;
    }

    .doc-switch {
        display: flex;
        width: 100%;
    }

    .doc-switch a {
        flex: 1 1 0;
        padding-inline: 12px;
        text-align: center;
    }
}

/* Narrow phones: icons only in the dock; names stay for screen readers. */
@media (max-width: 480px) {
    .dock-link {
        padding: 0 12px;
    }

    .dock-label,
    .dock-link[aria-current] .dock-label,
    .dock-link:hover .dock-label,
    .dock-link:focus-visible .dock-label {
        position: absolute;
        width: 1px;
        height: 1px;
        max-width: none;
        margin: 0;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
}

@media (max-width: 360px) {
    .dock {
        gap: 0;
        padding: 5px;
    }

    .dock-top {
        width: 44px;
        height: 44px;
        margin-right: 2px;
    }

    .dock-link {
        height: 44px;
        padding: 0 10px;
    }

    .dock-indicator {
        top: 5px;
        height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Plan cards: prices as option tiles, readable at narrow widths and enlarged text. */
.plan-free-amount {
    margin-top: 20px;
    font-size: clamp(2.25rem, 4vw, 2.75rem);
    font-weight: 720;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.plan-free-amount span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.9375rem;
    font-weight: 550;
    letter-spacing: 0;
}

.plan-cta {
    width: 100%;
    margin-top: 28px;
    text-align: center;
}

.plan-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr));
    gap: 12px;
    margin-top: 24px;
    padding: 0;
    list-style: none;
}

.plan-option {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 0 1px var(--night-line);
}

.plan-option--best {
    background: linear-gradient(160deg, rgba(165, 139, 255, 0.24), rgba(106, 76, 245, 0.08));
    box-shadow: inset 0 0 0 1.5px rgba(185, 166, 255, 0.8), 0 18px 40px -24px rgba(106, 76, 245, 0.9);
}

.plan-option-name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 8px;
    color: var(--night-muted);
    font-size: 0.875rem;
    font-weight: 650;
}

.plan-save {
    padding: 3px 9px;
    border-radius: 999px;
    color: var(--night);
    background: linear-gradient(135deg, #ffd27a, #ffbf1f);
    font-size: 0.75rem;
    font-weight: 750;
}

.plan-amount {
    margin-top: 10px;
    color: var(--night-text);
    font-size: clamp(1.75rem, 3vw, 2.125rem);
    font-weight: 720;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.plan-amount span {
    display: block;
    margin-top: 4px;
    color: var(--night-muted);
    font-size: 0.9375rem;
    font-weight: 450;
    letter-spacing: 0;
}

.plan-equivalent {
    margin-top: auto;
    padding-top: 10px;
    color: #d8caff;
    font-size: 0.875rem;
    font-weight: 600;
}

.plan-trial {
    position: relative;
    margin-top: 16px;
    padding: 14px 16px 14px 46px;
    border-radius: 16px;
    background: rgba(255, 191, 31, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 191, 31, 0.24);
    color: var(--night-muted);
    font-size: 0.875rem;
    line-height: 1.55;
}

.plan-trial::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 16px;
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffd27a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='4' rx='1'/%3E%3Cpath d='M12 8v13M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7M7.5 8a2.5 2.5 0 0 1 0-5C10 3 12 8 12 8s2-5 4.5-5a2.5 2.5 0 0 1 0 5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.plan-card--hart .plan-cta {
    margin-top: 18px;
}

.plan-store {
    margin-top: 10px;
    color: var(--night-muted);
    font-size: 0.8125rem;
    text-align: center;
}

.plan-card--hart .plan-lead {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--night-line);
}

/* Web checkout page (light): the same tiles on paper. */
.plan-pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 14px;
    margin-block: 24px;
}

.plan-pricing form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    border-radius: 20px;
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
}

.plan-pricing .plan-amount {
    margin-top: 0;
    color: var(--ink);
}

.plan-pricing .plan-amount span {
    color: var(--muted);
}

.plan-pricing .button {
    width: 100%;
    margin-top: auto;
}

/* Cookie consent for Google Analytics: Accept and Decline carry equal weight. */
.consent {
    position: fixed;
    left: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 70;
    width: min(420px, calc(100% - 32px));
    padding: 20px;
    border-radius: 20px;
    background: var(--surface);
    color: var(--ink);
    box-shadow:
        inset 0 0 0 1px var(--line),
        0 24px 48px -18px rgba(21, 12, 60, 0.35);
}

.consent[hidden] {
    display: none;
}

.consent-title {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 600;
}

.consent p {
    margin: 0;
    color: var(--ink-2);
    font-size: 0.875rem;
    line-height: 1.5;
}

.consent a {
    color: var(--ink);
}

.consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 16px;
}

.consent-button {
    min-height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    color: var(--paper);
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
}

.consent-button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.footer-cookie {
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink-2);
    font: inherit;
    font-size: 0.9375rem;
    cursor: pointer;
}

.footer-cookie:hover {
    color: var(--ink);
}
