/* HRB marketing page.
   Light, high-contrast, one accent colour — the same white-and-red the app
   itself uses, so the page and the product read as one thing. */

:root {
    --ink: #101014;
    --ink-2: #4a4a55;
    --ink-3: #8b8b96;
    --rule: #e7e7ec;
    --surface: #ffffff;
    --surface-2: #f7f7f9;
    --accent: #e62233;
    --accent-soft: #fdeef0;
    --radius: 18px;
    /* Chips and other small blocks: square enough to read as siblings of the
       note panel rather than as pills. */
    --radius-sm: 10px;
    --measure: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--surface);
    color: var(--ink);
    font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text",
          "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.wrap {
    max-width: var(--measure);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- nav ---------- */

.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--rule);
}

.nav .wrap {
    display: flex;
    align-items: center;
    gap: 18px;
    height: 60px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
    color: var(--ink);
}

.brand img { width: 26px; height: 26px; border-radius: 7px; }

.nav nav { margin-left: auto; display: flex; gap: 22px; }

.nav nav a {
    color: var(--ink-2);
    text-decoration: none;
    font-size: 15px;
}

.nav nav a:hover { color: var(--accent); }

/* ---------- language picker ---------- */

/* A <details> rather than a <select> or a menu built in script: every language
   is a real link to a real page, so it works with JavaScript off and a crawler
   can follow all twenty-five. */

.lang { position: relative; margin-left: 4px; }

.lang summary {
    display: flex;
    align-items: center;
    gap: 7px;
    /* The default disclosure triangle would sit next to a globe and read as a
       second, conflicting affordance. */
    list-style: none;
    cursor: pointer;
    padding: 5px 10px;
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--ink-2);
    white-space: nowrap;
}

.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { color: var(--accent); border-color: var(--accent); }
.lang[open] summary { color: var(--accent); border-color: var(--accent); }

.lang ul {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    margin: 0;
    padding: 6px;
    list-style: none;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    box-shadow: 0 12px 30px rgba(16, 16, 20, 0.12);
    /* Twenty-five entries is taller than a phone. Two columns and a scroll
       cap keep the list on screen without hiding anything behind a fold. */
    columns: 2;
    column-gap: 4px;
    max-height: 62vh;
    overflow-y: auto;
    z-index: 20;
}

.lang li { break-inside: avoid; }

.lang li a {
    display: block;
    padding: 5px 12px;
    border-radius: 7px;
    font-size: 14px;
    line-height: 1.35;
    color: var(--ink-2);
    text-decoration: none;
    white-space: nowrap;
}

.lang li a:hover { background: var(--surface-2); color: var(--accent); }
.lang li a[aria-current] { color: var(--ink); font-weight: 600; }

/* The offer bar. Shown only to a visitor whose browser asks for a language we
   publish, and only on the English page — it offers, it never redirects. */

.lang-offer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 9px 16px;
    background: var(--accent-soft);
    border-bottom: 1px solid var(--rule);
    font-size: 15px;
}

.lang-offer a { color: var(--accent); font-weight: 600; }

.lang-offer button {
    background: none;
    border: 0;
    padding: 0 4px;
    font-size: 20px;
    line-height: 1;
    color: var(--ink-3);
    cursor: pointer;
}

/* Right-to-left. Only Arabic reaches this, and only the few places where the
   page pins something to a side need saying — the rest follows `dir`. */

[dir="rtl"] .lang ul { right: auto; left: 0; }
[dir="rtl"] .nav nav { margin-left: 0; margin-right: auto; }

/* ---------- hero ---------- */

.hero { padding: 84px 0 68px; text-align: center; }

.hero img.mark {
    width: 96px;
    height: 96px;
    border-radius: 22px;
    box-shadow: 0 12px 34px rgba(230, 34, 51, 0.16);
    margin-bottom: 28px;
}

/* Line art on paper. It keeps its white ground in dark mode rather than being
   inverted — inverting a pencil drawing gives a photographic negative — so the
   card is the same in both appearances and only the caption follows the theme. */
h1 {
    font-size: clamp(38px, 6vw, 62px);
    line-height: 1.06;
    letter-spacing: -0.035em;
    font-weight: 700;
    margin: 0 0 18px;
}

.lede {
    font-size: clamp(18px, 2.2vw, 21px);
    color: var(--ink-2);
    max-width: 660px;
    margin: 0 auto 34px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 22px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border: 1px solid transparent;
    transition: transform 0.12s ease, background 0.12s ease;
}

.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #cc1c2c; }

.btn-ghost {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--rule);
}

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

.note {
    margin-top: 18px;
    font-size: 14px;
    color: var(--ink-3);
}

/* ---------- sections ---------- */

section { padding: 68px 0; border-top: 1px solid var(--rule); }

h2 {
    font-size: clamp(27px, 3.4vw, 36px);
    letter-spacing: -0.025em;
    margin: 0 0 12px;
    font-weight: 700;
}

.sub {
    color: var(--ink-2);
    max-width: 680px;
    margin: 0 0 38px;
}

/* ---------- screenshots ---------- */

/* A device screenshot is tall and narrow; the copy beside it is neither. Below
   the breakpoint the two stack and the shot is capped so a phone screenshot
   does not become a full page of scrolling on a phone. */

.showcase {
    display: grid;
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    gap: 44px;
    align-items: start;
}

.shot { margin: 0; }

.shot img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 22px;
    border: 1px solid var(--rule);
    background: var(--surface);
}

/* The watch captures are small and square-ish; the phone corner radius on them
   reads as a mistake, and stretched to a phone's width they are unreadable. */
.shot.watch img {
    border-radius: 14px;
    max-width: 240px;
}

.showcase-copy h3 {
    font-size: 19px;
    margin: 0 0 10px;
}

.showcase-copy > p {
    color: var(--ink-2);
    margin: 0 0 26px;
}

.steps {
    margin: 0;
    display: grid;
    gap: 4px;
    border-top: 1px solid var(--rule);
    padding-top: 20px;
}

.steps dt {
    font-weight: 600;
    font-size: 14.5px;
    color: var(--ink);
}

.steps dd {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink-2);
}

.steps dd:last-child { margin-bottom: 0; }

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 34px 26px;
}

.gallery figcaption {
    margin-top: 14px;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--ink-2);
}

/* The label sits on its own line above the sentence rather than running into
   it, so the grid can be scanned by heading alone. */
.gallery figcaption b {
    display: block;
    color: var(--ink);
    font-weight: 600;
    margin-bottom: 3px;
}

.gallery .shot.watch {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

@media (max-width: 720px) {
    .showcase { grid-template-columns: 1fr; gap: 30px; }
    .showcase .shot img { max-width: 280px; margin: 0 auto; }
}

/* ---------- cards ---------- */

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

/*
 * A section stacks a card grid, a callout and a spec table as plain siblings,
 * and none of them carried a bottom margin — so the grid ended flush against
 * the callout and the callout flush against the table, reading as one
 * undifferentiated block. The space belongs to the block that precedes it
 * rather than the one that follows, so that a section opening with a card does
 * not gain a gap under its own subtitle. The last block in a section drops it
 * again and lets the section's own padding be the only thing at the bottom.
 */
.grid,
.callout,
.spec {
    margin-bottom: 40px;
}

.wrap > :last-child {
    margin-bottom: 0;
}

.card {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 26px 24px;
}

.card i {
    font-size: 26px;
    color: var(--accent);
    display: block;
    margin-bottom: 14px;
}

.card h3 {
    font-size: 17px;
    margin: 0 0 8px;
    font-weight: 650;
    letter-spacing: -0.01em;
}

.card p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; }

/* ---------- compatibility ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: #99101d;
    font-size: 14.5px;
    font-weight: 550;
}

.chip i { font-size: 14px; }

.callout {
    background: var(--surface-2);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 22px 26px;
}

.callout h3 { margin: 0 0 8px; font-size: 17px; }
.callout p { margin: 0 0 10px; color: var(--ink-2); font-size: 15px; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- spec table ---------- */

.spec { width: 100%; border-collapse: collapse; font-size: 15px; }

.spec th, .spec td {
    text-align: left;
    padding: 13px 0;
    border-bottom: 1px solid var(--rule);
    vertical-align: top;
}

.spec th { width: 210px; font-weight: 600; color: var(--ink); }
.spec td { color: var(--ink-2); }
.spec code { font-size: 13.5px; background: var(--surface-2); padding: 1px 6px; border-radius: 5px; }

/* ---------- footer ---------- */

footer {
    border-top: 1px solid var(--rule);
    padding: 40px 0 60px;
    color: var(--ink-3);
    /* One line on a desktop wrap. The string is ~135 characters, which is
       about 760px at this size — it wraps on phones and that is fine. */
    font-size: 12px;
    letter-spacing: 0.01em;
}

footer a { color: var(--ink-2); }

@media (max-width: 640px) {
    .nav nav { display: none; }
    .hero { padding: 56px 0 44px; }
    .spec th { width: auto; display: block; border: 0; padding-bottom: 2px; }
    .spec td { display: block; padding-top: 0; }
}

/* ---------- plain list ---------- */

/* Used where a bulleted list is the honest shape — the privacy page's list of
   things the app does not do reads as a list and would be worse as prose. */

.plain {
    margin: 0 0 38px;
    padding-left: 1.15rem;
    max-width: 680px;
    color: var(--ink-2);
    display: grid;
    gap: 8px;
    line-height: 1.6;
}
