:root {
    --bg: #f6f9ff;
    --bg-soft: #ecf2ff;
    --surface: rgba(255, 255, 255, 0.88);
    --surface-strong: #ffffff;
    --text: #12223f;
    --text-soft: #415372;
    --text-muted: #7083a2;
    --brand: #2a63df;
    --brand-deep: #1d46bd;
    --brand-soft: #8fc7ff;
    --violet: #7048f6;
    --border: rgba(42, 99, 223, 0.14);
    --border-strong: rgba(42, 99, 223, 0.22);
    --shadow: 0 20px 50px rgba(18, 34, 63, 0.09);
    --shadow-soft: 0 10px 26px rgba(18, 34, 63, 0.06);
    --radius-xl: 34px;
    --radius-lg: 28px;
    --radius-md: 20px;
    --max: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Avenir Next", "Segoe UI Variable Display", "SF Pro Display",
        "Segoe UI", sans-serif;
    color: var(--text);
    line-height: 1.6;
    background:
        radial-gradient(circle at 15% 14%, rgba(143, 199, 255, 0.22), transparent 24%),
        radial-gradient(circle at 84% 12%, rgba(112, 72, 246, 0.1), transparent 18%),
        linear-gradient(180deg, #f9fbff 0%, #f1f6ff 42%, #ffffff 100%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

::selection {
    background: rgba(42, 99, 223, 0.16);
}

.container {
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
}

/* ── Header ── */
.header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(255, 255, 255, 0.58);
    background: rgba(249, 251, 255, 0.88);
    backdrop-filter: blur(14px) saturate(135%);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 18px 0;
}

.nav-links {
    display: flex;
    gap: 4px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-soft);
    text-decoration: none;
    transition: background 180ms ease, color 180ms ease;
}

.nav-link:hover {
    background: rgba(42, 99, 223, 0.08);
    color: var(--brand-deep);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    text-decoration: none;
}

.brand img {
    width: auto;
    height: clamp(48px, 5vw, 58px);
    flex-shrink: 0;
    background: transparent;
    box-shadow: none;
}

.brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand strong {
    font-size: 1rem;
    color: var(--text);
    letter-spacing: -0.02em;
}

.brand small {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--brand-deep);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    white-space: nowrap;
}

.status-pill-link:hover {
    background: rgba(255, 255, 255, 1);
}

.header-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.74);
    color: var(--text-soft);
    text-decoration: none;
    box-shadow: var(--shadow-soft);
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 180ms ease, color 180ms ease;
}

.header-link:hover {
    background: rgba(42, 99, 223, 0.08);
    color: var(--brand-deep);
}

/* ── Hero ── */
.hero {
    padding: 64px 0 90px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 56px;
    align-items: center;
}

.hero-phone {
    display: flex;
    justify-content: center;
}

.hero-media {
    display: flex;
    justify-content: center;
}

.hero-portrait {
    overflow: hidden;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(42, 99, 223, 0.08);
    box-shadow: var(--shadow);
}

.hero-portrait img {
    width: min(100%, 540px);
    aspect-ratio: 1078 / 555;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-phone img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: var(--brand-deep);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand), var(--violet));
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-copy h1 {
    max-width: 12ch;
    font-size: clamp(3rem, 6vw, 4.35rem);
}

.lede {
    max-width: 33rem;
    margin-top: 16px;
    color: var(--text-soft);
    font-size: clamp(1rem, 1.5vw, 1.16rem);
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-top: 14px;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.hero-links a {
    color: var(--brand-deep);
    font-weight: 600;
    text-decoration: none;
}

.hero-links a:hover {
    text-decoration: underline;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
}

.button-row-center {
    justify-content: center;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 14px 22px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--brand), var(--violet));
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 14px 28px rgba(42, 99, 223, 0.18);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(42, 99, 223, 0.2);
}

.button-ghost {
    background: transparent;
    color: var(--brand-deep);
    border: 2px solid var(--border-strong);
    box-shadow: none;
}

.button-ghost:hover {
    background: rgba(42, 99, 223, 0.06);
    box-shadow: none;
    transform: none;
}

.button-large {
    min-height: 62px;
    padding: 16px 36px;
    font-size: 1.08rem;
    border-radius: 20px;
}

/* ── Hero Highlights ── */
.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.hero-highlights span {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid var(--border);
    color: var(--text-soft);
    font-size: 0.8rem;
    font-weight: 600;
}

/* ── Sections ── */
.section {
    padding: 84px 0;
}

.section-header {
    max-width: 640px;
    margin-bottom: 28px;
}

.section-header-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: clamp(2.1rem, 4vw, 3rem);
}

.section-header p {
    margin-top: 14px;
    color: var(--text-soft);
}

/* ── Story Sections ── */
.story {
    position: relative;
}

.story-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 72px;
    align-items: center;
}

.story-reverse .story-grid {
    grid-template-columns: 1fr auto;
}

.story-reverse .story-phone {
    order: 1;
}

.story-reverse .story-copy {
    order: 0;
}

.story-phone {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.story-phone img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.story-phone-double {
    align-items: flex-start;
}

.story-phone-double iphone-16-max:last-child {
    margin-top: 48px;
}

.story-copy h2 {
    font-size: clamp(2rem, 3.8vw, 2.8rem);
    max-width: 18ch;
}

.story-lead {
    margin-top: 18px;
    color: var(--text-soft);
    font-size: 1.1rem;
    line-height: 1.7;
}

.story-copy p {
    margin-top: 14px;
    color: var(--text-soft);
    line-height: 1.7;
    max-width: 60ch;
}

.story-quote {
    margin: 20px 0;
    padding: 18px 24px;
    border-radius: 20px;
    border-left: 4px solid var(--brand);
    background: rgba(42, 99, 223, 0.05);
    color: var(--text);
    font-style: italic;
    font-size: 1.04rem;
    line-height: 1.65;
}

/* ── Feature Pills ── */
.feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.feature-pills span {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--border);
    color: var(--text-soft);
    font-size: 0.82rem;
    font-weight: 600;
}

/* ── Compare Section ── */
.compare-section {
    padding-top: 12px;
}

.compare-grid {
    align-items: stretch;
}

.compare-card {
    position: relative;
    overflow: hidden;
    padding-bottom: 24px;
}

.compare-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--violet));
}

.compare-link {
    display: inline-flex;
    margin-top: 14px;
    color: var(--brand-deep);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.compare-link:hover {
    text-decoration: underline;
}

/* ── Feature Grid ── */
.grid {
    display: grid;
    gap: 20px;
}

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

.card {
    padding: 28px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(42, 99, 223, 0.08);
    box-shadow: var(--shadow-soft);
    transition: transform 240ms ease, box-shadow 240ms ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(18, 34, 63, 0.08);
}

.icon-wrap {
    width: 48px;
    height: 48px;
    padding: 11px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(42, 99, 223, 0.12), rgba(112, 72, 246, 0.12));
    box-shadow: inset 0 0 0 1px rgba(42, 99, 223, 0.08);
}

.card h3 {
    margin-top: 18px;
    font-size: 1.22rem;
}

.card p {
    margin-top: 12px;
    color: var(--text-soft);
}

/* ── CTA Section ── */
.cta-section {
    padding: 36px 0 88px;
}

.cta-box {
    text-align: center;
    padding: 64px 40px;
    border-radius: var(--radius-xl);
    background:
        linear-gradient(135deg, rgba(42, 99, 223, 0.04), rgba(112, 72, 246, 0.04)),
        rgba(255, 255, 255, 0.82);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.cta-box h2 {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
}

.cta-box p {
    max-width: 540px;
    margin: 18px auto 0;
    color: var(--text-soft);
    font-size: 1.1rem;
}

.cta-box .button-row {
    margin-top: 32px;
}

/* ── Store Buttons ── */
.store-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.store-buttons-center {
    justify-content: center;
    margin-top: 16px;
}

.store-panel {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 28px;
    padding: 18px 20px 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(42, 99, 223, 0.08);
    box-shadow: var(--shadow-soft);
}

.store-panel-center {
    align-items: center;
}

.store-intro {
    margin: 0;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 14px;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: transform 160ms ease, box-shadow 160ms ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    min-width: 150px;
}

.store-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.22);
}

.store-btn svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.store-btn span {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    font-size: 1rem;
}

.store-btn small {
    font-size: 0.68rem;
    font-weight: 400;
    opacity: 0.75;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.store-btn-apple {
    background: #000;
}

.store-btn-android {
    background: #1a1a2e;
}

.store-btn-soon {
    opacity: 0.55;
    cursor: default;
    pointer-events: none;
}

.tester-note {
    margin-top: 12px;
    color: var(--text-soft);
    font-size: 0.98rem;
}

.tester-note a {
    color: var(--brand);
    font-weight: 600;
}

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

/* ── Footer ── */
.footer {
    margin-top: 0;
    padding: 34px 0 42px;
    border-top: 1px solid rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(14px);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.footer-note {
    max-width: 420px;
    color: var(--text-soft);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.74);
    color: var(--text-soft);
    text-decoration: none;
    box-shadow: var(--shadow-soft);
}

/* ── Wiki Page ── */
.wiki-shell {
    padding: 52px 0 80px;
}

.wiki-card {
    max-width: 1040px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(42, 99, 223, 0.1);
    box-shadow: var(--shadow);
}

.wiki-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: center;
}

.wiki-copy {
    padding: 46px 42px 40px;
}

.wiki-copy h1 {
    margin-top: 16px;
    max-width: 11ch;
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    line-height: 0.98;
}

.wiki-copy p {
    max-width: 58ch;
    color: var(--text-soft);
    font-size: 1.08rem;
}

.wiki-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(42, 99, 223, 0.08);
    border: 1px solid var(--border);
    color: var(--brand-deep);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.wiki-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.wiki-media {
    padding: 28px 28px 28px 0;
}

.wiki-media-frame {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    border-radius: 30px;
    background: rgba(248, 251, 255, 0.92);
    border: 1px solid rgba(42, 99, 223, 0.1);
    box-shadow: var(--shadow-soft);
}

.wiki-media img {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 22px;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.wiki-media-note {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.wiki-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 0 42px 42px;
}

.wiki-section {
    padding: 22px;
    border-radius: 24px;
    background: rgba(248, 251, 255, 0.92);
    border: 1px solid var(--border);
}

.wiki-section-accent {
    background:
        linear-gradient(135deg, rgba(42, 99, 223, 0.06), rgba(112, 72, 246, 0.06)),
        rgba(255, 255, 255, 0.94);
}

.wiki-section h3 {
    margin-bottom: 10px;
    font-size: 1.28rem;
}

.wiki-section p,
.wiki-section li {
    color: var(--text-soft);
}

.wiki-section ul {
    margin: 14px 0 0;
    padding-left: 18px;
}

.wiki-note {
    padding: 0 42px 42px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.wiki-inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
}

.wiki-inline-links a,
.wiki-mail-link {
    color: var(--brand-deep);
    font-weight: 700;
    text-decoration: none;
}

.wiki-inline-links a:hover,
.wiki-mail-link:hover {
    text-decoration: underline;
}

/* ── Legal pages ── */
.legal-shell {
    padding: 42px 0 72px;
}

.legal-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 36px 30px 48px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-soft);
}

.legal-content h1 {
    font-size: clamp(2.1rem, 4vw, 3rem);
    margin-bottom: 10px;
}

.legal-content h2 {
    margin-top: 32px;
    margin-bottom: 12px;
    font-size: 1.46rem;
    letter-spacing: -0.03em;
}

.legal-content h3 {
    margin-top: 24px;
    margin-bottom: 10px;
    font-size: 1.08rem;
    letter-spacing: -0.02em;
}

.legal-content p,
.legal-content li {
    color: var(--text-soft);
}

.legal-content ul,
.legal-content ol {
    padding-left: 20px;
}

.legal-content a {
    color: var(--brand-deep);
}

.notice {
    margin-top: 34px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(236, 242, 255, 0.9);
    border: 1px solid var(--border);
    color: var(--text-soft);
}

/* ── Marketing Content Pages ── */
.page-content {
    padding: 42px 0 72px;
}

.content-card {
    max-width: 980px;
    margin: 0 auto;
    padding: 40px 34px 48px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-soft);
}

.article-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--brand-deep);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.article-kicker::before {
    content: "";
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand), var(--violet));
}

.content-card h1 {
    margin-top: 16px;
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    line-height: 1.06;
}

.article-lede {
    max-width: 760px;
    margin-top: 18px;
    color: var(--text-soft);
    font-size: 1.14rem;
}

.article-meta {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.content-card h2 {
    margin-top: 34px;
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    letter-spacing: -0.03em;
}

.content-card h3 {
    margin-top: 24px;
    font-size: 1.18rem;
    letter-spacing: -0.02em;
}

.content-card p,
.content-card li {
    color: var(--text-soft);
}

.content-card ul,
.content-card ol {
    padding-left: 20px;
}

.content-card a {
    color: var(--brand-deep);
}

.content-card img {
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.article-section + .article-section {
    margin-top: 18px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.info-card {
    padding: 22px;
    border-radius: 24px;
    background: rgba(248, 251, 255, 0.95);
    border: 1px solid var(--border);
}

.info-card h3 {
    margin-top: 0;
}

.compare-table {
    width: 100%;
    margin-top: 24px;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 24px;
    background: rgba(248, 251, 255, 0.88);
    box-shadow: inset 0 0 0 1px var(--border);
}

.compare-table th,
.compare-table td {
    padding: 16px 18px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--border);
}

.compare-table th {
    color: var(--text);
    font-size: 0.9rem;
    background: rgba(42, 99, 223, 0.06);
}

.compare-table tr:last-child td {
    border-bottom: 0;
}

.post-list {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}

.post-card {
    padding: 24px;
    border-radius: 24px;
    background: rgba(248, 251, 255, 0.94);
    border: 1px solid var(--border);
    text-decoration: none;
    box-shadow: var(--shadow-soft);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.post-card h3 {
    margin-top: 10px;
    color: var(--text);
}

.post-card p {
    margin-bottom: 0;
}

.post-label {
    color: var(--brand-deep);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.topic-list {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.topic-item {
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(248, 251, 255, 0.94);
    border: 1px solid var(--border);
}

.topic-item strong {
    display: block;
    color: var(--text);
}

.article-cta {
    margin-top: 36px;
    padding: 26px 24px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(42, 99, 223, 0.08), rgba(112, 72, 246, 0.06));
    border: 1px solid var(--border);
}

/* ── Responsive ── */

/* ── KI Showcase Carousel ── */
.showcase-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
}

.showcase-phone {
    position: relative;
    display: flex;
    justify-content: center;
}

.showcase-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.showcase-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    opacity: 0;
    transition: opacity 500ms ease;
    display: block;
}

.showcase-slide.active {
    opacity: 1;
    position: relative;
}

.showcase-steps {
    display: flex;
    gap: 6px;
    width: 100%;
    max-width: 860px;
}

.showcase-step {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 12px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
    text-align: center;
    font-family: inherit;
}

.showcase-step::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 12px;
    right: 12px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(90deg, var(--brand), var(--violet));
    opacity: 0;
    transition: opacity 200ms ease;
}

.showcase-step:hover {
    background: rgba(255, 255, 255, 0.82);
    border-color: var(--border-strong);
    transform: translateY(-2px);
}

.showcase-step.active {
    background: rgba(255, 255, 255, 0.92);
    border-color: var(--brand);
    box-shadow: var(--shadow-soft);
}

.showcase-step.active::before {
    opacity: 1;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    transition: background 200ms ease, color 200ms ease;
}

.showcase-step.active .step-num {
    background: linear-gradient(135deg, var(--brand), var(--violet));
    color: #fff;
}

.step-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

.step-desc {
    font-size: 0.76rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.showcase-step.active .step-desc {
    color: var(--text-soft);
}

@media (max-width: 920px) {
    .hero-grid,
    .story-grid,
    .story-reverse .story-grid,
    .grid-3,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy h1 {
        max-width: none;
    }

    .story-copy h2 {
        max-width: none;
    }

    .hero-phone iphone-16-max {
        --width: 240px !important;
    }

    .story-phone {
        order: -1 !important;
        justify-content: center;
    }

    .story-copy {
        order: 0 !important;
    }

    .story-phone iphone-16-max {
        --width: 230px !important;
    }

    .story-phone-double iphone-16-max {
        --width: 190px !important;
    }

    .story-grid {
        gap: 36px;
    }

    .nav-links {
        display: none;
    }

    .hero-highlights {
        gap: 8px;
    }

    .hero-links {
        gap: 10px 14px;
    }

    .hero-portrait img {
        width: 100%;
    }

    .cta-box {
        padding: 40px 24px;
    }

    .wiki-hero,
    .wiki-sections {
        grid-template-columns: 1fr;
    }

    .wiki-copy,
    .wiki-sections,
    .wiki-note {
        padding-left: 22px;
        padding-right: 22px;
    }

    .wiki-media {
        padding: 0 22px 22px;
    }

    .content-card {
        padding: 30px 22px 36px;
    }

    .compare-table,
    .compare-table tbody,
    .compare-table tr,
    .compare-table th,
    .compare-table td {
        display: block;
        width: 100%;
    }

    .compare-table thead {
        display: none;
    }

    .compare-table tr {
        border-bottom: 1px solid var(--border);
    }

    .compare-table td {
        border-bottom: 0;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    /* Showcase: steps become horizontal scroll */
    .showcase-steps {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
    }

    .showcase-step {
        min-width: 150px;
        scroll-snap-align: center;
    }

    .showcase-phone iphone-16-max {
        --width: 240px !important;
    }

    /* Reduce section padding */
    .section {
        padding: 64px 0;
    }

    .hero {
        padding: 48px 0 72px;
    }

    /* Feature grid: 2 columns on tablets */
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .container {
        width: min(var(--max), calc(100% - 28px));
    }

    .navbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .footer-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero {
        padding: 36px 0 56px;
    }

    .hero-copy h1 {
        font-size: clamp(2.4rem, 12vw, 3.4rem);
    }

    .button {
        width: 100%;
    }

    .card,
    .legal-content {
        padding: 22px;
    }

    .brand small {
        display: none;
    }

    .hero-stats {
        gap: 16px;
    }

    .stat strong {
        font-size: 1.2rem;
    }

    .story-phone-double {
        flex-direction: column;
        align-items: center;
    }

    .story-phone-double iphone-16-max:last-child {
        margin-top: 0;
    }

    .story-quote {
        padding: 14px 18px;
    }

    /* Single column grid on phones */
    .grid-3 {
        grid-template-columns: 1fr;
    }

    /* Reduce section padding further */
    .section {
        padding: 48px 0;
    }

    /* Showcase: tighter on phones */
    .showcase-stage {
        gap: 28px;
    }

    .showcase-phone iphone-16-max {
        --width: 220px !important;
    }

    .showcase-step {
        min-width: 130px;
        padding: 14px 10px 12px;
    }

    .step-desc {
        display: none;
    }

    .step-label {
        font-size: 0.8rem;
    }

    /* Status pill: smaller on mobile */
    .status-pill {
        font-size: 0.76rem;
        padding: 6px 10px;
        min-height: auto;
    }

    /* Footer links: wrap nicely */
    .footer-links {
        gap: 8px;
    }

    .footer-links a {
        padding: 8px 12px;
        font-size: 0.82rem;
        min-height: auto;
    }

    /* CTA section */
    .cta-box {
        padding: 32px 20px;
        border-radius: var(--radius-lg);
    }

    .store-panel {
        width: 100%;
        padding: 16px;
    }

    .cta-box h2 {
        font-size: clamp(1.8rem, 7vw, 2.4rem);
    }

    /* Story sections */
    .story-phone iphone-16-max {
        --width: 200px !important;
    }

    .story-phone-double iphone-16-max {
        --width: 170px !important;
    }

    /* Feature pills: smaller text */
    .feature-pills span {
        font-size: 0.74rem;
        padding: 6px 10px;
    }

    /* Legal pages: tighter padding */
    .legal-content {
        padding: 22px 18px 28px;
        border-radius: 20px;
    }

    .legal-content h1 {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }

    .legal-content h2 {
        font-size: 1.2rem;
    }

    .content-card h1 {
        font-size: clamp(2rem, 7vw, 2.6rem);
    }

    /* Section headers */
    .section-header h2 {
        font-size: clamp(1.6rem, 6vw, 2.4rem);
    }

    .section-header-center {
        margin-bottom: 32px;
    }
}

@media (max-width: 380px) {
    .hero-copy h1 {
        font-size: 2rem;
    }

    .showcase-step {
        min-width: 110px;
    }

    .step-num {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }

    .button-large {
        padding: 14px 20px;
        font-size: 1rem;
    }
}

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

    * {
        transition: none !important;
    }
}

/* ── Cookie Banner ────────────────────────────────────── */
.cookie-banner {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: calc(100% - 2rem);
    max-width: 560px;
    background: var(--surface-strong);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    padding: 1rem 1.25rem;
    animation: cookie-slide-up .3s ease;
}

@keyframes cookie-slide-up {
    from { opacity: 0; transform: translateX(-50%) translateY(1rem); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.cookie-banner-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
}

.cookie-banner-text {
    flex: 1 1 240px;
    margin: 0;
    font-size: .875rem;
    color: var(--text-soft);
}

.cookie-banner-text a {
    color: var(--brand);
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: .5rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: .5rem 1.1rem;
    border-radius: 50px;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: opacity .15s;
}

.cookie-btn:hover { opacity: .85; }
.cookie-btn-primary { background: var(--brand); color: #fff; }
.cookie-btn-ghost { background: transparent; color: var(--text-soft); border: 1px solid var(--border-strong); }
