/* Tab Title Tamer, the product site.
 *
 * The "premium dark" direction of the store images (promo/src/promo.css):
 * charcoal ground, orange as an accent, glassy cards, Tabstrip on the
 * headings exactly as in the product. The tab mockups are the same
 * components the images and the demo use, so the site cannot promise a
 * different-looking product than the listing does.
 *
 * One committed theme. Every visual asset the product has (screenshots,
 * the demo, the popup) is dark, and a dark page is where they sit flush.
 */

@font-face {
    font-family: "Tabstrip";
    src: url("assets/fonts/Tabstrip-Regular.woff2") format("woff2");
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: "Tabstrip";
    src: url("assets/fonts/Tabstrip-Bold.woff2") format("woff2");
    font-weight: 700; font-style: normal; font-display: swap;
}

:root {
    --ground: #131118;
    --ground-alt: #17151c;
    --card: rgba(255, 255, 255, .045);
    --card-border: rgba(255, 255, 255, .10);
    --card-border-strong: rgba(255, 255, 255, .16);

    --text: #f2efe9;        /* headings */
    --text-2: #cfcbc2;      /* body, 11:1 on the ground */
    --text-3: #aca89e;      /* secondary, 7.7:1 */
    --text-4: #8f8b82;      /* labels, 5.5:1 */

    --orange: #fc8c03;
    --orange-2: #ffb254;
    --on-orange: #1f1f1d;   /* 6.99:1 on the orange; white is 2.36 */

    /* The marker colors the page tells its story with. Every one is FREE in
       the extension (TTFavicon.FREE_COLORS): a promise a new install can keep. */
    --prod: #c0392b;
    --stage: #fc8c03;
    --dev: #2d7d46;
    --ink: #111827;
    --site: #4a76a8;        /* a site's own icon, never a marker color */

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

    --radius: 14px;
    --radius-lg: 22px;
    --max: 1120px;
    --max-narrow: 720px;
}

/* ------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
    margin: 0;
    background: var(--ground);
    color: var(--text-2);
    font: 400 17px/1.6 var(--body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-2); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--orange-2); outline-offset: 3px; border-radius: 6px; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
code {
    font-family: var(--mono); font-size: .92em;
    background: rgba(255, 255, 255, .07); border-radius: 6px; padding: .08em .4em;
    color: var(--text);
}

.skip {
    position: absolute; left: 16px; top: -60px; z-index: 50;
    background: var(--orange); color: var(--on-orange);
    padding: 10px 14px; border-radius: 8px; font-weight: 700;
}
.skip:focus { top: 16px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: var(--max-narrow); }
.center { text-align: center; }

/* ------------------------------------------------------------- type --- */
h1, h2, h3 {
    font-family: var(--display); font-weight: 700; color: var(--text);
    margin: 0; letter-spacing: -.4px; text-wrap: balance;
}
h1 { font-size: clamp(2.7rem, 7vw, 4.6rem); line-height: 1.04; }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.75rem); line-height: 1.12; }
h3 { font-size: 1.45rem; line-height: 1.2; letter-spacing: -.2px; }
.accent {
    background: linear-gradient(90deg, var(--orange), var(--orange-2));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; margin-top: 22px; color: var(--text-3); max-width: 34em; }
.sub { font-size: 1.15rem; color: var(--text-3); margin-top: 12px; max-width: 40em; }
.big { font-size: 1.25rem; line-height: 1.55; margin-top: 18px; }
.fine { font-size: .95rem; color: var(--text-4); margin-top: 14px; }
.mono { font-family: var(--mono); }

/* ---------------------------------------------------------- buttons --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 24px; border-radius: 999px;
    background: linear-gradient(135deg, var(--orange-2), var(--orange));
    color: var(--on-orange); font-weight: 700; font-size: 1.02rem;
    border: 1.5px solid transparent;
    box-shadow: 0 8px 28px rgba(252, 140, 3, .28);
    transition: transform .15s ease, box-shadow .15s ease;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 12px 34px rgba(252, 140, 3, .36); }
.btn.ghost {
    background: rgba(255, 255, 255, .05); color: var(--text);
    border-color: var(--card-border-strong); box-shadow: none;
}
.btn.ghost:hover { background: rgba(255, 255, 255, .09); box-shadow: none; }
.btn.small { padding: 9px 16px; font-size: .92rem; }
.install-pair { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.install-pair.center { justify-content: center; }
/* site.js moves the visitor's own browser first; the other stays one step away. */
.install-pair .btn.secondary { order: 2; }

.link-arrow { font-weight: 700; display: inline-block; margin-top: 18px; }
.link-arrow::after { content: " \2192"; }

/* ----------------------------------------------------------- header --- */
.top {
    position: sticky; top: 0; z-index: 20;
    background: rgba(19, 17, 24, .82);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.top-row { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; }
.brand:hover { text-decoration: none; }
.brand-icon { width: 34px; height: 34px; border-radius: 9px; }
.brand-word { width: auto; height: 17px; }
.nav { display: flex; gap: 22px; margin-left: 8px; }
.nav a { color: var(--text-3); font-weight: 600; font-size: .98rem; }
.nav a:hover { color: var(--text); text-decoration: none; }
.top-cta { margin-left: auto; margin-top: 0; gap: 8px; }
.top-cta .btn.ghost { display: none; }
@media (max-width: 860px) {
    .nav { display: none; }
    .top-row { gap: 14px; }
}

/* -------------------------------------------------------------- hero --- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 96px); }
.glow {
    position: absolute; border-radius: 50%; pointer-events: none;
    width: 720px; height: 720px;
}
.glow.a { top: -340px; left: -260px; background: radial-gradient(closest-side, rgba(252, 140, 3, .17), transparent); }
.glow.b { bottom: -380px; right: -240px; background: radial-gradient(closest-side, rgba(120, 80, 255, .11), transparent); }
.hero-grid {
    position: relative; display: grid; gap: 56px; align-items: center;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; gap: 44px; } }
.hero-copy .install-pair { margin-top: 34px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip {
    padding: 8px 15px; border-radius: 999px; font-size: .95rem; font-weight: 600; color: #e8e4dc;
    background: rgba(255, 255, 255, .05); border: 1.5px solid rgba(255, 255, 255, .13);
}
.chip b { color: var(--orange-2); font-weight: 700; }

/* -------------------------------------------------- the tab mockups --- */
/* Same proportions as promo.css, scaled to a page: the width is the column's. */
.tabstrip { display: flex; flex-direction: column; gap: 12px; }
.btab {
    display: flex; align-items: center; gap: 12px; border-radius: var(--radius);
    padding: 13px 17px; font-size: 1rem; color: #dedbd3; width: 100%;
    background: rgba(255, 255, 255, .05); border: 1.5px solid rgba(255, 255, 255, .10);
    min-height: 50px;
}
.btab.calm {
    background: rgba(255, 255, 255, .075); border-color: rgba(252, 140, 3, .35);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
}
.t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fav {
    position: relative; display: inline-block; flex: none;
    width: 21px; height: 21px; border-radius: 5px;
}
/* The SITE's own notification dot: the thing the extension makes go away. */
.fav.badged::after {
    content: ""; position: absolute; top: -4px; right: -4px; width: 10px; height: 10px;
    border-radius: 50%; background: #ff5f52; border: 2px solid #201f24;
}
/* The MARKER: drawn the way TTFavicon composes it over a held icon. */
.fav.mk { overflow: hidden; }
.fav.mk::before { content: ""; position: absolute; inset: 0; }
.fav.band::before   { top: auto; height: 32%; background: var(--mk); }
.fav.corner::before { left: 50%; bottom: 50%; background: var(--mk); clip-path: polygon(0 0, 100% 0, 100% 100%); }
.fav.dot { overflow: visible; }
.fav.dot::before {
    inset: auto -2px -2px auto; width: 11px; height: 11px; border-radius: 50%;
    background: var(--mk); box-shadow: 0 0 0 2px #201f24;
}
.fav.ring { overflow: visible; }
.fav.ring::before { inset: -3px; border-radius: 8px; background: none; border: 3px solid var(--mk); }

.tmk { font-weight: 800; color: var(--mk); margin-right: 7px; }
.envtag {
    margin-left: auto; flex: none;
    font-family: var(--display); font-size: .68rem; font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase; padding: 3px 10px; border-radius: 999px;
    color: var(--mk); border: 1px solid color-mix(in srgb, var(--mk) 60%, transparent);
}
.col-label {
    font-family: var(--display); font-size: .82rem; font-weight: 700; letter-spacing: 2px;
    color: var(--text-4); margin-bottom: 14px; text-transform: uppercase;
}
.col-label.after { color: var(--orange-2); }

/* The demo: one live strip, or two static ones. */
.hero-demo { position: relative; }
.demo-static { margin-top: 28px; }
.js .demo-static { display: none; }
@media (prefers-reduced-motion: reduce) {
    .js .demo-static { display: block; }
}
.demo-caption { margin-top: 18px; font-size: .95rem; color: var(--text-4); }

/* Before and after, side by side. */
.pairs { display: flex; flex-direction: column; gap: 12px; }
.pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.pair .btab { padding: 11px 14px; font-size: .95rem; }
.arrow { color: var(--orange); font-size: 1.4rem; font-weight: 800; text-shadow: 0 0 24px rgba(252, 140, 3, .5); }
@media (max-width: 480px) {
    .pair { grid-template-columns: 1fr; gap: 6px; }
    .arrow { display: none; }
}

/* The four marker shapes with their names. */
.mkrow { display: flex; gap: 26px; justify-content: center; align-items: flex-start; flex-wrap: wrap; margin-bottom: 26px; }
.mkitem { text-align: center; min-width: 70px; }
.mkitem .fav { width: 46px; height: 46px; border-radius: 12px; margin: 0 auto 10px; }
.mkitem .fav.dot::before { width: 20px; height: 20px; box-shadow: 0 0 0 3px var(--ground); }
.mkitem .fav.ring::before { inset: -5px; border-radius: 17px; border-width: 5px; }
.mkname { font-size: .95rem; font-weight: 700; color: #dedbd3; letter-spacing: .3px; }

/* A visual with no tab rows in it sits on a glass card, so the column keeps
   its weight next to the copy. */
.feature-visual .kbd-list, .feature-visual .langs {
    background: var(--card); border: 1.5px solid var(--card-border);
    border-radius: var(--radius-lg); padding: 26px 28px;
}
.feature-visual .langs { margin-top: 0; gap: 12px; }

/* Keyboard keys. */
.kbd-list { display: flex; flex-direction: column; gap: 16px; }
.kbd-list li { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.kbd { display: inline-flex; align-items: center; gap: 5px; }
.kbd i {
    font-style: normal; font-size: .9rem; font-weight: 700; color: #e8e4dc;
    background: rgba(255, 255, 255, .07); border: 1.5px solid rgba(255, 255, 255, .16);
    border-bottom-width: 3px; border-radius: 7px; padding: 5px 9px; min-width: 34px; text-align: center;
}
.kbd-what { color: var(--text-3); }

.langs .chip { font-weight: 600; }

/* ---------------------------------------------------------- sections --- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.alt { background: var(--ground-alt); border-top: 1px solid rgba(255, 255, 255, .05); border-bottom: 1px solid rgba(255, 255, 255, .05); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 6vw, 72px); }
.section-head .sub { margin-left: auto; margin-right: auto; }

/* One feature: copy on one side, a mockup on the other, sides alternating. */
.feature {
    display: grid; gap: clamp(28px, 5vw, 64px); align-items: center;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding: clamp(28px, 4vw, 44px) 0;
    border-top: 1px solid rgba(255, 255, 255, .06);
}
.feature:first-of-type { border-top: 0; }
.feature:nth-of-type(even) .feature-copy { order: 2; }
.feature-copy ul { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.feature-copy li { position: relative; padding-left: 22px; }
.feature-copy li::before {
    content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 9px;
    border-radius: 3px; background: var(--orange);
}
.feature-visual { max-width: 480px; width: 100%; justify-self: center; }
@media (max-width: 820px) {
    .feature { grid-template-columns: 1fr; }
    .feature:nth-of-type(even) .feature-copy { order: 0; }
    .feature-visual { justify-self: start; }
}

/* ---------------------------------------------------------------- pro --- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan {
    background: var(--card); border: 1.5px solid var(--card-border);
    border-radius: var(--radius-lg); padding: 30px 30px 28px;
}
.plan.pro { border-color: rgba(252, 140, 3, .45); box-shadow: 0 0 60px rgba(252, 140, 3, .10); }
.plan-name {
    font-family: var(--display); font-weight: 700; font-size: 1.6rem; color: var(--text);
    display: flex; align-items: center; gap: 10px;
}
.pro-pill {
    font-family: var(--display); font-size: .62rem; font-weight: 700; letter-spacing: 1px;
    color: var(--on-orange); background: var(--orange); border-radius: 5px; padding: 3px 7px;
}
.plan-line { color: var(--text-3); margin-top: 6px; }
.ticks { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before {
    content: ""; position: absolute; left: 0; top: .38em; width: 16px; height: 16px; border-radius: 50%;
    background: rgba(252, 140, 3, .16);
}
.ticks li::after {
    content: ""; position: absolute; left: 5px; top: calc(.38em + 3px); width: 5px; height: 8px;
    border: solid var(--orange-2); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.plan-how { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .08); color: var(--text-3); font-size: .98rem; }
.plan-note { margin: 26px auto 0; max-width: 760px; text-align: center; color: var(--text-4); font-size: .95rem; }

/* ---------------------------------------------------------------- faq --- */
.faq { margin-top: 28px; border-top: 1px solid rgba(255, 255, 255, .08); }
.faq details { border-bottom: 1px solid rgba(255, 255, 255, .08); }
.faq summary {
    cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative;
    font-weight: 700; color: var(--text); font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px;
    border: solid var(--orange-2); border-width: 0 2px 2px 0;
    transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { padding: 0 0 20px; color: var(--text-2); max-width: 62ch; }

/* ---------------------------------------------------------------- cta --- */
.cta { position: relative; overflow: hidden; }
.cta .glow.a { top: -420px; left: 50%; transform: translateX(-50%); }
.cta .wrap { position: relative; }
.cta-icon { margin: 0 auto 22px; border-radius: 18px; box-shadow: 0 10px 40px rgba(252, 140, 3, .35); }

/* ------------------------------------------------------------- footer --- */
.foot { border-top: 1px solid rgba(255, 255, 255, .07); padding: 40px 0 48px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; }
.foot-brand img:first-child { border-radius: 8px; }
.foot-brand .brand-word { height: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }
.foot-links a { color: var(--text-3); font-weight: 600; font-size: .95rem; }
.foot-links a:hover { color: var(--text); }
.foot-fine { width: 100%; color: var(--text-4); font-size: .85rem; }
@media (max-width: 700px) { .foot-links { margin-left: 0; } }

/* -------------------------------------------------------------- prose --- */
/* The privacy policy and the 404, generated by build-site.sh. */
.prose { max-width: var(--max-narrow); margin: 0 auto; padding: clamp(40px, 6vw, 72px) 24px 80px; }
.prose h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 10px; }
.prose .eyebrow {
    font-family: var(--display); font-weight: 700; font-size: .85rem; letter-spacing: 2px;
    text-transform: uppercase; color: var(--orange-2); margin: 0 0 10px;
}
.prose .eyebrow + h1 { margin-top: 0; }
.prose h2 { font-size: 1.5rem; margin-top: 44px; }
.prose h3 { font-size: 1.15rem; margin-top: 28px; }
.prose p, .prose ul { margin-top: 14px; }
.prose ul { padding-left: 22px; list-style: disc; }
.prose li { margin-top: 6px; }
.prose li::marker { color: var(--orange); }
.prose strong { color: var(--text); }
.prose a { overflow-wrap: anywhere; }
.prose .back { display: inline-block; margin-bottom: 26px; font-weight: 700; }
.prose .back::before { content: "\2190  "; }
