/* ==========================================================================
   Tallē design system

   Color   One ink. One lime. Four app colors, exactly as they appear in the
           marks. Neutral greys only. No gradients, no tinted paper, and no
           second green: small text is always ink or grey, never green.
   Dark    The page follows the device setting. Colors come from the tokens
           in :root, and the dark values sit right under them. Use a token,
           not a hex value, so a new rule works in both modes.
   Buttons Capsules, the same shape the apps use.
             .btn-ink    the default action on light surfaces
             .btn-lime   the one conversion moment on a page
             .btn-white  a primary action on ink or Engage purple
             .btn        (plain) a secondary action
             .btn-text   a quiet link with an arrow
             .btn-danger a destructive action
   ========================================================================== */

@font-face { font-family: "Google Sans Flex"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/GoogleSansFlex-Regular.ttf") format("truetype"); }
@font-face { font-family: "Google Sans Flex"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/GoogleSansFlex-Medium.ttf") format("truetype"); }
@font-face { font-family: "Google Sans Flex"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/GoogleSansFlex-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Google Sans Flex"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/GoogleSansFlex-Bold.ttf") format("truetype"); }

:root {
    color-scheme: light dark;

    /* Ink and paper. These flip in dark mode: --ink is the text color and
       the fill of solid controls, --paper is the page. */
    --ink: #0e1116;
    --ink-raised: #1c2027;
    --on-fill: #ffffff;         /* text on a solid --ink or --danger fill */
    --paper: #ffffff;
    --raised: #ffffff;          /* floating layers: menus, dialogs, the proof card */
    --soft: #f5f5f7;
    --hover: #f5f5f7;           /* hover wash on links and menu rows */
    --canvas: #ececef;
    --slab: #0e1116;            /* large ink panels: Suite hero, footer, featured plan */
    --line: rgba(14, 17, 22, .1);
    --line-strong: rgba(14, 17, 22, .24);
    --halo: rgba(14, 17, 22, .1);   /* soft ring around a focused field */
    --muted: #5b6068;
    --subtle: #6a6f77;
    --faint: #a4a8ae;
    --text: #2c3037;

    /* The sticky header's glass */
    --glass: rgba(255, 255, 255, .96);
    --glass-thin: rgba(255, 255, 255, .8);
    --glass-edge: rgba(255, 255, 255, .8);
    --glass-line: rgba(14, 17, 22, .05);

    /* Brand and app colors. These match the logo marks exactly, and are the
       same in light and dark. */
    --lime: #89ff00;
    --docs: #89ff00;
    --tasks: #ffda00;
    --forms: #ff4e00;
    --engage: #5000ff;
    --accent-ink: #0e1116;      /* text on lime, yellow, orange and white: always dark */

    /* Status */
    --danger: #b3261e;
    --danger-soft: #fdecea;
    --danger-ring: rgba(179, 38, 30, .38);

    /* On ink panels and Engage purple: the same in light and dark */
    --on-ink: #ffffff;
    --on-ink-soft: rgba(255, 255, 255, .74);
    --on-ink-line: rgba(255, 255, 255, .14);
    --bezel: #ffffff;           /* the phone frame around a product screenshot */

    /* Shape and space */
    --radius-s: 14px;
    --radius-m: 22px;
    --radius-l: 28px;
    --shell: 1280px;
    --pad: clamp(22px, 4.5vw, 64px);
    --focus: var(--ink);

    /* Type scale */
    --t-display: clamp(44px, 5.4vw, 76px);
    --t-h1: clamp(38px, 4.4vw, 60px);
    --t-h2: clamp(30px, 3.4vw, 46px);
    --t-h3: 20px;
    --t-small: 14px;
    --t-micro: 12px;
}

/* Dark mode. The same design with the tones turned down: a near-black page,
   panels that get lighter as they rise, off-white text, and softer lines.
   Only these tokens change. The app colors, text on them (--accent-ink) and
   text on ink panels (--on-ink) hold in both modes. */
@media (prefers-color-scheme: dark) {
    :root {
        --ink: #f3f4f6;
        --on-fill: #0e1116;
        --paper: #111215;
        --raised: #2c2f35;
        --soft: #1a1c20;
        --hover: rgba(255, 255, 255, .06);
        --canvas: #08090b;
        --slab: #24272c;
        --line: rgba(255, 255, 255, .1);
        --line-strong: rgba(255, 255, 255, .26);
        --halo: rgba(255, 255, 255, .14);
        --muted: #a4a8b0;
        --subtle: #8f949c;
        --faint: #666a73;
        --text: #d3d6db;

        --glass: rgba(17, 18, 21, .96);
        --glass-thin: rgba(17, 18, 21, .8);
        --glass-edge: rgba(255, 255, 255, .1);
        --glass-line: rgba(255, 255, 255, .06);

        --danger: #ff8a80;
        --danger-soft: #3a1614;
        --danger-ring: rgba(255, 138, 128, .45);
    }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font-family: "Google Sans Flex", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
[hidden] { display: none !important; }
::selection { background: var(--lime); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip-link { position: absolute; left: 20px; top: -100px; z-index: 999; padding: 12px 16px; border-radius: 999px; background: var(--raised); font-weight: 700; }
.skip-link:focus { top: 12px; }

/* Links inside running text */
.inline-link, .prose a, .long-form a, .faq-answer a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--line-strong);
    text-underline-offset: 3px;
    transition: text-decoration-color .15s ease;
}
.inline-link:hover, .prose a:hover, .long-form a:hover, .faq-answer a:hover { text-decoration-color: currentColor; }

/* Buttons ---------------------------------------------------------------- */
.btn {
    --btn-bg: var(--paper);
    --btn-fg: var(--ink);
    --btn-ring: var(--line-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: var(--btn-bg);
    color: var(--btn-fg);
    box-shadow: inset 0 0 0 1px var(--btn-ring);
    font-size: var(--t-small);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform .16s ease, box-shadow .16s ease, background-color .3s ease, color .3s ease, opacity .16s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px var(--btn-ring), 0 8px 20px rgba(14, 17, 22, .14); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: wait; transform: none; box-shadow: inset 0 0 0 1px var(--btn-ring); }
.btn svg { flex: 0 0 auto; fill: currentColor; }

.btn-ink { --btn-bg: var(--ink); --btn-fg: var(--on-fill); --btn-ring: var(--ink); }
.btn-lime { --btn-bg: var(--lime); --btn-fg: var(--accent-ink); --btn-ring: var(--lime); }
.btn-white { --btn-bg: var(--on-ink); --btn-fg: var(--accent-ink); --btn-ring: var(--on-ink); }
.btn-danger { --btn-fg: var(--danger); --btn-ring: var(--danger-ring); }
.btn-sm { min-height: 38px; padding: 0 15px; font-size: 13px; }
.btn-block { width: 100%; }

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: var(--t-small);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 4px;
    cursor: pointer;
    transition: text-decoration-color .15s ease;
}
.btn-text:hover { text-decoration-color: currentColor; }
.btn-text[disabled] { opacity: .5; cursor: wait; }
.btn-text.is-danger { color: var(--danger); }

/* Status pills ----------------------------------------------------------- */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: var(--t-micro);
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}
.pill::before { content: ""; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-active { background: var(--lime); color: var(--accent-ink); }
.pill-pending { background: var(--tasks); color: var(--accent-ink); }
.pill-ended { background: var(--soft); color: var(--muted); }
.pill-problem { background: var(--danger-soft); color: var(--danger); }

/* App marks -------------------------------------------------------------- */
.mark { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 50%; }
.mark-stack { display: inline-flex; align-items: center; flex: 0 0 auto; }
.mark-stack .mark { box-shadow: 0 0 0 2px var(--stack-ring, var(--paper)); }
.mark-stack .mark + .mark { margin-left: -9px; }

/* Kicker ----------------------------------------------------------------- */
.kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    font-size: var(--t-micro);
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.kicker::before { content: ""; flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.kicker.has-mark::before { display: none; }
.kicker .mark { width: 22px; height: 22px; }

.label {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: var(--t-micro);
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* Page frame ------------------------------------------------------------- */
.suite-frame {
    width: min(calc(100% - 48px), var(--shell));
    margin: 24px auto;
    background: var(--paper);
    border-radius: 32px;
    box-shadow: 0 18px 70px rgba(14, 17, 22, .05);
}

.suite-header {
    position: sticky;
    top: 12px;
    z-index: 100;
    min-height: 88px;
    padding: 0 var(--pad);
    display: grid;
    grid-template-columns: minmax(110px, 1fr) auto minmax(170px, 1fr);
    align-items: center;
    gap: 24px;
    background: var(--glass);
    border: 1px solid transparent;
    border-radius: 32px 32px 0 0;
    transform-origin: top center;
    transition: background-color .3s ease, border-color .3s ease, border-radius .3s ease, box-shadow .3s ease, transform .3s ease;
}
.suite-header.is-scrolled {
    background: var(--glass-thin);
    border-color: var(--glass-edge);
    border-radius: 22px;
    box-shadow: 0 14px 36px rgba(14, 17, 22, .12), inset 0 0 0 1px var(--glass-line);
    transform: scale(.98);
    -webkit-backdrop-filter: blur(24px) saturate(170%);
    backdrop-filter: blur(24px) saturate(170%);
}

.suite-brand { display: block; width: 118px; line-height: 0; }
.suite-brand img { width: 100%; height: auto; }

.product-trail { display: flex; align-items: center; justify-content: center; gap: 2px; white-space: nowrap; }
.product-trail > .trail-arrow { color: var(--faint); font-size: 12px; }
.product-trail > .trail-gap { flex: 0 0 1px; width: 1px; height: 16px; margin: 0 8px; background: var(--line-strong); }
.product-trail a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 11px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    transition: background-color .2s ease, color .2s ease;
}
.product-trail a:hover { background: var(--hover); color: var(--ink); }
.product-trail a[aria-current] { background: var(--ink); color: var(--on-fill); }
.product-trail a[data-view="docs"][aria-current] { background: var(--docs); color: var(--accent-ink); }
.product-trail a[data-view="tasks"][aria-current] { background: var(--tasks); color: var(--accent-ink); }
.product-trail a[data-view="forms"][aria-current] { background: var(--forms); color: var(--accent-ink); }
.product-trail a[data-view="engage"][aria-current] { background: var(--engage); color: var(--on-ink); }

.utility-nav { justify-self: end; display: flex; align-items: center; gap: 6px; }
.help-menu { position: relative; }
.help-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .2s ease;
}
.help-trigger:hover, .help-trigger[aria-expanded="true"] { background: var(--hover); }
.help-trigger svg { width: 10px; height: 10px; transition: transform .2s ease; }
.help-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.help-panel {
    position: absolute;
    z-index: 120;
    top: calc(100% + 10px);
    right: 0;
    width: 280px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--raised);
    box-shadow: 0 20px 60px rgba(14, 17, 22, .16);
}
.help-panel a { display: block; padding: 12px 14px; border-radius: 13px; transition: background-color .15s ease; }
.help-panel a:hover { background: var(--hover); }
.help-panel strong { display: block; font-size: 14px; }
.help-panel span { display: block; margin-top: 1px; color: var(--muted); font-size: 13px; }

.suite-footer {
    --focus: var(--on-ink);
    margin-top: 20px;
    padding: 52px var(--pad) 26px;
    display: grid;
    grid-template-columns: minmax(200px, 1fr) repeat(3, auto);
    gap: 36px clamp(32px, 6vw, 84px);
    border-radius: 0 0 32px 32px;
    background: var(--slab);
    color: var(--on-ink);
}
.footer-brand img { width: 120px; height: auto; }
.footer-brand p { max-width: 30ch; margin: 14px 0 0; color: var(--on-ink-soft); font-size: var(--t-small); }
.footer-col h2 { margin: 0 0 10px; color: var(--on-ink-soft); font-size: var(--t-micro); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.footer-col a { display: block; padding: 5px 0; color: var(--on-ink); font-size: var(--t-small); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color .15s ease; }
.footer-col a:hover { text-decoration-color: currentColor; }
.footer-note {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 24px;
    padding-top: 18px;
    border-top: 1px solid var(--on-ink-line);
    color: var(--on-ink-soft);
    font-size: 13px;
}

/* Secondary page hero ---------------------------------------------------- */
.page-hero {
    margin: 0 20px;
    padding: clamp(40px, 5vw, 64px) clamp(28px, 5.5vw, 72px);
    border-radius: var(--radius-l);
    background: var(--soft);
}
.page-hero h1 {
    margin: 0;
    max-width: 22ch;
    font-size: var(--t-h1);
    line-height: 1;
    letter-spacing: -.045em;
}
.page-hero .lede { max-width: 58ch; margin: 18px 0 0; color: var(--muted); font-size: clamp(16px, 1.4vw, 18px); }
.page-hero .updated { margin: 16px 0 0; color: var(--muted); font-size: var(--t-small); }

.section-head { max-width: 720px; }
.section-head h2 { margin: 0; font-size: var(--t-h2); line-height: 1.02; letter-spacing: -.04em; }
.section-head p:last-child { margin: 16px 0 0; color: var(--muted); }

/* Long-form text: legal and support pages -------------------------------- */
.long-form { max-width: 760px; margin: 0 auto; padding: clamp(36px, 5vw, 56px) 28px clamp(56px, 7vw, 88px); }
.long-form h2 { margin: 40px 0 12px; font-size: 22px; letter-spacing: -.02em; line-height: 1.25; }
.long-form h2:first-child { margin-top: 0; }
.long-form p, .long-form ul, .long-form ol { margin: 0 0 16px; color: var(--text); }
.long-form ul, .long-form ol { padding-left: 22px; }
.long-form li { margin-bottom: 6px; }
.long-form strong { color: var(--ink); }
.long-form code { padding: 1px 6px; border-radius: 6px; background: var(--soft); font-size: .9em; }
.long-form .callout { margin: 0 0 28px; padding: 18px 20px; border-radius: var(--radius-s); background: var(--soft); color: var(--text); font-size: 15px; }

/* Accordion: FAQ page and pricing page ----------------------------------- */
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-list details { border-bottom: 1px solid var(--line-strong); }
.faq-list summary {
    position: relative;
    padding: 19px 46px 19px 0;
    list-style: none;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -.01em;
    cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: "";
    position: absolute;
    right: 4px;
    top: 50%;
    width: 9px;
    height: 9px;
    margin-top: -7px;
    border-right: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    transform: rotate(45deg);
    transition: transform .2s ease, margin-top .2s ease;
}
.faq-list details[open] summary::after { margin-top: -2px; transform: rotate(-135deg); }
.faq-answer { max-width: 680px; padding: 0 46px 22px 0; color: var(--muted); font-size: 15px; }
.faq-answer p { margin: 0; }

/* Forms ------------------------------------------------------------------ */
.field { display: flex; flex-direction: column; gap: 7px; margin: 0 0 14px; min-width: 0; font-size: 13px; font-weight: 600; }
.field input, .field select, .field textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-s);
    background: var(--paper);
    color: var(--ink);
    font-size: 16px;
    font-weight: 400;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder { color: var(--subtle); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px var(--halo); }
.field input:read-only { background: var(--soft); }

.divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* FAQ page --------------------------------------------------------------- */
.faq-jump { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.faq-jump a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 15px 0 10px;
    border-radius: 999px;
    background: var(--paper);
    box-shadow: inset 0 0 0 1px var(--line);
    font-size: 13px;
    font-weight: 700;
    transition: box-shadow .15s ease;
}
.faq-jump a:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
.faq-jump a.no-mark { padding-left: 15px; }
.faq-jump .mark { width: 22px; height: 22px; }

.faq-content { padding: clamp(24px, 4vw, 48px) var(--pad) clamp(48px, 6vw, 72px); }
.faq-app {
    scroll-margin-top: 120px;
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    gap: clamp(32px, 7vw, 88px);
    padding: clamp(40px, 5vw, 60px) 0;
    border-top: 1px solid var(--line);
}
.faq-app:first-child { border-top: 0; }
.faq-app-heading { min-width: 0; }
.faq-app-heading .kicker { color: var(--muted); }
.faq-app-heading h2 { margin: 0; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.02; letter-spacing: -.04em; }
.faq-app-heading > p:last-child { max-width: 36ch; margin: 16px 0 0; color: var(--muted); font-size: 15px; }

/* Responsive shell ------------------------------------------------------- */
@media (max-width: 1100px) {
    .suite-header { grid-template-columns: 120px 1fr auto; padding-left: 28px; padding-right: 28px; }
}

@media (max-width: 960px) {
    .suite-header { position: relative; top: auto; min-height: 0; padding: 16px 20px 10px; grid-template-columns: 1fr auto; row-gap: 10px; }
    .suite-header.is-scrolled { background: var(--paper); border-color: transparent; border-radius: 32px 32px 0 0; box-shadow: none; transform: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
    .suite-brand { width: 104px; }
    .utility-nav { grid-column: 2; grid-row: 1; }
    .help-trigger { background: var(--soft); }
    .product-trail {
        grid-row: 2;
        grid-column: 1 / -1;
        justify-content: flex-start;
        margin: 0 -20px;
        padding: 2px 20px;
        overflow-x: auto;
        scrollbar-width: none;
        /* Edge fades hint that the trail keeps going; site.js toggles at-start
           and at-end so a fade never shows past a real edge. */
        --trail-fade-l: 0px;
        --trail-fade-r: 34px;
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--trail-fade-l), #000 calc(100% - var(--trail-fade-r)), transparent 100%);
        mask-image: linear-gradient(to right, transparent 0, #000 var(--trail-fade-l), #000 calc(100% - var(--trail-fade-r)), transparent 100%);
    }
    .product-trail:not(.at-start) { --trail-fade-l: 34px; }
    .product-trail.at-end { --trail-fade-r: 0px; }
    .product-trail::-webkit-scrollbar { display: none; }
    .product-trail a { min-height: 36px; }
    .suite-footer { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 840px) {
    .suite-frame { width: calc(100% - 22px); margin: 11px auto; border-radius: 26px; }
    .suite-header { border-radius: 26px 26px 0 0; }
    .suite-header.is-scrolled { border-radius: 26px 26px 0 0; }
    .page-hero { margin: 0 10px; border-radius: 22px; padding: 36px 24px; }
    .long-form { padding-left: 24px; padding-right: 24px; }
    .faq-app { grid-template-columns: 1fr; gap: 24px; }
    .faq-content { padding-left: 24px; padding-right: 24px; }
    .suite-footer { margin-top: 14px; border-radius: 0 0 26px 26px; }
}

@media (max-width: 560px) {
    .suite-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .faq-answer { padding-right: 8px; }
}

@media (max-width: 359px) {
    .suite-header { padding-left: 16px; padding-right: 16px; column-gap: 8px; }
    .suite-brand { width: 92px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
