/* iPingTools marketing site.
   The palette is seeded from the same teal the app's Material theme uses
   (#00A6A6), with neutrals biased slightly toward it so nothing reads as a
   default grey. */

:root {
    --paper: #F2F5F5;
    --surface: #FFFFFF;
    --surface-2: #E7EDEC;
    --ink: #101919;
    --ink-muted: #526462;
    --rule: #D5DEDD;
    --rule-soft: #E3EAE9;
    --accent: #00807E;
    --accent-strong: #006361;
    --accent-wash: #DFF1F0;
    --shadow: 0 1px 2px rgba(16, 25, 25, .05), 0 8px 24px rgba(16, 25, 25, .05);

    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

    --shell: 1120px;
    --radius: 14px;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --paper: #0B1010;
        --surface: #141B1B;
        --surface-2: #1C2524;
        --ink: #E6EDEC;
        --ink-muted: #90A3A1;
        --rule: #27312F;
        --rule-soft: #1F2827;
        --accent: #3FC5BC;
        --accent-strong: #6BD8D0;
        --accent-wash: #14302F;
        --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .28);
    }
}

:root[data-theme="dark"] {
    --paper: #0B1010;
    --surface: #141B1B;
    --surface-2: #1C2524;
    --ink: #E6EDEC;
    --ink-muted: #90A3A1;
    --rule: #27312F;
    --rule-soft: #1F2827;
    --accent: #3FC5BC;
    --accent-strong: #6BD8D0;
    --accent-wash: #14302F;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .28);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--accent-strong);
    text-underline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 3px;
}

code {
    font-family: var(--mono);
    font-size: .86em;
    background: var(--surface-2);
    padding: 1px 5px;
    border-radius: 3px;
    word-break: break-word;
}

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

.skip-link {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    left: 12px;
    top: 12px;
    z-index: 10;
    background: var(--surface);
    padding: 10px 16px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* ---------------------------------------------------------------- header */

.site-header {
    border-bottom: 1px solid var(--rule);
    background: var(--paper);
    position: sticky;
    top: 0;
    z-index: 5;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 66px;
    flex-wrap: wrap;
}

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

.brand-mark {
    width: 26px;
    height: 26px;
    fill: var(--accent);
    stroke: var(--accent);
    stroke-width: 1.6;
    stroke-linecap: round;
}

.site-nav {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    font-size: 15px;
}

.site-nav a {
    color: var(--ink-muted);
    text-decoration: none;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
}

.site-nav a:hover {
    color: var(--ink);
    border-bottom-color: var(--accent);
}

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

.hero {
    padding: 72px 0 64px;
    border-bottom: 1px solid var(--rule);
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 56px;
    align-items: center;
}

.eyebrow {
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent-strong);
    margin: 0 0 18px;
}

h1 {
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.06;
    letter-spacing: -.028em;
    font-weight: 700;
    margin: 0 0 20px;
    text-wrap: balance;
}

.lede {
    font-size: 19px;
    line-height: 1.55;
    color: var(--ink-muted);
    margin: 0 0 28px;
    max-width: 56ch;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.button {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 15.5px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
}

.button-primary {
    background: var(--accent);
    color: #04201F;
    border-color: var(--accent);
}

.button-primary:hover {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
}

.button-quiet {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--rule);
}

.button-quiet:hover {
    border-color: var(--accent);
    color: var(--accent-strong);
}

.hero-facts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 15.5px;
    color: var(--ink-muted);
}

.hero-facts strong {
    color: var(--ink);
}

/* Phone frame around each render. */
.phone {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: 26px;
    padding: 9px;
    box-shadow: var(--shadow);
    max-width: 300px;
    margin: 0 auto;
}

.phone img {
    border-radius: 18px;
    display: block;
}

/* ----------------------------------------------------------------- bands */

.band {
    padding: 68px 0;
    border-bottom: 1px solid var(--rule);
}

.band-alt {
    background: var(--surface-2);
}

.band:last-of-type {
    border-bottom: none;
}

.section-title {
    font-size: clamp(25px, 3.2vw, 33px);
    line-height: 1.15;
    letter-spacing: -.02em;
    font-weight: 700;
    margin: 0 0 10px;
    text-wrap: balance;
}

.section-lede {
    font-size: 18px;
    color: var(--ink-muted);
    margin: 0 0 36px;
    max-width: 62ch;
}

.section-more {
    margin: 34px 0 0;
}

.page-head {
    padding: 62px 0 44px;
    border-bottom: 1px solid var(--rule);
}

/* -------------------------------------------------------------- pillars */

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

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

.pillar h3 {
    font-size: 19px;
    line-height: 1.28;
    margin: 0 0 10px;
    letter-spacing: -.01em;
}

.pillar p {
    margin: 0;
    color: var(--ink-muted);
    font-size: 16px;
}

/* ------------------------------------------------------------ tool grid */

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.tool {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-left: 3px solid var(--tool-accent, var(--accent));
    border-radius: 10px;
    padding: 16px 18px;
}

.tool h3 {
    margin: 0 0 3px;
    font-size: 16.5px;
    letter-spacing: -.01em;
}

.tool p {
    margin: 0;
    font-size: 14.5px;
    color: var(--ink-muted);
    line-height: 1.45;
}

/* ---------------------------------------------------------- feature list */

.feature-band {
    padding: 54px 0;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.feature {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-head {
    border-left: 3px solid var(--tool-accent, var(--accent));
    padding-left: 12px;
}

.feature-head h3 {
    margin: 0;
    font-size: 19px;
    letter-spacing: -.012em;
}

.feature-tagline {
    margin: 2px 0 0;
    font-size: 14.5px;
    color: var(--ink-muted);
}

.feature-detail {
    margin: 0;
    font-size: 16px;
    color: var(--ink-muted);
    line-height: 1.55;
}

/* ------------------------------------------------------------ permissions */

.perm-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 20px;
}

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

.perm h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.perm p {
    margin: 0;
    color: var(--ink-muted);
    font-size: 16px;
}

/* ---------------------------------------------------------------- checks */

.privacy-teaser {
    max-width: 76ch;
}

.checks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checks li {
    position: relative;
    padding-left: 30px;
    color: var(--ink-muted);
}

.checks li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: .58em;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
}

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

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

.shot {
    margin: 0;
}

.shot figcaption {
    margin-top: 18px;
    text-align: center;
}

.shot figcaption h2 {
    font-size: 18px;
    margin: 0 0 4px;
    letter-spacing: -.01em;
}

.shot figcaption p {
    margin: 0 auto;
    font-size: 15px;
    color: var(--ink-muted);
    max-width: 34ch;
    line-height: 1.45;
}

/* --------------------------------------------------------------- prose */

.prose {
    max-width: 74ch;
}

.prose h2 {
    font-size: 25px;
    letter-spacing: -.018em;
    margin: 44px 0 12px;
    text-wrap: balance;
}

.prose h2:first-child {
    margin-top: 0;
}

.prose h3 {
    font-size: 18.5px;
    letter-spacing: -.01em;
    margin: 30px 0 8px;
}

.prose p {
    margin: 0 0 16px;
    color: var(--ink-muted);
}

.prose ul {
    margin: 0 0 18px;
    padding-left: 22px;
    color: var(--ink-muted);
}

.prose li {
    margin-bottom: 9px;
}

.prose strong {
    color: var(--ink);
}

.summary-box {
    background: var(--accent-wash);
    border: 1px solid var(--rule);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: 24px 26px;
    margin-bottom: 12px;
}

.summary-box h2 {
    margin: 0 0 10px;
    font-size: 20px;
}

.summary-box p {
    margin: 0;
    color: var(--ink);
}

.notice {
    max-width: 74ch;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: 26px;
}

.notice h2 {
    margin: 0 0 10px;
    font-size: 20px;
}

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

.request-id {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--ink-muted);
}

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

.table-scroll {
    overflow-x: auto;
    border: 1px solid var(--rule);
    border-radius: 8px;
    background: var(--surface);
    margin: 0 0 22px;
}

table {
    border-collapse: collapse;
    width: 100%;
    min-width: 560px;
    font-size: 15px;
}

th,
td {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--rule-soft);
    vertical-align: top;
}

tbody tr:last-child td {
    border-bottom: none;
}

th {
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--ink-muted);
    background: var(--surface-2);
    border-bottom: 1px solid var(--rule);
    white-space: nowrap;
}

td {
    color: var(--ink-muted);
}

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

.site-footer {
    border-top: 1px solid var(--rule);
    background: var(--surface-2);
    padding: 40px 0 32px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.footer-name {
    margin: 0;
    font-weight: 700;
    letter-spacing: -.02em;
}

.footer-note {
    margin: 2px 0 0;
    color: var(--ink-muted);
    font-size: 15px;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 15px;
}

.footer-links a {
    color: var(--ink-muted);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--accent-strong);
    text-decoration: underline;
}

.footer-legal {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--rule);
}

.footer-legal p {
    margin: 0;
    font-size: 14px;
    color: var(--ink-muted);
}

/* -------------------------------------------------------------- responsive */

@media (max-width: 880px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .hero-shot {
        order: -1;
    }

    .hero {
        padding: 44px 0 52px;
    }

    .band {
        padding: 52px 0;
    }
}

@media (max-width: 560px) {
    body {
        font-size: 16.5px;
    }

    .shell {
        padding: 0 18px;
    }

    .header-inner {
        min-height: 0;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .site-header {
        position: static;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
