/* Tue Tran ecosystem website. Colours, spacing and type follow the official design file. */

:root {
    --pink: #FB7B9B;
    --rose: #C24A6B;
    --rose-soft: #C4708A;
    --bg: #FFFFFF;
    --surf: #FFFFFF;
    --surf-2: #FAFBFC;
    --tint-pink: #FDF7F9;
    --chip: #FCF6F8;
    --warm: #FDF7F2;
    --line: #ECEFF3;
    --line-2: #E7EAEF;
    --line-3: #DDE2E9;
    --line-pink: #F2E3E8;
    --ink: #172948;
    --ink-2: #2C3A52;
    --ink-3: #5A6678;
    --ink-4: #6B7688;
    --mut: #93A0B4;
    --mut-2: #B0BAC7;
    --hov: #F4FAFC;
    --navy: #172948;
    --hdr: rgba(255, 255, 255, 0.92);
    --nav-bg: rgba(255, 255, 255, 0.97);
    --shell: 1220px;
    --pad-x: 40px;
    --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --shadow-card: 0 40px 90px -60px rgba(23, 41, 72, 0.5);
    color-scheme: light;
}

/* Dark palette: the visitor's stored choice wins, otherwise the system setting decides. */
:root[data-theme='dark'] {
    --bg: #0F1725;
    --surf: #18223A;
    --surf-2: #131C2E;
    --tint-pink: #1A1E33;
    --chip: #202B44;
    --warm: #1F2436;
    --line: #253046;
    --line-2: #2C3A54;
    --line-3: #33415E;
    --line-pink: #3A2E44;
    --ink: #EEF2F7;
    --ink-2: #D3DDEA;
    --ink-3: #A3B1C5;
    --ink-4: #98A6BA;
    --mut: #7B8AA1;
    --mut-2: #6E7C93;
    --hov: #1E2942;
    --navy: #0A1120;
    --rose: #E88CA6;
    --rose-soft: #E29CB1;
    --hdr: rgba(15, 23, 37, 0.9);
    --nav-bg: rgba(15, 23, 37, 0.96);
    --shadow-card: 0 40px 90px -60px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) {
        --bg: #0F1725;
        --surf: #18223A;
        --surf-2: #131C2E;
        --tint-pink: #1A1E33;
        --chip: #202B44;
        --warm: #1F2436;
        --line: #253046;
        --line-2: #2C3A54;
        --line-3: #33415E;
        --line-pink: #3A2E44;
        --ink: #EEF2F7;
        --ink-2: #D3DDEA;
        --ink-3: #A3B1C5;
        --ink-4: #98A6BA;
        --mut: #7B8AA1;
        --mut-2: #6E7C93;
        --hov: #1E2942;
        --navy: #0A1120;
        --rose: #E88CA6;
        --rose-soft: #E29CB1;
        --hdr: rgba(15, 23, 37, 0.9);
        --nav-bg: rgba(15, 23, 37, 0.96);
        --shadow-card: 0 40px 90px -60px rgba(0, 0, 0, 0.8);
        color-scheme: dark;
    }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* Never let a wide child push the whole page sideways on a phone. */
    overflow-x: hidden;
    -webkit-tap-highlight-color: rgba(251, 123, 155, 0.16);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--pink); text-decoration: none; }

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

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; text-wrap: pretty; }

p { margin: 0; text-wrap: pretty; }

main { flex: 1; }

.shell {
    max-width: var(--shell);
    margin: 0 auto;
    padding-left: var(--pad-x);
    padding-right: var(--pad-x);
    width: 100%;
}

.kicker {
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: 0.2em;
    color: var(--mut);
    text-transform: uppercase;
}

.label {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.18em;
    color: var(--mut-2);
    text-transform: uppercase;
}

.stack { display: flex; flex-direction: column; }

.section { padding: 88px 0; scroll-margin-top: 90px; }

.section--tall { padding: 96px 0; }

.section--soft { background: var(--surf-2); }

.section--pink { background: var(--tint-pink); }

.section--line { border-top: 1px solid var(--line); }

/* The detail hero band takes the brand tint in light mode and the plain surface in dark. */
.detail { background: var(--tint); border-bottom: 1px solid var(--line); }

:root[data-theme='dark'] .detail { background: var(--surf); }

@media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) .detail { background: var(--surf); }
}

.section__head { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }

.section__head h2 { font-size: 38px; line-height: 1.15; }

.section__head p { font-size: 17px; line-height: 1.75; font-weight: 300; color: var(--ink-3); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    padding: 15px 28px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .16s, border-color .16s, color .16s;
}

.btn--primary { background: var(--pink); color: #fff; }

.btn--primary:hover { background: var(--navy); color: #fff; }

.btn--ghost { border-color: var(--line-3); color: var(--ink); }

.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--hdr);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.site-header .shell {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand { display: flex; align-items: center; gap: 14px; }

.brand__text { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }

.brand__wordmark { height: 24px; width: 73px; display: block; }

.brand__note {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.2em;
    color: var(--mut);
}

.site-nav { display: flex; align-items: center; gap: 36px; }

.nav-link { font-size: 14.5px; font-weight: 500; color: var(--ink-2); }

.nav-link:hover { color: var(--pink); }

.lang {
    display: flex;
    align-items: center;
    border: 1px solid var(--line-3);
    border-radius: 999px;
    padding: 3px;
}

.lang a {
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: 0.08em;
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--ink-4);
}

.lang a.is-active { background: var(--navy); color: #fff; }

:root[data-theme='dark'] .lang a.is-active { background: var(--pink); color: var(--navy); }

@media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) .lang a.is-active { background: var(--pink); color: var(--navy); }
}

/* Hero: app development */
.hero { padding: 76px 0 88px; scroll-margin-top: 90px; }

.hero .shell { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }

.hero__col { display: flex; flex-direction: column; gap: 26px; }

.hero h1 { font-size: 54px; line-height: 1.08; letter-spacing: -0.025em; }

.hero__intro { max-width: 540px; font-size: 18px; line-height: 1.7; font-weight: 300; color: var(--ink-3); }

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; }

.hero__facts {
    display: grid;
    grid-template-columns: max-content max-content;
    gap: 40px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
    margin-top: 8px;
}

.fact { display: flex; flex-direction: column; gap: 5px; min-width: 0; }

/* An email address has no spaces to break at, so let it split rather than push the page sideways. */
.fact a { overflow-wrap: anywhere; }

.fact a, .fact span:last-child { font-size: 15px; font-weight: 500; color: var(--ink); }

.hero__panel {
    background: var(--surf);
    border: 1px solid var(--line-2);
    border-radius: 22px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
}

.hero__panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px 16px;
}

.app-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 15px 16px;
    border-radius: 15px;
    transition: background .16s;
}

.app-row:hover { background: var(--hov); }

.app-row__body { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }

.app-row__name { font-size: 17px; }

.app-row__note { font-size: 13.5px; font-weight: 300; color: var(--ink-4); }

.app-row__go { font-size: 16px; color: var(--mut-2); }

.name-pre { font-weight: 300; color: var(--mut); }

.name-post { font-weight: 700; }

/* Website capabilities */
.web-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.web-card {
    background: var(--surf);
    border: 1px solid var(--line-2);
    border-radius: 18px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.web-card__no {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--pink);
    letter-spacing: 0.1em;
}

.web-card__title { font-size: 17px; font-weight: 600; }

.web-card p { font-size: 14.5px; line-height: 1.7; font-weight: 300; color: var(--ink-3); }

.split { display: grid; grid-template-columns: 0.86fr 1.14fr; gap: 64px; align-items: start; }

/* Product cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 44px;
}

.product-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--surf);
    border: 1px solid var(--line-2);
    border-radius: 22px;
    padding: 28px;
    transition: border-color .16s, transform .16s;
}

.product-card:hover { border-color: var(--line-3); transform: translateY(-2px); }

.product-card__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.product-card__domain { font-family: var(--mono); font-size: 12px; color: var(--mut); }

.product-card__name { font-size: 26px; }

.product-card__tag { font-size: 15px; font-weight: 500; color: var(--ink-2); }

.product-card p { font-size: 14.5px; line-height: 1.7; font-weight: 300; color: var(--ink-3); }

.product-card__more { font-size: 14px; font-weight: 500; color: var(--pink); }

.rider-badge {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--mut);
    margin-left: 8px;
}

/* Uniform flagship */
.flagship {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
    background: var(--surf);
    border: 1px solid var(--line-2);
    border-radius: 20px;
    padding: 40px;
    margin-top: 36px;
    transition: border-color .16s;
}

.flagship:hover { border-color: var(--line-3); }

/* Grows with its text instead of sitting in a fixed column, so the call to action never squeezes. */
.flagship__body { display: flex; flex-direction: column; gap: 12px; flex: 1; min-width: 260px; }

.flagship__name { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; color: var(--rose); }

.flagship p { font-size: 16px; line-height: 1.7; font-weight: 300; color: var(--ink-3); }

.flagship__links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; }

.flagship__cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    flex: none;
    width: auto;
    min-width: 272px;
    background: var(--chip);
    border: 1px solid var(--line-pink);
    border-radius: 16px;
    padding: 22px;
}

.flagship__cta > .product-card__tag { font-size: 15.5px; font-weight: 600; line-height: 1.4; color: var(--rose); }

.flagship__cta p { font-size: 14px; line-height: 1.65; }

.flagship__cta .btn { width: 100%; }

.divider-row { display: flex; align-items: center; gap: 18px; margin: 44px 0 20px; }

.divider-row .line { flex: 1; height: 1px; background: var(--line); }

.brand-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.brand-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--surf);
    border: 1px solid var(--line-2);
    border-radius: 18px;
    padding: 22px;
    transition: border-color .16s;
}

.brand-card:hover { border-color: var(--rose); }

.brand-card__mono {
    width: 46px;
    height: 46px;
    flex: none;
    border-radius: 13px;
    background: var(--chip);
    border: 1px solid var(--line-pink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--rose);
}

.brand-card__name { font-size: 16px; font-weight: 600; }

.brand-card p { font-size: 13.5px; line-height: 1.65; font-weight: 300; color: var(--ink-3); margin: 6px 0 8px; }

.brand-card__domain { font-family: var(--mono); font-size: 11.5px; color: var(--mut); }

/* About */
.about-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 72px; align-items: start; }

.info-list {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line-2);
    border-radius: 20px;
    overflow: hidden;
}

.info-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 28px;
    border-bottom: 1px solid var(--line);
}

.info-row:last-child { border-bottom: none; }

.info-row span:first-child { font-size: 14px; font-weight: 500; color: var(--mut); }

.info-row span:last-child, .info-row a { font-size: 14px; line-height: 1.6; color: var(--ink); text-align: right; white-space: nowrap; }

.info-row--mono span:last-child, .info-row--mono a { font-family: var(--mono); }

/* Contact */
.contact { background: var(--navy); color: #fff; padding: 88px 0; scroll-margin-top: 90px; }

.contact .shell { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 72px; align-items: start; }

.contact h2 { font-size: 34px; line-height: 1.2; color: #fff; }

.contact__intro { font-size: 16.5px; line-height: 1.75; font-weight: 300; color: rgba(255, 255, 255, 0.72); margin-top: 18px; }

.contact__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.contact__links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 12px 22px;
    font-size: 15px;
    color: #fff;
}

.contact__links a:hover { border-color: var(--pink); }

.contact__hours { display: flex; flex-direction: column; gap: 6px; margin-top: 30px; }

.contact__hours span { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em; }

.contact__hours span:first-child { color: rgba(255, 255, 255, 0.5); }

.contact__hours span:last-child { color: rgba(255, 255, 255, 0.85); }

.contact-form { display: flex; flex-direction: column; gap: 16px; }

.contact-form label { display: flex; flex-direction: column; gap: 8px; }

.contact-form label > span {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.55);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    min-height: 52px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 13px;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 300;
    color: #fff;
    outline: none;
}

.contact-form textarea { min-height: 112px; resize: vertical; }

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255, 255, 255, 0.4); }

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--pink); background: rgba(255, 255, 255, 0.12); }

.contact-form select option { color: var(--ink); }

.contact-form__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.contact-form__error {
    font-size: 13.5px;
    color: #FFC2D0;
    background: rgba(251, 123, 155, 0.14);
    border: 1px solid rgba(251, 123, 155, 0.4);
    border-radius: 12px;
    padding: 12px 14px;
}

.contact-form button {
    min-height: 54px;
    border: none;
    border-radius: 999px;
    background: var(--pink);
    color: #fff;
    font-family: inherit;
    font-size: 15.5px;
    font-weight: 500;
    cursor: pointer;
}

.contact-form button:hover { background: #fff; color: var(--navy); }

.contact-form__note { font-size: 13px; font-weight: 300; color: rgba(255, 255, 255, 0.55); }

.contact-form__note a { color: rgba(255, 255, 255, 0.85); text-decoration: underline; }

/* Product detail */
.detail { padding: 56px 0 88px; }

.detail__tile { background: var(--surf); }

.back-link { font-size: 14px; font-weight: 500; color: var(--mut); }

.back-link:hover { color: var(--ink); }

.detail__head { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; margin-top: 30px; }

.detail__head h1 { font-size: 50px; line-height: 1.1; }

.detail__tag { font-size: 19px; font-weight: 500; color: var(--ink-2); margin-top: 10px; }

.detail__desc { font-size: 17px; line-height: 1.75; font-weight: 300; color: var(--ink-3); margin-top: 18px; }

.detail__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.detail__tile {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 28px;
    padding: 48px;
}

.detail__mono {
    font-family: var(--mono);
    font-size: 44px;
    font-weight: 500;
}

.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 26px; }

.feature-card {
    background: var(--surf);
    border: 1px solid var(--line-2);
    border-radius: 18px;
    padding: 24px;
}

.feature-card h3 { font-size: 16.5px; }

.feature-card p { font-size: 14.5px; line-height: 1.7; font-weight: 300; color: var(--ink-3); margin-top: 8px; }

.channel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }

.channel-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 1px solid var(--line-2);
    border-radius: 16px;
    padding: 18px 20px;
}

.channel-card:hover { border-color: var(--pink); }

.channel-card span:first-child { font-size: 15px; font-weight: 500; color: var(--ink); }

.channel-card span:last-child { font-family: var(--mono); font-size: 12px; color: var(--mut); }

.other-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.other-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 14px;
    color: var(--ink-2);
}

.other-chip:hover { border-color: var(--pink); color: var(--ink); }

/* Legal pages */
.legal { padding: 56px 0 88px; }

.legal__grid { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; }

.legal__toc { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 10px; }

.legal__toc a { font-size: 14px; font-weight: 300; color: var(--ink-3); line-height: 1.5; }

.legal__toc a:hover, .legal__toc a.is-active { color: var(--pink); }

.legal h1 { font-size: 40px; line-height: 1.15; }

.legal__updated { font-family: var(--mono); font-size: 12.5px; color: var(--mut); margin-top: 14px; }

.legal__switch { display: flex; gap: 12px; margin-top: 24px; }

.legal__section { margin-top: 44px; scroll-margin-top: 100px; }

.legal__section h2 { font-size: 22px; }

.legal__section p { font-size: 15.5px; line-height: 1.8; font-weight: 300; color: var(--ink-3); margin-top: 14px; }

.legal__section ul { margin: 14px 0 0; padding-left: 20px; }

.legal__section li { font-size: 15.5px; line-height: 1.8; font-weight: 300; color: var(--ink-3); margin-bottom: 8px; }

.legal__entity {
    margin-top: 48px;
    background: var(--surf-2);
    border: 1px solid var(--line-2);
    border-radius: 18px;
    padding: 26px;
}

/* Single-screen pages: 404 and thank you */
.screen {
    min-height: calc(100vh - 76px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 26px;
    text-align: center;
    padding: 72px var(--pad-x);
}

.screen h1 { font-size: 40px; }

.screen p { max-width: 560px; font-size: 16.5px; line-height: 1.75; font-weight: 300; color: var(--ink-3); }

.screen__code {
    font-family: var(--mono);
    font-size: 96px;
    font-weight: 500;
    color: var(--line-3);
    line-height: 1;
}

.screen__pill {
    font-family: var(--mono);
    font-size: 12.5px;
    color: var(--ink-4);
    background: var(--tint-pink);
    border: 1px solid var(--line-pink);
    border-radius: 999px;
    padding: 9px 18px;
}

.screen__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.screen__quick { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 720px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0; margin-top: 0; }

.site-footer .shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-brand { display: flex; align-items: center; gap: 14px; }

.footer-note { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--mut); }

.footer-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

.footer-links a { font-size: 13.5px; color: var(--ink-3); }

.footer-links a:hover { color: var(--pink); }

/* Floating buttons */
.fab {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fab button, .fab a {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-2);
    background: var(--surf);
    color: var(--ink-2);
    cursor: pointer;
    box-shadow: 0 18px 40px -24px rgba(23, 41, 72, 0.6);
}

.fab a.fab--call { background: var(--pink); border-color: var(--pink); color: #fff; }

.fab a.fab--zalo:hover { border-color: var(--pink); color: var(--pink); }

/* Mobile tab bar */
.tabbar { display: none; }

@media (max-width: 1080px) {
    .hero .shell, .split, .about-grid, .contact .shell, .detail__head, .legal__grid { grid-template-columns: 1fr; gap: 40px; }
    .about-grid, .contact .shell { gap: 38px; }
    .legal__toc { position: static; }
    .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    :root { --pad-x: 22px; }
    body { padding-bottom: 74px; }
    .site-nav .nav-link { display: none; }
    .section, .contact { padding: 60px 0; }
    .hero { padding: 48px 0 60px; }
    .hero h1 { font-size: 38px; }
    .section__head h2, .contact h2 { font-size: 28px; }
    .detail__head h1 { font-size: 36px; }
    .legal h1, .screen h1 { font-size: 30px; }
    .product-grid, .web-grid, .feature-grid, .channel-grid, .brand-grid, .contact-form__pair { grid-template-columns: 1fr; }
    .flagship { padding: 28px; gap: 20px; }
    .info-row { flex-direction: column; align-items: stretch; gap: 5px; padding: 16px 20px; }
    .info-row span:last-child, .info-row a { text-align: left; white-space: normal; }
    .flagship__name { font-size: 26px; }
    .flagship__cta { width: 100%; min-width: 0; padding: 18px; }
    .fab { bottom: 88px; right: 16px; }
    .tabbar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 25;
        display: flex;
        background: var(--nav-bg);
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--line);
        padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
    }
    .tabbar a {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        font-size: 10.5px;
        color: var(--ink-4);
    }
    .tabbar a.is-active { color: var(--pink); }
    .screen { min-height: auto; padding: 56px var(--pad-x); }
}

@media (max-width: 560px) {
    .hero h1 { font-size: 32px; }
    .hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
    .btn { width: 100%; }
    .screen__code { font-size: 72px; }
    .site-footer .shell { flex-direction: column; align-items: flex-start; }
}

/* Theme toggle icons: one of the pair shows, matching the palette in use. */
.fab__sun { display: none; }

:root[data-theme='dark'] .fab__sun { display: block; }

:root[data-theme='dark'] .fab__moon { display: none; }

@media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) .fab__sun { display: block; }

    :root:not([data-theme='light']) .fab__moon { display: none; }
}

/* The footer repeats the main navigation on phones, where the header links are hidden. */
.footer-links--mobile { display: none; }

@media (max-width: 860px) {
    .footer-links--mobile { display: flex; }
}
