/*
 * Pocket Vizier — site styles.
 *
 * Fonts are self-hosted; the site makes no third-party requests.
 * Roboto: google/fonts, ofl/roboto, commit
 *   e7db6ca603fd4862010383ff17ffd6cc4ffac1c0, file Roboto[wdth,wght].ttf
 *   (stored as Roboto-Variable.ttf), SIL OFL 1.1.
 * Roboto Mono: copied from app/src/main/res/font/roboto_mono.ttf,
 *   SIL OFL 1.1.
 * License texts sit next to the files in assets/fonts/.
 */

@font-face {
    font-family: "Roboto";
    src: url("fonts/Roboto-Variable.ttf") format("truetype");
    font-style: normal;
    font-weight: 100 900;
    font-stretch: 75% 100%;
    font-display: swap;
}

@font-face {
    font-family: "Roboto Mono";
    src: url("fonts/roboto-mono.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

:root {
    --paper: #FAF8F4;
    --ink: #1B1B1F;
    --muted: #46464F;
    --navy: #34437F;
    --navy-deep: #0E1A4D;
    --navy-soft: #DDE1FF;
    --tint: #EEEBE5;
    --gold: #6E5F33;
    --line: #767680;
    --record: #C8231B;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Roboto", system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.6;
}

h1,
h2,
h3,
p {
    overflow-wrap: break-word;
}

a {
    color: var(--navy);
}

a:hover {
    color: var(--navy-deep);
}

img,
svg {
    max-width: 100%;
}

:focus-visible {
    outline: 3px solid var(--navy);
    outline-offset: 2px;
}

.mono {
    font-family: "Roboto Mono", monospace;
    letter-spacing: 0;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -80px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    background: var(--navy);
    color: #FFFFFF;
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: 16px;
    color: #FFFFFF;
}

/* Header */

.site-header {
    max-width: 1160px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 32px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    text-decoration: none;
    color: var(--ink);
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex: none;
}

.brand-name {
    font-size: 20px;
    font-weight: 600;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    flex: 1 1 auto;
    justify-content: flex-end;
    font-size: 15px;
    font-weight: 500;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 0;
    text-decoration: none;
}

.lang-switch {
    display: flex;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    font-size: 14px;
    font-weight: 600;
}

.lang-switch a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 16px;
    color: var(--muted);
    text-decoration: none;
}

.lang-switch a[aria-current] {
    background: var(--navy-soft);
    color: var(--navy-deep);
}

/* Hero */

.hero {
    max-width: 1160px;
    margin: 0 auto;
    padding: 56px 24px 80px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 56px;
}

.hero-copy {
    flex: 999 1 480px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.overline {
    margin: 0;
    font-size: 12px;
    line-height: 16px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
}

.hero h1 {
    margin: 0;
    font-size: 56px;
    line-height: 1.08;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.lede {
    margin: 0;
    font-size: 20px;
    line-height: 1.5;
    color: var(--muted);
    max-width: 34em;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
}

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

.btn-primary:hover {
    color: #FFFFFF;
}

.btn-secondary {
    background: #DFE1F9;
    color: var(--ink);
}

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

.hero-note {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}

.phone-column {
    flex: 1 1 340px;
    display: flex;
    justify-content: center;
}

.phone {
    width: 340px;
    max-width: 100%;
    border-radius: 36px;
    background: var(--paper);
    border: 10px solid var(--ink);
    box-shadow: 0 24px 48px rgba(14, 26, 77, 0.18);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.phone-title {
    padding: 18px 16px 10px;
    font-size: 18px;
    font-weight: 500;
}

.recording-bar {
    margin: 0 12px;
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--record);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.recording-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #FFFFFF;
}

.recording-time {
    margin-left: auto;
}

.level-meter {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 14px 16px;
    height: 22px;
}

.level-meter span {
    width: 4px;
    border-radius: 999px;
    background: var(--navy);
}

.level-meter span:nth-child(1) { height: 6px; }
.level-meter span:nth-child(2) { height: 10px; }
.level-meter span:nth-child(3) { height: 16px; }
.level-meter span:nth-child(4) { height: 22px; }
.level-meter span:nth-child(5) { height: 14px; }
.level-meter span:nth-child(6) { height: 8px; }
.level-meter span:nth-child(7) { height: 6px; }
.level-meter span:nth-child(8) { height: 12px; }
.level-meter span:nth-child(9) { height: 20px; }
.level-meter span:nth-child(10) { height: 22px; }
.level-meter span:nth-child(11) { height: 18px; }
.level-meter span:nth-child(12) { height: 10px; }
.level-meter span:nth-child(13) { height: 6px; }
.level-meter span:nth-child(14) { height: 6px; }
.level-meter span:nth-child(15) { height: 14px; }
.level-meter span:nth-child(16) { height: 20px; }
.level-meter span:nth-child(17) { height: 16px; }
.level-meter span:nth-child(18) { height: 12px; }
.level-meter span:nth-child(19) { height: 8px; }
.level-meter span:nth-child(20) { height: 14px; }
.level-meter span:nth-child(21) { height: 22px; background: var(--line); }
.level-meter span:nth-child(22) { height: 18px; background: var(--line); }
.level-meter span:nth-child(23) { height: 10px; background: var(--line); }
.level-meter span:nth-child(24) { height: 6px; background: var(--line); }

.phone-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 4px 12px 16px;
}

.card-summary {
    background: var(--navy-soft);
    color: var(--navy-deep);
    border-radius: 16px;
    padding: 12px;
}

.card-question {
    background: var(--tint);
    border-radius: 16px;
    padding: 12px;
}

.card-label {
    font-size: 11px;
    line-height: 16px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.card-question .card-label {
    color: var(--gold);
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    margin-top: 4px;
}

.card-text {
    font-size: 14px;
    line-height: 20px;
    margin-top: 4px;
}

/* Sections */

.section {
    max-width: 1160px;
    margin: 0 auto;
    padding: 80px 24px;
}

.band {
    background: var(--tint);
}

.band-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 80px 24px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.section h2,
.band h2 {
    margin: 0;
    font-size: 36px;
    line-height: 1.2;
    font-weight: 600;
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.step {
    background: var(--paper);
    border-radius: 16px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step-number {
    font-family: "Roboto Mono", monospace;
    font-size: 14px;
    font-weight: 600;
    color: var(--gold);
}

.step h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.step p {
    margin: 0;
    color: var(--muted);
}

.limits {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
    align-items: flex-start;
}

.limits-head {
    flex: 1 1 220px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.limits-head .icon {
    flex: none;
    color: var(--navy);
}

.limits h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.limits-list {
    flex: 999 1 480px;
    margin: 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--ink);
}

.split {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 48px 64px;
}

.split-copy {
    flex: 999 1 420px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.split-copy > p {
    margin: 0;
    color: var(--muted);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px 24px;
}

.feature {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.feature h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
}

.feature p {
    margin: 0;
    font-size: 15px;
    color: var(--muted);
}

.share-card {
    background: var(--navy-soft);
    color: var(--navy-deep);
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.share-card .icon-32 {
    flex: none;
}

.share-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.share-title {
    font-size: 18px;
    font-weight: 600;
}

.share-text {
    font-size: 16px;
}

.example {
    flex: 1 1 340px;
    max-width: 420px;
    background: var(--tint);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.example-label {
    font-size: 11px;
    line-height: 16px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
}

.example-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.example-field .field-label {
    font-size: 12px;
    color: var(--muted);
}

.example-field .field-value {
    font-size: 15px;
}

.example-field .field-value.strong {
    font-size: 17px;
    font-weight: 600;
}

.example-pairs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.prompt {
    background: var(--paper);
    border-radius: 8px;
    padding: 12px;
    font-family: "Roboto Mono", monospace;
    font-size: 13px;
    line-height: 20px;
    color: var(--ink);
    white-space: pre-line;
}

.example-result {
    background: var(--paper);
    border-radius: 16px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.example-result .card-label {
    color: var(--gold);
}

.example-result p {
    margin: 0;
    font-size: 14px;
    line-height: 20px;
}

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

.keys-column {
    flex: 1 1 360px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.keys-column > p {
    margin: 0;
    color: var(--muted);
}

.keys-column b {
    color: var(--ink);
    font-weight: 600;
}

.provider-list {
    flex: 1 1 360px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.provider-card .card-label {
    color: var(--gold);
}

.provider-value {
    font-size: 18px;
    font-weight: 500;
}

.band-privacy {
    background: var(--navy);
    color: #FFFFFF;
}

.band-privacy .band-inner {
    gap: 40px;
}

.privacy-intro {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 40em;
}

.privacy-intro p {
    margin: 0;
    color: var(--navy-soft);
}

.thesis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.thesis {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.thesis h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.thesis p {
    margin: 0;
    color: var(--navy-soft);
    font-size: 16px;
}

.btn-light {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    background: #FFFFFF;
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
}

.btn-light:hover {
    color: var(--navy-deep);
}

/* Footer */

.site-footer {
    max-width: 1160px;
    margin: 0 auto;
    padding: 32px 24px 48px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 32px;
    font-size: 14px;
    color: var(--muted);
}

.site-footer a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    min-width: 44px;
}

.footer-spacer {
    flex: 1;
}

.site-footer.with-line {
    border-top: 1px solid var(--tint);
}

/* Privacy */

.privacy-main {
    max-width: 1160px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 40px 64px;
}

.toc {
    flex: 1 1 240px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 15px;
}

.toc-title {
    font-size: 11px;
    line-height: 16px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    padding-bottom: 8px;
}

.toc a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 0;
    text-decoration: none;
}

.privacy-article {
    flex: 999 1 560px;
    min-width: 0;
    max-width: 46em;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.privacy-head {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.privacy-head h1 {
    margin: 0;
    font-size: 44px;
    line-height: 1.1;
    font-weight: 600;
}

.privacy-meta {
    margin: 0;
    font-size: 15px;
    color: var(--muted);
}

.summary-card {
    background: var(--navy-soft);
    color: var(--navy-deep);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-card ul {
    margin: 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.draft-notice {
    background: #F3EEDF;
    border: 1px solid var(--gold);
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 15px;
}

.article-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid var(--tint);
}

.article-section h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 600;
}

.article-section p {
    margin: 0;
    color: var(--muted);
}

.operator-card {
    background: var(--tint);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.operator-card .card-label {
    color: var(--gold);
}

.operator-name {
    font-size: 18px;
    font-weight: 500;
}

.operator-card a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

/* 404 */

.notfound {
    max-width: 760px;
    margin: 0 auto;
    padding: 96px 24px 120px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.notfound h1 {
    margin: 0;
    font-size: 44px;
    line-height: 1.1;
    font-weight: 600;
}

.notfound p {
    margin: 0;
    color: var(--muted);
}

.notfound-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.notfound-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

/* Responsive */

@media (max-width: 720px) {
    .site-header {
        padding: 16px 20px;
    }

    .site-nav {
        order: 3;
        flex-basis: 100%;
        justify-content: flex-start;
    }

    .hero {
        padding: 40px 20px 56px;
        gap: 40px;
    }

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

    .lede {
        font-size: 18px;
    }

    .band-inner,
    .section {
        padding: 56px 20px;
    }

    .section h2,
    .band h2 {
        font-size: 30px;
    }

    .phone {
        width: 100%;
        max-width: 340px;
    }

    .privacy-main {
        padding: 32px 20px 56px;
        flex-direction: column;
    }

    .toc {
        flex-basis: auto;
        width: 100%;
        border-bottom: 1px solid var(--tint);
        padding-bottom: 16px;
    }

    .privacy-article {
        flex-basis: auto;
        width: 100%;
    }

    .privacy-head h1,
    .notfound h1 {
        font-size: 34px;
    }

    .notfound {
        padding: 64px 20px 80px;
    }
}

@media (max-width: 360px) {
    .site-header,
    .hero,
    .band-inner,
    .section,
    .privacy-main,
    .notfound,
    .site-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .privacy-head h1,
    .notfound h1 {
        font-size: 30px;
    }

    .btn {
        width: 100%;
    }
}
