/* Hugin pages on overcoded.io. Hand-written; the HTML pages are generated by tools/hugin/build.py. */

:root {
    color-scheme: light dark;
    --bg: #f2f2f7;
    --card: #ffffff;
    --well: #ebebf0;
    --text: #1c1c1e;
    --muted: #54545a;
    --line: #d1d1d6;
    --accent: #4f4dc8;
    --accent-fill: #5856d6;
    --on-accent: #ffffff;
    --tick: #1f7a36;
    --focus: #4f4dc8;

    --radius: 18px;
    --gap: clamp(16px, 3vw, 28px);
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
    --fs-h1: clamp(1.9rem, 1.4rem + 2.6vw, 3.1rem);
    --fs-h2: clamp(1.3rem, 1.15rem + 0.8vw, 1.7rem);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #000000;
        --card: #1c1c1e;
        --well: #2c2c2e;
        --text: #ffffff;
        --muted: #aeaeb2;
        --line: #3a3a3c;
        --accent: #a5a4ff;
        --accent-fill: #5e5ce6;
        --on-accent: #ffffff;
        --tick: #30d158;
        --focus: #a5a4ff;
    }
}

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

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: var(--fs-body);
    line-height: 1.55;
}

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

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

.skip {
    position: absolute;
    left: 16px;
    top: -100px;
    padding: 10px 14px;
    background: var(--card);
    color: var(--text);
    border-radius: 10px;
    z-index: 10;
}
.skip:focus { top: 12px; }

.shell {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 16px 32px;
}

/* Language suggestion bar (shown by lang.js only) */
.lang-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 12px;
    padding: 8px 16px;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
}
.lang-bar[hidden] { display: none; }
.lang-bar button {
    min-height: 44px;
    padding: 0 12px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    cursor: pointer;
}
.lang-bar a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-weight: 600;
}

/* Header */
.top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    padding: 16px 0;
}
.brandline {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text);
    text-decoration: none;
    min-height: 44px;
}
.mark { width: 32px; height: 32px; border-radius: 8px; }
.top-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 16px;
    color: var(--muted);
    font-size: 0.95rem;
}

/* Language switch: <details> works without JavaScript */
.lang-switch { position: relative; }
.lang-switch summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    list-style: none;
    color: var(--text);
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary::after { content: "\25BE"; color: var(--muted); }
.lang-switch ul {
    position: absolute;
    right: 0;
    z-index: 5;
    margin: 6px 0 0;
    padding: 6px;
    list-style: none;
    min-width: 200px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgb(0 0 0 / 0.15);
}
.lang-switch li a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 10px;
    color: var(--text);
    text-decoration: none;
}
.lang-switch li a:hover { background: var(--well); }
.lang-switch li a[aria-current="page"] { font-weight: 700; color: var(--accent); }

/* Hero */
.hero {
    display: grid;
    gap: var(--gap);
    align-items: center;
    padding: clamp(16px, 4vw, 48px) 0;
}
@media (min-width: 860px) {
    .hero { grid-template-columns: 1.25fr 1fr; }
}
.kicker {
    margin: 0 0 8px;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.95rem;
}
h1 {
    margin: 0 0 16px;
    font-size: var(--fs-h1);
    line-height: 1.12;
    letter-spacing: -0.01em;
    overflow-wrap: break-word;
    hyphens: manual;
}
h1 .accent { display: block; color: var(--accent); }
.subhead { margin: 0 0 24px; max-width: 60ch; }

.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin-bottom: 20px;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 6px 18px;
    border-radius: 12px;
    background: #000000;
    color: #ffffff;
    text-decoration: none;
    border: 1px solid #a6a6a6;
}
.badge span span { display: block; }
.badge small { display: block; font-size: 0.72rem; line-height: 1.1; }
.badge strong { display: block; font-size: 1.2rem; line-height: 1.15; }
.badge-soon { cursor: default; }
.badge-note { color: var(--muted); font-size: 0.95rem; }

.pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.pills li {
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--card);
    border: 1px solid var(--line);
    font-size: 0.9rem;
}

/* Screenshot slot: the designer replaces the mock with real screenshots */
.stage {
    margin: 0;
    justify-self: center;
    width: min(100%, 340px);
}
.phone {
    padding: 18px 16px 22px;
    border-radius: 36px;
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: 0 16px 40px rgb(0 0 0 / 0.12);
}
.phone .month {
    margin: 4px 4px 12px;
    font-weight: 700;
    font-size: 1.1rem;
}
.cal {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}
.cal i {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    border-radius: 10px;
    background: var(--well);
    font-style: normal;
    font-size: 0.8rem;
    color: var(--muted);
}
.cal i.done::after { content: "\2713"; color: var(--tick); font-weight: 700; }
.cal i.today { background: var(--accent-fill); color: var(--on-accent); font-weight: 700; }
.cal i.theme { box-shadow: inset 0 0 0 2px #ff9f0a; }
.cal i.later { opacity: 0.45; }
.phone .play {
    margin-top: 14px;
    padding: 12px;
    border-radius: 14px;
    background: var(--accent-fill);
    color: var(--on-accent);
    text-align: center;
    font-weight: 600;
}

/* Content sections */
.features {
    display: grid;
    gap: var(--gap);
    padding: 8px 0 var(--gap);
}
@media (min-width: 720px) {
    .features { grid-template-columns: 1fr 1fr; }
}
.card {
    padding: clamp(18px, 3vw, 28px);
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--line);
}
.card h2,
.facts h2,
.doc-card h2 {
    margin: 0 0 8px;
    font-size: var(--fs-h2);
    line-height: 1.25;
}
.card p { margin: 0 0 12px; }
.card ul { margin: 0; padding-left: 1.2em; }
.card li + li { margin-top: 6px; }

.facts { padding: var(--gap) 0; }
.facts table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
}
.facts th,
.facts td {
    padding: 12px 16px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
}
.facts tr:last-child th,
.facts tr:last-child td { border-bottom: 0; }
.facts th { width: 34%; font-weight: 600; }
@media (max-width: 480px) {
    .facts th,
    .facts td { display: block; width: auto; }
    .facts th { padding-bottom: 0; border-bottom: 0; }
}

.note { color: var(--muted); font-size: 0.95rem; }

/* Support and privacy */
.doc { max-width: 760px; margin: 0 auto; padding: 8px 0 24px; }
.back-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-bottom: 8px;
}
.doc-card {
    padding: clamp(20px, 4vw, 40px);
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--line);
}
.doc-card h1 { font-size: clamp(1.8rem, 1.5rem + 1.4vw, 2.4rem); }
.doc-card h2 { margin-top: 32px; }
.doc-card h3 { margin: 0 0 6px; font-size: 1.1rem; line-height: 1.35; }
.updated { margin: -8px 0 16px; color: var(--muted); font-size: 0.95rem; }
.lead { font-size: 1.08em; }
.highlight {
    margin: 20px 0;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--well);
}
.button {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    background: var(--accent-fill);
    color: var(--on-accent);
    font-weight: 600;
    text-decoration: none;
}
.faq-item { padding: 16px 0; border-top: 1px solid var(--line); }
.faq-item p { margin: 0 0 8px; }
.faq-item p:last-child { margin-bottom: 0; }
.doc-card ul { padding-left: 1.2em; }

/* Footer */
.footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 24px;
    padding: 24px 0 8px;
    margin-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.95rem;
}
.footer ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.footer a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.byline a { display: inline-block; padding: 12px 0; }
