/* Self-hosted fonts (SIL Open Font License, see assets/fonts/OFL-*.txt) – no requests to Google. */
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 100 1000; font-display: swap; src: url('assets/fonts/dm-sans-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 100 800; font-display: swap; src: url('assets/fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2'); }

:root {
    --primary: #2e7db8;
    --primary-light: #4fa0dc;
    --primary-dark: #1f5c8b;
    --green: #268347;
    --text: #0f172a;
    --muted: #627286;
    --subtle: #f4f8fb;
    --border: #e2e8f0;
    --radius: 18px;
    --shadow: 0 18px 48px rgba(15, 23, 42, .10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--text); background: #fff; line-height: 1.65; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--primary); }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; flex-shrink: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 5px; }
::selection { background: #d5e9f7; }
.container { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 1000; left: 20px; top: -100px; padding: 12px 20px; border-radius: 8px; background: #fff; }
.skip-link:focus { top: 16px; }

.site-nav { position: fixed; inset: 0 0 auto; z-index: 100; background: rgba(255,255,255,.9); border-bottom: 1px solid rgba(226,232,240,.75); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.nav-content { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; flex-shrink: 0; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand span { font-size: 1.05rem; font-weight: 700; letter-spacing: -.03em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 9px; background: var(--subtle); text-decoration: none; color: var(--muted); font-weight: 600; font-size: .8rem; transition: background .2s, color .2s; }
.lang-switch:hover { background: var(--primary); color: white; }
.menu-toggle { display: none; place-items: center; width: 38px; height: 38px; background: transparent; border: 1px solid var(--border); border-radius: 9px; color: var(--text); }
.menu-toggle svg { width: 20px; height: 20px; }

.hero { position: relative; overflow: hidden; padding: 158px 0 88px; background: linear-gradient(180deg, var(--subtle), #fff); }
.hero::before { content: ''; position: absolute; width: 850px; height: 850px; top: -220px; right: -260px; background: radial-gradient(ellipse, rgba(46,125,184,.08), transparent 70%); pointer-events: none; }
.hero-content { position: relative; display: grid; grid-template-columns: .93fr 1.15fr; gap: 58px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 9px; background: #e7f1f8; color: var(--primary-dark); padding: 7px 14px; border-radius: 100px; font-size: .8rem; font-weight: 600; margin-bottom: 24px; }
.badge::before { content: ''; width: 7px; height: 7px; background: var(--primary); border-radius: 50%; }
h1 { font-size: clamp(2.7rem, 4.4vw, 3.85rem); font-weight: 700; line-height: 1.08; letter-spacing: -.045em; margin-bottom: 24px; }
h1 span { color: var(--primary); }
.hero-description { font-size: 1.1rem; color: var(--muted); line-height: 1.75; margin-bottom: 28px; max-width: 470px; }
.hero-plan-note { font-size: .8rem; color: var(--muted); line-height: 1.65; max-width: 470px; margin: -10px 0 24px; }
.hero-cta { display: flex; align-items: center; gap: 23px; flex-wrap: wrap; }
.app-store-badge { display: inline-flex; border-radius: 10px; text-decoration: none; transition: transform .2s; flex-shrink: 0; }
.app-store-badge:hover { transform: translateY(-2px); }
.app-store-badge > img { width: 155.5px; height: 52px; }
.store-badge-en { height: 52px; background: #050505; color: #fff; border: 1px solid #a6a6a6; padding: 6px 12px; gap: 9px; align-items: center; }
.store-badge-en svg { width: 29px; height: 33px; }
.store-badge-en span { display: flex; flex-direction: column; line-height: 1.1; }
.store-badge-en small { font-size: 10px; letter-spacing: .01em; }
.store-badge-en strong { font-size: 21px; font-weight: 500; letter-spacing: -.03em; }
.text-link { display: inline-flex; align-items: center; gap: 7px; font-size: .9rem; font-weight: 600; text-decoration: none; }
.text-link svg { width: 16px; height: 16px; transition: transform .2s; }
.text-link:hover svg { transform: translateX(3px); }
.hero-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; border-top: 1px solid var(--border); padding-top: 23px; margin-top: 35px; }
.meta-value { display: block; font-family: 'JetBrains Mono', monospace; font-size: 1.4rem; line-height: 1.4; font-weight: 500; letter-spacing: -.04em; }
.meta-label { font-size: .75rem; color: var(--muted); }
.phone-stack { position: relative; width: 100%; max-width: 580px; min-height: 585px; display: flex; justify-content: center; align-items: flex-end; }
.hero-phone { width: 260px; flex-shrink: 0; filter: drop-shadow(0 18px 22px rgba(15,23,42,.18)); }
.hero-phone.back { position: absolute; right: 24px; top: 0; width: 240px; transform: rotate(6deg); z-index: 0; }
.hero-phone.front { position: relative; z-index: 1; transform: translateX(-22%); }
/* Clip the Store artwork to its existing device frame without altering the screenshot. */
.hero-phone-crop { position: relative; width: 100%; aspect-ratio: 1098 / 2274; overflow: hidden; border-radius: 18% / 8.7%; }
.hero-phone-crop img { position: absolute; top: 0; left: 0; width: 116.94%; max-width: none; height: auto; transform: translate(-7.01%, -17.42%); }
.platform-strip { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 40px; padding: 25px 32px; background: white; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); color: var(--muted); font-size: .85rem; }
.platform-strip span { display: inline-flex; gap: 9px; align-items: center; }
.platform-strip svg { width: 18px; height: 18px; color: var(--primary); }

.section { padding: 94px 0; }
.section-header { max-width: 700px; text-align: center; margin: 0 auto 44px; }
.section-label { font-size: .75rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .13em; margin-bottom: 12px; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); line-height: 1.17; letter-spacing: -.035em; font-weight: 700; margin-bottom: 16px; }
.section-description { font-size: 1.05rem; color: var(--muted); line-height: 1.7; }
.overview-header { max-width: 880px; }
.version-note { margin-top: 20px; padding: 18px 24px; background: var(--subtle); border: 1px solid var(--border); border-radius: 12px; font-size: .92rem; color: var(--muted); line-height: 1.75; }
.planning-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.planning-card { padding: 31px; background: var(--subtle); border: 1px solid var(--border); border-radius: var(--radius); }
.step-number { display: block; font-family: 'JetBrains Mono', monospace; color: var(--primary); font-size: .8rem; letter-spacing: .08em; margin-bottom: 17px; }
h3 { font-size: 1.18rem; letter-spacing: -.025em; line-height: 1.3; margin-bottom: 12px; font-weight: 600; }
.planning-card p, .feature-card p { font-size: .92rem; color: var(--muted); line-height: 1.75; }
.feature-card p + p { margin-top: 12px; }
.feature-list { list-style: none; margin-top: 5px; }
.feature-list li { position: relative; padding: 7px 0 7px 15px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: .87rem; line-height: 1.55; }
.feature-list li::before { content: '•'; position: absolute; left: 0; color: var(--primary); }
.feature-list li:last-child { border-bottom: 0; }
.features { background: var(--subtle); }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.feature-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 31px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.feature-card:hover { border-color: #9dc7e4; transform: translateY(-3px); box-shadow: 0 8px 24px rgba(15,23,42,.06); }
.feature-icon { display: grid; place-items: center; width: 47px; height: 47px; background: #eaf3fa; color: var(--primary); border-radius: 12px; margin-bottom: 23px; }
.feature-icon.green { background: #eaf6ef; color: var(--green); }
.feature-icon.orange { background: #fff3e8; color: #be6418; }
.feature-icon svg { width: 24px; height: 24px; }

.showcase-row { display: grid; grid-template-columns: 1fr 1fr; gap: 78px; align-items: center; }
.showcase-row + .showcase-row { margin-top: 92px; }
.showcase-row.reverse .showcase-visual { order: 2; }
.showcase-text h2 { font-size: clamp(1.8rem, 3vw, 2.35rem); }
.showcase-text > p { color: var(--muted); font-size: 1rem; line-height: 1.8; }
.showcase-text > p:not(.section-label) + p { margin-top: 14px; }
.scenarios { padding-top: 0; }
.check-list { list-style: none; display: grid; gap: 11px; margin-top: 23px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: .93rem; }
.check-list svg { color: var(--green); width: 18px; height: 18px; margin-top: 4px; }
.showcase-visual { position: relative; border-radius: 24px; background: #f0f8f4; border: 1px solid #e4eee8; padding: 20px 24px; overflow: hidden; }
.phone-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: center; }
.phone-pair img { width: 100%; mix-blend-mode: multiply; }
.ipad-pair { background: #f1f6fb; border-color: #e3eaf3; padding: 28px 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: center; }
.ipad-pair img { width: 100%; mix-blend-mode: multiply; }
.inline-label { display: inline-block; background: #e7f1f8; color: var(--primary-dark); font-size: .73rem; font-weight: 700; padding: 4px 9px; border-radius: 6px; margin-bottom: 17px; }

.gallery { background: var(--subtle); }
.gallery-heading { display: flex; justify-content: space-between; gap: 30px; align-items: flex-end; margin-bottom: 34px; }
.gallery-heading h2 { margin-bottom: 0; }
.device-tabs { display: flex; gap: 4px; padding: 5px; border: 1px solid var(--border); border-radius: 12px; background: #e8eef4; flex-shrink: 0; }
.device-tab { color: var(--muted); border: 0; border-radius: 8px; padding: 8px 21px; background: transparent; font-size: .85rem; font-weight: 600; }
.device-tab[aria-selected="true"] { color: var(--text); background: white; box-shadow: 0 2px 5px rgba(15,23,42,.08); }
.gallery-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 44px)/3); gap: 22px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 2px 16px; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-card { scroll-snap-align: start; min-width: 0; margin: 0; }
.gallery-image-button { display: block; width: 100%; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: white; transition: box-shadow .2s, border-color .2s; cursor: zoom-in; }
.gallery-image-button:hover { border-color: #a5cbe5; box-shadow: 0 8px 25px rgba(15,23,42,.08); }
.gallery-image-button img { width: 100%; aspect-ratio: 3/4; object-fit: contain; background: #eff8f2; }
.gallery-panel[data-device="iphone"] .gallery-image-button img { aspect-ratio: 4/5; padding: 16px; }
.gallery-panel[data-device="mac"] .gallery-image-button img { aspect-ratio: 4/3; background: white; }
.gallery-card figcaption { padding: 15px 3px 0; }
.gallery-card figcaption small { display: block; color: var(--primary); font-family: 'JetBrains Mono', monospace; font-size: .72rem; margin-bottom: 5px; }
.gallery-card figcaption strong { font-size: .95rem; font-weight: 600; }
.gallery-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 12px; }
.gallery-hint { font-size: .8rem; color: var(--muted); }
.gallery-controls { display: flex; gap: 10px; }
.gallery-arrow { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 50%; color: var(--text); background: white; transition: border-color .2s; }
.gallery-arrow:hover { border-color: var(--primary); }
.gallery-arrow:disabled { opacity: .35; cursor: default; }
.gallery-arrow svg { width: 18px; height: 18px; }

.usecases-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.usecase { flex: 1 1 200px; max-width: 240px; text-align: center; padding: 15px 10px; }
.usecase h3 { font-size: 1.06rem; }
.usecase-icon { display: grid; place-items: center; color: var(--primary); margin: 0 auto 20px; width: 48px; height: 48px; }
.usecase-icon svg { width: 35px; height: 35px; }
.usecase p { color: var(--muted); font-size: .92rem; }
.faq { background: var(--subtle); }
.faq-list { max-width: 800px; margin-inline: auto; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 23px 0; font-size: 1rem; font-weight: 600; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.5rem; color: var(--primary); font-weight: 400; line-height: 1; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { color: var(--muted); font-size: .94rem; max-width: 730px; padding: 0 36px 24px 0; }
.notes { padding: 56px 0; }
.notes-content { max-width: 900px; margin: auto; border: 1px solid var(--border); background: var(--subtle); border-radius: var(--radius); padding: 30px; }
.notes-content h2 { font-size: 1.35rem; }
.notes-content p { color: var(--muted); font-size: .88rem; line-height: 1.8; margin-bottom: 14px; }
.notes-content a { font-size: .88rem; text-underline-offset: 3px; }

.cta-section { padding: 81px 0; text-align: center; color: white; background: #0f1b2a; }
.cta-content { max-width: 700px; margin: auto; }
.cta-section .section-label { color: #83bde6; }
.cta-section h2 { font-size: clamp(2rem,3.5vw,2.75rem); }
.cta-section p { color: #b3bfd0; font-size: 1.02rem; margin-bottom: 28px; }
.cta-section .hero-cta { justify-content: center; }
.cta-section .text-link { color: #a6cdea; }
.disclaimer { font-size: .76rem !important; line-height: 1.7; max-width: 560px; margin: 28px auto 0 !important; color: #8999ad !important; }
.site-footer { padding: 41px 0 27px; background: #0a1220; color: white; }
.footer-content { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-brand { color: white; }
.footer-brand img { width: 32px; height: 32px; border-radius: 8px; }
.footer-brand span { font-size: .95rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a, .footer-links button { color: #a8b4c6; font-size: .8rem; text-decoration: none; }
.footer-links a:hover, .footer-links button:hover { color: white; }
.footer-links button { background: none; border: none; }
.footer-bottom { margin-top: 29px; border-top: 1px solid #1b2535; padding-top: 21px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: .73rem; color: #7d8da3; }
.footer-bottom a { color: #9bacc0; text-decoration: none; }

.lightbox { border: 0; background: transparent; color: white; max-width: 96vw; max-height: 94dvh; margin: auto; padding: 0; overflow: visible; }
.lightbox::backdrop { background: rgba(5,12,22,.9); backdrop-filter: blur(6px); }
.lightbox-content { position: relative; padding: 50px 0 10px; }
.lightbox-image { max-width: min(86vw,1300px); max-height: 79dvh; width: auto; margin: auto; border-radius: 12px; object-fit: contain; }
.lightbox-close { position: absolute; top: 0; right: 0; display: grid; place-items: center; color: white; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: rgba(255,255,255,.1); }
.lightbox-close svg { width: 19px; height: 19px; }
.lightbox-caption { text-align: center; margin-top: 13px; font-size: .85rem; color: #d2deea; }
body.has-lightbox { overflow: hidden; }


@media (min-width: 1450px) { .hero { padding-top: 180px; padding-bottom: 115px; } }
@media (max-width: 1100px) {
    .nav-links { gap: 18px; }
    .hero-content { gap: 35px; grid-template-columns: 1fr 1.05fr; }
    .hero-phone { width: 240px; }
    .hero-phone.back { width: 220px; right: 12px; }
    .phone-stack { min-height: 555px; }
    .showcase-row { gap: 45px; }
    .planning-card, .feature-card { padding: 25px; }
}
@media (max-width: 900px) {
    .hero { padding-top: 125px; padding-bottom: 60px; }
    .hero-content { grid-template-columns: 1fr; gap: 42px; }
    .hero-text { max-width: 640px; text-align: center; margin: auto; }
    h1 { font-size: clamp(2.8rem,6.5vw,3.6rem); }
    .hero-description { max-width: 550px; margin-inline: auto; }
    .hero-plan-note { margin-inline: auto; }
    .hero-cta { justify-content: center; }
    .hero-meta { max-width: 500px; margin-inline: auto; }
    .phone-stack { order: -1; width: min(500px,100%); min-height: 545px; margin: auto; }
    .hero-phone.back { right: 22px; }
    .section { padding: 75px 0; }
    .nav-links { display: none; position: absolute; left: 0; right: 0; top: 78px; padding: 20px 32px; background: white; border-bottom: 1px solid var(--border); box-shadow: 0 10px 20px rgba(15,23,42,.05); flex-direction: column; gap: 0; align-items: stretch; }
    .nav-links.is-open { display: flex; }
    .nav-links a { padding: 12px 0; }
    .menu-toggle { display: grid; }
    .planning-grid { gap: 14px; }
    .planning-card { padding: 22px; }
    .feature-grid { grid-template-columns: repeat(2,1fr); }
    .showcase-row { grid-template-columns: 1fr 1fr; gap: 30px; }
    .phone-pair { padding: 15px 12px; }
    .gallery-heading { align-items: flex-start; flex-direction: column; gap: 22px; }
    .gallery-track { grid-auto-columns: calc((100% - 22px)/2); }
    .gallery-panel[data-device="iphone"] .gallery-track { grid-auto-columns: calc((100% - 44px)/3); }
    .footer-content { flex-direction: column; align-items: flex-start; gap: 22px; }
}
@media (max-width: 640px) {
    html { scroll-padding-top: 85px; }
    .container { width: calc(100% - 40px); }
    .nav-content { min-height: 68px; gap: 12px; }
    .brand { gap: 9px; }
    .brand img { width: 34px; height: 34px; border-radius: 9px; }
    .brand span { font-size: .88rem; }
    .nav-actions { gap: 8px; }
    .lang-switch, .menu-toggle { width: 34px; height: 34px; }
    .nav-links { top: 68px; padding-inline: 20px; }
    .hero { padding: 108px 0 46px; }
    .hero-content { gap: 35px; }
    .badge { font-size: .73rem; margin-bottom: 20px; }
    h1 { font-size: clamp(2.35rem,8.8vw,3.4rem); margin-bottom: 22px; }
    .hero-description { font-size: 1rem; line-height: 1.75; margin-bottom: 25px; }
    .hero-cta { gap: 20px; }
    .hero-meta { gap: 10px; margin-top: 27px; padding-top: 21px; }
    .meta-value { font-size: 1.2rem; }
    .meta-label { font-size: .66rem; }
    .phone-stack { max-width: 360px; min-height: 420px; }
    .hero-phone { width: clamp(164px,48vw,190px); filter: drop-shadow(0 12px 15px rgba(15,23,42,.14)); }
    .hero-phone.back { width: clamp(150px,44vw,175px); right: 6px; top: 0; }
    .hero-phone.front { transform: translateX(-19%); }
    .platform-strip { gap: 12px 20px; font-size: .73rem; padding: 20px; }
    .platform-strip svg { width: 15px; height: 15px; }
    .section { padding: 58px 0; }
    .section-header { margin-bottom: 31px; }
    h2 { font-size: 1.9rem; }
    .section-description { font-size: .96rem; }
    .planning-grid, .feature-grid, .usecases-grid { grid-template-columns: 1fr; gap: 16px; }
    .planning-card, .feature-card { padding: 27px; }
    .feature-icon { margin-bottom: 18px; }
    .showcase-row, .showcase-row.reverse { grid-template-columns: 1fr; gap: 32px; }
    .showcase-row.reverse .showcase-visual { order: 0; }
    .showcase-row + .showcase-row { margin-top: 62px; }
    .showcase-visual { max-width: 460px; width: 100%; margin: auto; }
    .phone-pair { padding: 12px 20px; }
    .ipad-pair { padding: 24px 20px; }
    .gallery-heading { gap: 21px; }
    .device-tabs { width: 100%; }
    .device-tab { flex: 1; padding: 8px 14px; }
    .gallery-track, .gallery-panel[data-device="iphone"] .gallery-track { grid-auto-columns: 82%; gap: 16px; }
    .gallery-image-button img { max-height: 460px; }
    .gallery-bottom { gap: 10px; }
    .gallery-hint { font-size: .73rem; }
    .gallery-arrow { width: 36px; height: 36px; }
    .usecase { padding: 18px 25px; flex-basis: 100%; max-width: none; }
    .version-note { padding: 16px 18px; font-size: .87rem; }
    .scenarios { padding-top: 0; }
    .notes { padding: 42px 0; }
    .notes-content { padding: 24px; }
    .faq-item summary { font-size: .94rem; padding: 20px 0; }
    .faq-item p { font-size: .9rem; padding-right: 10px; }
    .cta-section { padding: 61px 0; }
    .footer-links { gap: 12px 20px; }
    .footer-bottom { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 370px) { .container { width: calc(100% - 32px); } .brand span { font-size: .77rem; } .nav-actions { gap: 5px; } .hero-cta { gap: 15px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
