/* Duo New Tab © 2026 DevRoshdi. All rights reserved. See LICENSE.txt. */
/*
 * The frame every page of the site shares (website/_partials): colours, type, buttons, the sticky
 * header with "Add to Chrome", and the footer. Only classes, no page layout, so a page with its
 * own design (the privacy policy) can use it too; site.css lays out the About and guide pages.
 */

@font-face { font-family: "Duo Inter"; font-weight: 100 900; font-display: swap; src: url("/fonts/inter-latin-opsz-normal.woff2") format("woff2"); }

:root {
  color-scheme: light dark;
  --font: "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Duo Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --bg: #f5f5f7; --bg-2: #ffffff; --card: #ffffff; --text: #1d1d1f; --muted: #6e6e73; --line: rgba(60, 60, 67, 0.14);
  --accent: #0071e3; --accent-2: #8a3ffc; --on-accent: #fff;
  --glass: rgba(255, 255, 255, 0.72); --glass-line: rgba(60, 60, 67, 0.12);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(30, 20, 80, 0.08);
  --radius: 24px;
  --brand: radial-gradient(circle at 10% 15%, #3e7bfa 0%, rgba(62, 123, 250, 0) 48%), radial-gradient(circle at 92% 105%, #e0559e 0%, rgba(224, 85, 158, 0) 50%), linear-gradient(150deg, #141a42 0%, #2f2370 52%, #5d2a85 100%);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000; --bg-2: #0d0d12; --card: #16161c; --text: #f5f5f7; --muted: #a1a1a6; --line: rgba(255, 255, 255, 0.12);
    --accent: #2997ff; --accent-2: #b78cff;
    --glass: rgba(22, 22, 28, 0.72); --glass-line: rgba(255, 255, 255, 0.1);
    --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 40px rgba(0, 0, 0, 0.4);
  }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 44px; padding: 11px 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 16px/1.2 var(--font); letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* A blue dark enough for white text to read (WCAG AA, 4.5:1) in both appearances. */
.btn-primary { background: #0071e3; color: #fff; box-shadow: 0 8px 24px rgba(0, 113, 227, 0.35); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); border-color: color-mix(in srgb, var(--text) 14%, transparent); }
.btn-ghost:hover { background: color-mix(in srgb, var(--text) 13%, transparent); }
/* On the brand gradient: always light text. */
.on-brand .btn-ghost { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.on-brand .btn-ghost:hover { background: rgba(255, 255, 255, 0.22); }
.btn-sm { min-height: 36px; padding: 7px 16px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 15px 30px; font-size: 18px; }

/* Chrome's colours in a small round badge, for "Add to Chrome". */
.chrome-dot {
  flex: none; width: 1.15em; height: 1.15em; border-radius: 50%;
  background:
    radial-gradient(circle, #4285f4 0 28%, #fff 29% 40%, transparent 41%),
    conic-gradient(from -60deg, #ea4335 0 120deg, #34a853 0 240deg, #fbbc04 0);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.85);
}
/* Edge's blue and green instead, for "Add to Edge". */
.is-edge .chrome-dot {
  background: conic-gradient(from 200deg, #0c59a4 0 40%, #1b9de2 0 70%, #35c27a 0 90%, #0c59a4 0);
}
/* No browser's badge on "Get the extension" (Safari, phones), which leads to the download page. */
.is-other .chrome-dot { display: none; }
/* Firefox's orange and purple, for "Add to Firefox". */
.is-firefox .chrome-dot {
  background: radial-gradient(circle at 60% 40%, #ffbd4f 0 22%, transparent 23%), conic-gradient(from 160deg, #ff3750 0 25%, #ff7139 0 55%, #ffbd4f 0 70%, #9059ff 0 100%);
}

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

/* A link to #section scrolls its heading clear of the sticky header. */
html { scroll-padding-top: 76px; }
/*
 * Going to a #section (frame.js): every section is laid out first. Sections below the first screen
 * are otherwise laid out only as they come near (content-visibility, site.css), so the page grew
 * while it scrolled and the scroll ended short of the section, or at the top of the page.
 */
html.laid-out .section, html.laid-out .strip, html.laid-out .site-footer { content-visibility: visible; }
/* The section gone to takes focus (so Tab goes on from there) without a ring round all of it. */
[tabindex="-1"]:focus { outline: none; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass); border-bottom: 0.5px solid var(--glass-line);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  font-family: var(--font); color: var(--text);
}
.site-header-in { max-width: 1180px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 14px; }
.site-brand { display: flex; align-items: center; gap: 10px; margin-right: auto; color: var(--text); font-weight: 650; font-size: 17px; letter-spacing: -0.015em; text-decoration: none; }
.site-brand:hover { text-decoration: none; }
.site-brand img { width: 30px; height: 30px; border-radius: 7px; }
.site-nav { display: flex; gap: 4px; }
.site-nav a { padding: 7px 12px; border-radius: 999px; color: var(--muted); font-size: 14.5px; text-decoration: none; transition: color 0.15s ease, background-color 0.15s ease; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); background: color-mix(in srgb, var(--text) 7%, transparent); text-decoration: none; }
.site-nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* The menu button: only where the links do not fit in the header (frame.js opens and closes it). */
.site-menu-btn {
  display: none; flex: none; place-items: center; width: 40px; height: 40px; margin-right: -6px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--text); cursor: pointer;
}
.site-menu-btn:hover { background: color-mix(in srgb, var(--text) 7%, transparent); }
.site-menu-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.site-menu-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; overflow: visible; }
.site-menu-btn path { transition: transform 0.25s cubic-bezier(0.3, 1.3, 0.6, 1); transform-origin: 12px 12px; }
.site-header.menu-open .site-menu-btn .l1 { transform: translateY(4px) rotate(45deg); }
.site-header.menu-open .site-menu-btn .l2 { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 900px) {
  .site-menu-btn { display: grid; }
  /* The same links, as a panel under the header. */
  .site-nav {
    position: absolute; top: calc(100% + 8px); right: 12px; left: auto; z-index: 51;
    display: flex; flex-direction: column; gap: 2px; min-width: 220px; max-width: calc(100vw - 24px); padding: 8px;
    border-radius: 22px; background: var(--card); border: 0.5px solid var(--glass-line); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
    opacity: 0; visibility: hidden; translate: 0 -6px; scale: 0.97; transform-origin: top right;
    transition: opacity 0.18s ease, translate 0.25s cubic-bezier(0.3, 1.3, 0.6, 1), scale 0.25s cubic-bezier(0.3, 1.3, 0.6, 1), visibility 0s linear 0.25s;
  }
  .site-header.menu-open .site-nav { opacity: 1; visibility: visible; translate: 0 0; scale: 1; transition-delay: 0s; }
  .site-nav a { padding: 12px 16px; border-radius: 14px; font-size: 17px; color: var(--text); }
}
@media (max-width: 520px) {
  .site-header .btn-open { display: none; }
  .site-brand span { display: none; }
}

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

.site-footer { content-visibility: auto; contain-intrinsic-size: auto 420px; font-family: var(--font); color: var(--muted); background: var(--bg-2); border-top: 0.5px solid var(--line); font-size: 14.5px; line-height: 1.6; }
.site-footer-in { max-width: 1180px; margin: 0 auto; padding: 48px 16px 28px; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.site-footer h2 { margin: 0 0 10px; color: var(--text); font-size: 14px; font-weight: 650; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.site-footer a.btn-primary, .site-footer a.btn-primary:hover { color: #fff; text-decoration: none; }
.site-footer .foot-brand p { margin: 10px 0 18px; max-width: 32ch; }
.site-footer .foot-legal { grid-column: 1 / -1; padding-top: 22px; border-top: 0.5px solid var(--line); font-size: 12.5px; }
.site-footer .foot-legal p { margin: 0 0 4px; }
@media (max-width: 760px) { .site-footer-in { grid-template-columns: 1fr 1fr; } .site-footer .foot-brand { grid-column: 1 / -1; } }

/* Skip link: hidden until focused with the keyboard. */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--accent); color: var(--on-accent); font: 600 15px var(--font); text-decoration: none; }
.skip:focus { top: 12px; }
