/* the look of the web app (lib/web/service/web_theme.dart): Inter, neutral greys, white cards with radius 26, pill
   controls, the green of the pitch for primary actions and the red of Premium */
:root {
    --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --page: #FAFAFA;
    --card: #FFFFFF;
    --sunken: #F3F3F3;
    --border: #EBEBEB;
    --border-strong: #BDBDBD;
    --text: #373737;
    --text-muted: #6B6B6B;
    --text-faint: #9E9E9E;
    --secondary: #EFEFEF;
    --secondary-hover: #E4E4E4;
    --accent: #13A262;
    --accent-hover: #0F8C54;
    --on-accent: #FFFFFF;
    --premium: linear-gradient(135deg, #D32F2F, #E57373);
    --shadow-card: 0 1px 1px rgba(0, 0, 0, .1), 0 0 0 .5px rgba(0, 0, 0, .06);
    --shadow-frame: 0 1px 2px rgba(0, 0, 0, .06), 0 24px 60px -12px rgba(0, 0, 0, .18);
    --radius-card: 26px;
    --radius-frame: 18px;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --page: #282828;
        --card: #373737;
        --sunken: #303030;
        --border: #474747;
        --border-strong: #6B6B6B;
        --text: #F0F0F0;
        --text-muted: #B4B4B4;
        --text-faint: #8A8A8A;
        --secondary: #474747;
        --secondary-hover: #525252;
        --accent-hover: #17B56E;
        --shadow-card: 0 1px 1px rgba(0, 0, 0, .3), 0 0 0 .5px rgba(255, 255, 255, .04);
        --shadow-frame: 0 1px 2px rgba(0, 0, 0, .3), 0 24px 60px -12px rgba(0, 0, 0, .6);
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --page: #282828;
    --card: #373737;
    --sunken: #303030;
    --border: #474747;
    --border-strong: #6B6B6B;
    --text: #F0F0F0;
    --text-muted: #B4B4B4;
    --text-faint: #8A8A8A;
    --secondary: #474747;
    --secondary-hover: #525252;
    --accent-hover: #17B56E;
    --shadow-card: 0 1px 1px rgba(0, 0, 0, .3), 0 0 0 .5px rgba(255, 255, 255, .04);
    --shadow-frame: 0 1px 2px rgba(0, 0, 0, .3), 0 24px 60px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--sans);
    font-feature-settings: 'cv11', 'ss01';
    background: var(--page);
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; }

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

.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 720px) {
    .wrap { padding: 0 32px; }
}

/* top bar: a white card like the top bar of the web app */
.top {
    position: sticky;
    top: 8px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 8px 0 0;
    padding: 8px 8px 8px 14px;
    border-radius: var(--radius-card);
    background: var(--card);
    box-shadow: var(--shadow-card);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
}

.brand img { width: 30px; height: 30px; border-radius: 8px; }

.top nav {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 500;
}

.top nav a:not(.btn) {
    padding: 8px 14px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--text-muted);
}

.top nav a:not(.btn):hover { background: var(--secondary); color: var(--text); }

@media (max-width: 760px) {
    .top nav a:not(.btn) { display: none; }
    .brand span { display: none; }
}

/* buttons: pills, green for the primary action, light grey for the others */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: background-color .12s ease-out;
}

.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--secondary); color: var(--text); }
.btn-secondary:hover { background: var(--secondary-hover); }
.btn-small { min-height: 38px; padding: 0 18px; font-size: 14px; }

/* hero */
.hero {
    padding: 72px 0 0;
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 6px 14px 6px 8px;
    border-radius: 999px;
    background: var(--card);
    box-shadow: var(--shadow-card);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.eyebrow b {
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--on-accent);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 860px;
    margin: 0 auto 20px;
    font-size: clamp(36px, 6.2vw, 68px);
    line-height: 1.04;
    font-weight: 700;
    letter-spacing: -.035em;
}

.hero h1 .accent { color: var(--accent); }

.lead {
    max-width: 640px;
    margin: 0 auto 32px;
    font-size: clamp(17px, 2vw, 19px);
    color: var(--text-muted);
}

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.note { margin: 16px 0 0; font-size: 13px; color: var(--text-faint); }

/* the screenshots of the web app, in a browser window */
.frame {
    border-radius: var(--radius-frame);
    overflow: hidden;
    background: var(--card);
    box-shadow: var(--shadow-frame);
    border: 1px solid var(--border);
}

.frame-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 38px;
    padding: 0 14px;
    background: var(--sunken);
    border-bottom: 1px solid var(--border);
}

.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); opacity: .7; }

.url {
    flex: 1;
    max-width: 320px;
    margin: 0 auto;
    padding: 3px 12px;
    border-radius: 999px;
    background: var(--card);
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.frame-bar::after { content: ''; width: 42px; }

.hero .frame { margin: 56px auto 0; max-width: 1120px; }

/* sections */
section { padding: 72px 0; }

.section-head .kicker {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
}

.section-head { max-width: 680px; margin: 0 0 40px; }
.section-head.center { margin: 0 auto 48px; text-align: center; }

.section-head h2 {
    margin: 0 0 14px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -.03em;
}

.section-head p { margin: 0; font-size: 17px; color: var(--text-muted); }

/* a feature with its screenshot, alternating sides on wide screens */
.showcase {
    display: grid;
    gap: 32px;
    align-items: center;
    padding: 40px 0;
}

@media (min-width: 960px) {
    .showcase { grid-template-columns: 4fr 7fr; gap: 64px; }
    .showcase.flip { grid-template-columns: 7fr 4fr; }
    .showcase.flip .text { order: 2; }
}

.showcase h3 {
    margin: 0 0 12px;
    font-size: clamp(22px, 2.6vw, 28px);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -.02em;
}

.showcase p { margin: 0 0 20px; color: var(--text-muted); font-size: 16px; }

.points { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 15px; }

.points li { display: flex; gap: 10px; align-items: baseline; }

.points li::before {
    content: '';
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    transform: translateY(-2px);
}

kbd {
    display: inline-block;
    min-width: 22px;
    padding: 1px 6px;
    border-radius: 6px;
    background: var(--card);
    border: 1px solid var(--border);
    border-bottom-width: 2px;
    font: 500 12px/18px var(--sans);
    text-align: center;
    color: var(--text);
}

/* the small details of a pro tool */
.grid {
    display: grid;
    gap: 8px;
}

@media (min-width: 600px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
    .grid { grid-template-columns: repeat(3, 1fr); }
}

.tile {
    padding: 22px;
    border-radius: var(--radius-card);
    background: var(--card);
    box-shadow: var(--shadow-card);
}

.tile svg { width: 22px; height: 22px; color: var(--accent); margin-bottom: 14px; }
.tile h4 { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.tile p { margin: 0; font-size: 14px; color: var(--text-muted); }

/* every device */
.devices {
    display: grid;
    gap: 24px;
    align-items: end;
}

@media (min-width: 900px) {
    .devices { grid-template-columns: 6fr 3fr 2fr; }
}

.device { margin: 0; }

.device figcaption {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
}

.device figcaption b { display: block; color: var(--text); font-weight: 600; }

.device .shot {
    border-radius: 22px;
    overflow: hidden;
    background: #111;
    border: 6px solid #1A1A1A;
    box-shadow: var(--shadow-frame);
}

.device.phone .shot { border-radius: 30px; max-width: 220px; margin: 0 auto; }
.device.tablet .shot { max-width: 340px; margin: 0 auto; }

.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 40px; }

/* faq */
.faq { display: grid; gap: 8px; max-width: 820px; margin: 0 auto; }

.faq details {
    padding: 2px 22px;
    border-radius: 20px;
    background: var(--card);
    box-shadow: var(--shadow-card);
}

.faq summary {
    padding: 16px 0;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 20px; line-height: 1; color: var(--text-faint); }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 18px; color: var(--text-muted); font-size: 15px; }

/* final call to action: the green of the pitch */
.cta {
    margin: 24px 0 72px;
    padding: 64px 24px;
    border-radius: 32px;
    background: var(--accent) linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(0, 0, 0, .08));
    color: #FFFFFF;
    text-align: center;
}

.cta h2 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -.03em;
}

.cta p { margin: 0 auto 28px; max-width: 34em; font-size: 17px; opacity: .9; }
.cta .btn-primary { background: #FFFFFF; color: #0F7A4A; }
.cta .btn-primary:hover { background: #F0F0F0; }
.cta .btn-secondary { background: rgba(255, 255, 255, .16); color: #FFFFFF; }
.cta .btn-secondary:hover { background: rgba(255, 255, 255, .24); }

/* footer */
footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    padding: 28px 0 40px;
    border-top: 1px solid var(--border);
    color: var(--text-faint);
    font-size: 13px;
}

footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }
