/* смэш — landing site layout. Soft, paper-like, generous whitespace. */

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
}
body { display: flex; flex-direction: column; min-height: 100vh; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ---- container --------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---- navbar ------------------------------------------------------------ */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: var(--chrome);
  border-bottom: 1px solid var(--separator);
}
.nav-inner {
  display: flex; align-items: center; gap: 20px;
  height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
}
.brand-text {
  display: flex; flex-direction: column; line-height: 1;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 19px; font-weight: 800; letter-spacing: -0.4px;
  color: var(--text);
}
.brand-sub {
  margin-top: 3px;
  font-size: 11.5px; font-weight: 600; color: var(--secondary);
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex; align-items: center; gap: 4px;
  margin-left: 32px;
}
.nav-link {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 14px; font-weight: 600; color: var(--secondary);
  transition: background .18s var(--ease), color .18s var(--ease);
}
.nav-link:hover { background: var(--hover); color: var(--text); }
.nav-link.active {
  background: var(--accent-soft);
  color: var(--accent);
}
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: var(--r-pill);
  background: transparent; border: 1px solid transparent;
  color: var(--secondary); cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.icon-btn:hover { background: var(--hover); color: var(--text); border-color: var(--separator); }

/* ---- hamburger / mobile menu ----------------------------------------- */
.nav-toggle {
  display: none;
  position: relative;
  width: 40px; height: 40px;
  padding: 0;
  border-radius: var(--r-pill);
  background: transparent; border: 1px solid transparent;
  color: var(--text); cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease);
}
.nav-toggle:hover { background: var(--hover); border-color: var(--separator); }
.nav-toggle-bars {
  position: absolute; left: 50%; top: 50%;
  width: 18px; height: 12px;
  transform: translate(-50%, -50%);
}
.nav-toggle-bars i {
  position: absolute; left: 0; right: 0;
  height: 2px; border-radius: 2px;
  background: currentColor;
  transition: transform .22s var(--ease), opacity .18s var(--ease), top .22s var(--ease);
}
.nav-toggle-bars i:nth-child(1) { top: 0; }
.nav-toggle-bars i:nth-child(2) { top: 5px; }
.nav-toggle-bars i:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(1) {
  top: 5px; transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(2) {
  opacity: 0; transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(3) {
  top: 5px; transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed; left: 0; right: 0;
  top: 68px;
  bottom: 0;
  z-index: 49;
  display: none;
  flex-direction: column;
  padding: 14px 22px 28px;
  background: var(--bg);
  border-top: 1px solid var(--separator);
  overflow-y: auto;
}
.mobile-menu[data-open="true"] { display: flex; }
.mobile-menu .nav-link {
  display: flex; align-items: center;
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-size: 17px;
  color: var(--text);
}
.mobile-menu .nav-link.active {
  background: var(--accent-soft);
  color: var(--accent);
}
.mobile-menu .nav-link + .nav-link { margin-top: 2px; }
.mobile-menu .mobile-cta {
  margin-top: 18px;
  width: 100%;
}
body.menu-open { overflow: hidden; }

/* ---- buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px;
  border-radius: var(--r-pill);
  font-size: 14.5px; font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s var(--ease), background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
}
.btn-primary {
  background: var(--accent); color: var(--on-accent);
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { background: var(--accent-press); transform: translateY(1px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--hover); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 13.5px; }

/* ---- main / footer skeleton ------------------------------------------- */
main { flex: 1 0 auto; }
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }

/* ---- hero / two-column with reserved GIF space ------------------------ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split-text { max-width: 560px; }

/* Chrome-extension marker — recognisable logo, no pill, no pulsing dot. */
.chrome-badge {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 24px;
  font-size: 13.5px; font-weight: 700;
  color: var(--text); letter-spacing: 0.01em;
}
.chrome-badge svg { width: 21px; height: 21px; }
.chrome-badge .sep {
  width: 1px; height: 13px; background: var(--border-strong);
}
.chrome-badge .muted { color: var(--tertiary); font-weight: 600; }

/* Editorial overline — quiet, deliberate, not a badge. */
.overline {
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 22px;
  font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--accent);
}
.overline::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: var(--accent); opacity: 0.85;
}
h1.display {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.05;
  margin: 0 0 22px;
}
.display em {
  font-style: normal;
  color: var(--accent);
}
.lede {
  font-size: 18px; color: var(--secondary);
  margin: 0 0 32px;
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.meta-row {
  display: flex; gap: 22px; flex-wrap: wrap;
  margin-top: 28px;
  font-size: 13px; color: var(--tertiary);
}
.meta-row span { display: inline-flex; align-items: center; gap: 6px; }

/* ---- home hero (stacked: copy, then wide browser video) --------------- */
.hero { padding-bottom: 56px; }
.hero-copy { max-width: 690px; }
.hero-media { margin-top: 52px; }

/* Soft ambient wash behind the hero video so it feels embedded, not pasted */
.hero-media-wrap { position: relative; }
.hero-media-wrap::before {
  content: ""; position: absolute; z-index: 0;
  left: 50%; top: 8%; transform: translateX(-50%);
  width: 86%; height: 90%;
  background: radial-gradient(60% 60% at 50% 40%, var(--accent-soft-strong), transparent 70%);
  filter: blur(46px); opacity: 0.8; pointer-events: none;
}
.hero-media-wrap > .browser { position: relative; z-index: 1; }

/* ---- browser-framed media (the wide journal video) ------------------- */
.browser {
  border-radius: var(--r-2xl);
  background: var(--card);
  border: 1px solid var(--separator);
  box-shadow: var(--shadow-card), 0 50px 90px -50px rgba(40, 33, 20, 0.4);
  overflow: hidden;
}
.browser-bar {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--separator);
}
.browser-dots { display: inline-flex; gap: 8px; justify-self: start; }
.browser-dots i { width: 11px; height: 11px; border-radius: 50%; }
.browser-dots i:nth-child(1) { background: #f0655a; }
.browser-dots i:nth-child(2) { background: #f2bd42; }
.browser-dots i:nth-child(3) { background: #54c25a; }
.browser-url {
  justify-self: center;
  display: inline-flex; align-items: center; gap: 8px;
  min-width: 200px; max-width: 360px;
  padding: 7px 18px;
  border-radius: var(--r-pill);
  background: var(--bg); border: 1px solid var(--separator);
  color: var(--tertiary); font-size: 12.5px; font-weight: 600;
}
.browser-url svg { width: 13px; height: 13px; opacity: 0.75; }
.browser video, .browser img { display: block; width: 100%; height: auto; }

/* ---- portrait device frame (the popup video) ------------------------- */
.device {
  position: relative; z-index: 1;
  width: 100%; max-width: 340px; margin: 0 auto;
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--separator);
  box-shadow: var(--shadow-card), 0 44px 80px -44px rgba(40, 33, 20, 0.42);
}
.device video { display: block; width: 100%; height: auto; }
.device-wrap { position: relative; display: grid; place-items: center; }
.device-wrap::before {
  content: ""; position: absolute; inset: 6% 12%;
  background: radial-gradient(60% 60% at 50% 45%, var(--accent-soft-strong), transparent 70%);
  filter: blur(44px); opacity: 0.85; pointer-events: none;
}

/* Gentle float — only when motion is welcome */
@media (prefers-reduced-motion: no-preference) {
  .float { animation: floaty 7s var(--ease) infinite; }
  @keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
  }
}

@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-grid; }
  .nav-right .btn { display: none; }
  .hero-media { margin-top: 40px; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .nav-inner { height: 60px; gap: 12px; }
  .mobile-menu { top: 60px; }
  .brandmark { width: 30px; height: 30px; font-size: 16px; }
  .brand-name { font-size: 17px; }
  .section { padding: 44px 0; }
  .hero { padding-bottom: 36px; }
  .hero-media { margin-top: 28px; }
  h1.display { font-size: clamp(30px, 8.6vw, 38px); letter-spacing: -0.8px; }
  .lede { font-size: 16px; margin-bottom: 24px; }
  .meta-row { gap: 10px 16px; margin-top: 22px; }
  .cta-row .btn { flex: 1 1 auto; }
  .btn { height: 46px; padding: 0 18px; }
  .browser-bar { padding: 9px 12px; }
  .browser-url {
    min-width: 0; max-width: 100%;
    padding: 6px 12px; font-size: 11.5px;
  }
  .browser-dots i { width: 9px; height: 9px; }
  .cards-3 { gap: 14px; }
  .card { padding: 18px; }
  .card-media { margin: -18px -18px 14px; }
  .section-head { margin-bottom: 32px; }
  .section-head h2 { font-size: clamp(24px, 6.6vw, 30px); }
  .tier { padding: 22px; }
  .tier-price { font-size: 34px; }
  .step { grid-template-columns: 38px 1fr; gap: 12px; }
  .step-num { width: 38px; height: 38px; font-size: 15px; }
  .footer { padding: 28px 0; margin-top: 40px; }
  .footer-inner { justify-content: center; text-align: center; }
  .footer-brand { width: 100%; justify-content: center; }
  .footer-links { width: 100%; justify-content: center; }
  .install-hero { padding: 56px 0 28px; }
  .install-hero p { font-size: 16px; }
  .legal-wrap { padding: 44px 18px 64px; }
}

@media (max-width: 560px) {
  /* keep the sticky header compact — the longer tagline would wrap */
  .brand-sub { display: none; }
  .chrome-badge { flex-wrap: wrap; gap: 8px 10px; }
  .chrome-badge .sep { display: none; }
}

/* ---- section heading -------------------------------------------------- */
.section-head {
  text-align: center; margin-bottom: 48px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 800; letter-spacing: -0.6px;
  margin: 0 0 12px;
}
.section-head p {
  margin: 0 auto; max-width: 560px;
  color: var(--secondary); font-size: 16px;
}

/* ---- feature cards ---------------------------------------------------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--card);
  border: 1px solid var(--separator);
  border-radius: var(--r-xl);
  padding: 22px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card), 0 26px 48px -26px rgba(40, 33, 20, 0.32);
}
/* video sits flush to the top edge of the card */
.card-media {
  position: relative;
  margin: -22px -22px 18px;
  aspect-ratio: 7 / 5;
  background: var(--surface-2);
  border-bottom: 1px solid var(--separator);
  overflow: hidden;
}
.card-media video {
  display: block; width: 100%; height: 100%; object-fit: cover;
}
/* hover-to-play hint pill */
.play-hint {
  position: absolute; z-index: 2;
  left: 50%; bottom: 12px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px 6px 10px; border-radius: 999px;
  background: rgba(20, 18, 14, 0.62);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: #fff; font-size: 12.5px; font-weight: 600; line-height: 1;
  white-space: nowrap; pointer-events: none;
  box-shadow: 0 4px 14px -6px rgba(0,0,0,0.45);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  animation: hint-bob 2.2s var(--ease) infinite;
}
.play-hint svg { width: 13px; height: 13px; }
@keyframes hint-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-3px); }
}
/* hide the hint once the clip is playing on hover */
.card-media--hover.is-playing .play-hint {
  opacity: 0; transform: translateX(-50%) translateY(6px); animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .play-hint { animation: none; }
}
.card-num {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: var(--r-sm);
  background: var(--accent); color: var(--on-accent);
  font-family: var(--font-display);
  font-weight: 800; font-size: 13px; line-height: 1;
  box-shadow: var(--shadow-accent);
}
.card-icon {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 16px;
}
.card h3 {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 700; margin: 0 0 8px;
  letter-spacing: -0.2px;
}
.card p { margin: 0; color: var(--secondary); font-size: 14.5px; }

@media (max-width: 880px) {
  .cards-3 { grid-template-columns: 1fr; }
}

/* ---- "how it works" steps -------------------------------------------- */
.steps { display: flex; flex-direction: column; gap: 18px; }
.step {
  display: grid; grid-template-columns: 44px 1fr; gap: 16px;
  align-items: start;
}
.step-num {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 800; font-size: 17px;
  letter-spacing: -0.3px;
}
.step h3 {
  margin: 4px 0 6px;
  font-family: var(--font-display);
  font-size: 17px; font-weight: 700; letter-spacing: -0.2px;
}
.step p { margin: 0; color: var(--secondary); font-size: 14.5px; }

/* ---- pricing ---------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
.tier {
  background: var(--card);
  border: 1px solid var(--separator);
  border-radius: var(--r-2xl);
  padding: 28px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-card);
  position: relative;
}
.tier.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-card), 0 0 0 1px var(--accent) inset;
}
.tier-badge {
  position: absolute; top: -10px; left: 24px;
  background: var(--accent); color: var(--on-accent);
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em;
  padding: 4px 10px; border-radius: var(--r-pill);
  text-transform: uppercase;
}
.tier-name {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 700;
  color: var(--secondary);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.tier-price {
  font-family: var(--font-display);
  font-size: 40px; font-weight: 800;
  margin: 14px 0 2px;
  letter-spacing: -1px;
  line-height: 1;
}
.tier-price small {
  font-size: 14px; font-weight: 600;
  color: var(--secondary);
  letter-spacing: 0;
}
.tier-desc {
  color: var(--secondary);
  font-size: 14px;
  margin: 0 0 22px;
}
.tier ul {
  list-style: none; padding: 0; margin: 0 0 28px;
  display: flex; flex-direction: column; gap: 10px;
}
.tier li {
  display: flex; gap: 10px; align-items: start;
  font-size: 14.5px; color: var(--text);
}
.tier li svg { color: var(--accent); margin-top: 3px; }
.tier .btn { margin-top: auto; width: 100%; }

@media (max-width: 880px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ---- footer ----------------------------------------------------------- */
.footer {
  flex-shrink: 0;
  border-top: 1px solid var(--separator);
  padding: 32px 0;
  margin-top: 64px;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--secondary); font-size: 13px;
}
.footer-brand .brandmark { width: 26px; height: 26px; font-size: 14px; }
.footer-links { display: flex; gap: 6px; flex-wrap: wrap; }
.footer-link {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 13px; font-weight: 600;
  color: var(--secondary);
  transition: background .18s var(--ease), color .18s var(--ease);
}
.footer-link:hover { background: var(--hover); color: var(--text); }
.footer-copy {
  width: 100%;
  text-align: center;
  margin-top: 14px;
  color: var(--tertiary);
  font-size: 12.5px;
}

/* ---- legal pages ------------------------------------------------------ */
.legal-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 28px 96px;
}
.legal-wrap h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800; letter-spacing: -0.6px;
  margin: 0 0 10px;
}
.legal-wrap .muted { color: var(--secondary); font-size: 15px; }
.legal-meta { color: var(--tertiary); font-size: 13px; margin: 0 0 18px; }
.legal-lede {
  color: var(--secondary); font-size: 16px; line-height: 1.65;
  margin: 0 0 4px;
}

.legal-callout {
  margin: 26px 0 4px;
  padding: 20px 22px;
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-lg);
  background: var(--accent-soft);
}
.legal-callout p { margin: 0; color: var(--secondary); font-size: 14.5px; line-height: 1.65; }
.legal-callout p + p { margin-top: 10px; }
.legal-callout strong { color: var(--text); font-weight: 700; }

.legal-body { margin-top: 8px; }
.legal-body h2 {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 800; letter-spacing: -0.3px;
  margin: 38px 0 12px; scroll-margin-top: 84px;
}
.legal-body h3 { font-size: 15.5px; font-weight: 700; margin: 22px 0 6px; }
.legal-body p { color: var(--secondary); font-size: 15px; line-height: 1.72; margin: 0 0 14px; }
.legal-body ul { margin: 0 0 14px; padding-left: 22px; }
.legal-body li { color: var(--secondary); font-size: 15px; line-height: 1.7; margin-bottom: 7px; }
.legal-body li::marker { color: var(--tertiary); }
.legal-body strong { color: var(--text); font-weight: 700; }
.legal-body a { color: var(--accent); text-decoration: none; }
.legal-body a:hover { text-decoration: underline; }
.legal-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em; padding: 1px 6px;
  background: var(--input-bg); border-radius: var(--r-xs);
  color: var(--text);
}
.legal-body hr { border: 0; border-top: 1px solid var(--separator); margin: 36px 0; }

/* ---- install page ----------------------------------------------------- */
.install-hero {
  text-align: center;
  padding: 80px 0 40px;
}
.install-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 48px);
  font-weight: 800; letter-spacing: -1px;
  margin: 0 0 16px;
}
.install-hero p {
  color: var(--secondary); font-size: 17px;
  max-width: 520px; margin: 0 auto 32px;
}
.install-steps {
  max-width: 640px; margin: 32px auto 0;
  display: flex; flex-direction: column; gap: 14px;
}
