/* Google Sheets AI — landing page.
   Design: Figma mzWiSOHguVbN1PodrxiPrq, frames «Landing — Desktop» (1440) and «Landing — Mobile» (375).
   Colors, shadows and the result-panel styles are the same as in extension/sidepanel.css. */

@font-face {
  font-family: 'Inter';
  font-weight: 400 600;
  font-display: swap;
  src: url(assets/fonts/Inter.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-weight: 400 600;
  font-display: swap;
  src: url(assets/fonts/Inter-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-weight: 100 800;
  font-display: swap;
  src: url(assets/fonts/JetBrainsMono.woff2) format('woff2');
}

:root {
  --ink: #0f1722;
  --muted: #5d6879;
  --grey-bg: #f0f5f3;
  --grey-bg-light: #f8faf9;
  --grey-border: #dfeae6;
  --line: #e7ecea;
  --accent: #037a6f;
  --accent-glow: #019d7a;
  --accent-glow-0: rgba(1, 157, 122, 0);
  --focus: #029176;
  --t-blue: #0e5aa1;
  --t-green: #0e6055;
  --t-orange: #b65e04;
  --edge: rgba(0, 0, 0, 0.25);
  --shadow: 0 0 20px 12px rgba(135, 135, 135, 0.08), 0 0 1px 0 var(--edge);
  --shadow-input: 0 4px 20px rgba(15, 23, 34, 0.08), 0 0 1px 0 var(--edge);
  --shadow-window: 0 0 20px 12px rgba(135, 135, 135, 0.18), 0 0 1px 0 var(--edge);
  --accent-fill:
    radial-gradient(42.93% 83.18% at 75.5% 0%, var(--accent-glow) 0%, var(--accent-glow-0) 100%),
    radial-gradient(77.84% 72.55% at -5.5% 71.79%, var(--accent-glow) 0%, var(--accent-glow-0) 100%),
    var(--accent);

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: 120px;        /* minimum side padding; content is at most 1080 px wide (180 px margins on a 1440 screen) */
  --section: 80px;        /* vertical padding of each section: 80 + 80 between blocks */
  --title-gap: 48px;      /* section title → its cards */

  /* Motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --lift: 0 12px 32px rgba(15, 23, 34, 0.08), 0 0 1px 0 var(--edge);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  min-width: 320px;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: left; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }

.icon-16 { width: 16px; height: 16px; flex: none; }
.icon-18 { width: 18px; height: 18px; flex: none; }
.icon-20 { width: 20px; height: 20px; flex: none; }
.icon-22 { width: 22px; height: 22px; flex: none; }

.container {
  width: 100%;
  max-width: calc(1080px + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

h2 {
  font-size: 44px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 40px;
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
  transition: transform .15s, filter .15s;
}
.btn { transition: transform .2s var(--ease-out), filter .15s, box-shadow .2s var(--ease-out); }
.btn-primary { background: var(--accent-fill); color: #fff; }
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(3, 122, 111, 0.25); }
.btn:active { transform: scale(0.97); transition-duration: .08s; }
.btn-nav { padding: 10px 18px; }
.btn-lg { padding: 16px 30px 16px 28px; }
.btn-xs { padding: 8px 14px; font-size: 13px; line-height: 16px; }

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 8px 12px;
  border: 1px solid var(--grey-border);
  border-radius: 10px;
  background: #fff;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-align: left;
  transition: background .15s, transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.store-badge:hover { background: var(--grey-bg-light); transform: translateY(-1px); box-shadow: var(--shadow); }
.store-badge:active { transform: scale(0.98); }
.store-badge small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.store-badge__logo { width: 36px; height: 36px; }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 40px;
  height: 80px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; margin-right: auto; }
.brand img { border-radius: 7px; }
.brand--sm { font-size: 15px; gap: 8px; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--muted); transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.menu-btn {
  display: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  align-items: center; justify-content: center;
  background: #fff;
  box-shadow: var(--shadow);
}
.mobile-menu {
  position: absolute;
  z-index: 20;
  top: 64px; right: 20px; left: 20px;
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-input);
}
.mobile-menu a:not(.btn) { padding: 12px; font-size: 16px; font-weight: 500; }
.mobile-menu .btn { margin-top: 8px; padding: 14px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 48px; }
/* Light spreadsheet grid behind the hero, fading to the edges and to the bottom */
.hero-grid {
  --cell: 120px 36px;
  --grid-line: rgba(223, 234, 230, 0.5);   /* Grey-border at half strength — a quiet background */
  /* Visible in an ellipse around the headline, fading to the sides/bottom and softly from the top */
  --grid-mask: radial-gradient(ellipse 60% 55% at 50% 32%, #000 30%, transparent 100%);
  --grid-top: linear-gradient(to bottom, transparent 0, #000 200px);
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: var(--cell);
  background-position: center top;
  -webkit-mask-image: var(--grid-mask), var(--grid-top);
          mask-image: var(--grid-mask), var(--grid-top);
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
  pointer-events: none;
}
/* After load a soft green wave runs once along the cell borders: the same grid drawn in the
   accent color, visible only inside a moving diagonal band of the mask */
.hero-grid::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--accent) 1px, transparent 1px),
    linear-gradient(to bottom, var(--accent) 1px, transparent 1px);
  background-size: var(--cell);
  background-position: center top;
  -webkit-mask-image: linear-gradient(110deg, transparent 28%, #000 50%, transparent 72%);
          mask-image: linear-gradient(110deg, transparent 28%, #000 50%, transparent 72%);
  -webkit-mask-size: 300% 100%;
          mask-size: 300% 100%;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  opacity: 0;
  animation: grid-wave 2.6s cubic-bezier(0.4, 0, 0.3, 1) both;
}
@keyframes grid-wave {
  0%   { -webkit-mask-position: 75% 0; mask-position: 75% 0; opacity: .45; }
  88%  { opacity: .45; }
  100% { -webkit-mask-position: 0% 0; mask-position: 0% 0; opacity: 0; }
}
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px 8px 13px;
  border: 1px solid var(--grey-border);
  border-radius: 100px;
  background: #fff;
  font-size: 15px; font-weight: 500;
}
.eyebrow img { width: 20px; height: 20px; }
.hero h1 {
  margin-top: 24px;
  font-size: 56px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.hero-sub { margin-top: 24px; max-width: 600px; font-size: 17px; line-height: 1.5; color: var(--muted); }
.cta-row { display: flex; align-items: center; gap: 16px; margin-top: 24px; }
.desktop-note { display: none; }

/* The demo video contains a padded frame around the browser window; we crop that padding
   so only the window shows. Wide video: 1360×901, window 1280×821 at (40, 40). */
.video-window {
  --vw: 1360; --vh: 901; --ww: 1280; --wh: 821;
  position: relative;
  width: 100%;
  margin-top: 72px;
  aspect-ratio: var(--ww) / var(--wh);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-window);
}
.video-window.is-vertical { --vw: 696; --vh: 890; --ww: 616; --wh: 810; border-radius: 14px; }
.video-window video {
  position: absolute;
  top: 0; left: 0;
  width: calc(100% * var(--vw) / var(--ww));
  height: auto;
  transform: translate(calc(-40% * 100 / var(--vw)), calc(-40% * 100 / var(--vh)));
}

/* ---------- Highlights (3 cards under the hero) ---------- */
.highlights { padding-bottom: var(--section); }
.highlight-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.h-card {
  padding: 28px 26px;
  border: 1px solid var(--grey-border);
  border-radius: 20px;
  background: #fff;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s;
}
.h-card:hover { transform: translateY(-4px); box-shadow: var(--lift); border-color: transparent; }
.h-card img { transition: transform .4s var(--ease-out); }
.h-card:hover img { transform: scale(1.08) rotate(-4deg); }
.h-card img { width: 48px; height: 48px; margin-bottom: 52px; }
.h-card h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.h-card p { margin-top: 8px; color: var(--muted); line-height: 1.4; }

/* ---------- Generic section ---------- */
.section { padding: var(--section) 0; }
.card-grey {
  border: 1px solid var(--grey-border);
  background: var(--grey-bg-light);
}
.caption__label { font-size: 14px; font-weight: 500; color: var(--muted); }
.caption__text { margin-top: 8px; font-size: 17px; line-height: 1.5; letter-spacing: -0.005em; }
.caption--dark .caption__label { color: rgba(255, 255, 255, 0.72); }
.caption--dark .caption__text { color: #fff; }

/* ---------- Features ---------- */
.feature-cards { display: flex; flex-direction: column; gap: 20px; margin-top: var(--title-gap); }
.platforms {
  display: flex; align-items: center; gap: 32px;
  padding: 32px 40px;
  border-radius: 28px;
}
.platforms .caption { flex: 1; }
.platforms .caption__text { max-width: 430px; }
.platforms__logos { display: flex; align-items: center; gap: 14px; }
.logo-tile {
  display: grid; place-items: center;
  width: 72px; height: 72px;
  border-radius: 19px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease-out);
}
.platforms:hover .logo-tile { transform: translateY(-3px); }
.platforms:hover .logo-tile + .logo-tile { transform: translateY(3px); }
.logo-tile__sheets { width: 50px; height: 36px; }
.logo-tile__excel { width: 46px; height: 47px; }

.big-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.big-card {
  position: relative;
  min-height: 650px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: 40px;
  border-radius: 28px;
  overflow: hidden;
}
/* Green card: soft gradient with blurred color spots + grain, like ElevenLabs */
.big-card--green {
  color: #fff;
  /* Mesh: dark corner top-right, teal on the left, a muted olive glow spreading from the
     bottom-right through a soft mid tone — large, overlapping spots so there are no hard edges */
  background:
    radial-gradient(95% 80% at 100% 105%, rgba(176, 178, 92, 0.78) 0%, rgba(176, 178, 92, 0.35) 40%, rgba(176, 178, 92, 0) 75%),
    radial-gradient(85% 70% at 60% 70%, rgba(70, 128, 92, 0.65) 0%, rgba(70, 128, 92, 0) 80%),
    radial-gradient(75% 65% at 0% 40%, rgba(22, 122, 100, 0.85) 0%, rgba(22, 122, 100, 0) 80%),
    radial-gradient(80% 65% at 90% 0%, rgba(6, 44, 40, 0.95) 0%, rgba(6, 44, 40, 0) 75%),
    linear-gradient(160deg, #0a3833 0%, #11574a 45%, #3e7656 75%, #7d9150 100%);
}
.big-card--green::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.28;
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.big-card > * { position: relative; z-index: 1; }

.prompts { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.prompt {
  display: inline-flex; align-items: center;
  padding: 12px 20px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-size: 15px;
  letter-spacing: -0.005em;
}
.prompt--2 { margin-left: 56px; }
.prompt--3 { margin-left: 6px; }
.prompt--active { margin-left: 36px; padding: 10px 10px 10px 20px; background: #fff; }
.prompt .send {
  display: grid; place-items: center;
  width: 34px; height: 34px; margin-left: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}
.caret {
  display: inline-block;
  width: 1.5px; height: 1.15em;
  margin-left: 2px;
  background: currentColor;
  vertical-align: -0.2em;
  animation: blink 1.1s steps(1) infinite;
}
.prompt .caret { background: var(--ink); animation: none; }  /* static caret in the green card */
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .caret { animation: none; } }

/* Result panel — same styles as the extension's side panel */
.result-panel {
  align-self: center;
  width: 100%;
  max-width: 470px;
  margin-top: 8px;
  padding: 28px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
  font-size: 15px;
  line-height: 21px;
}
.result-title { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 12px; }
.assumption { margin: 0 0 12px; line-height: 150%; }
.formula-head {
  display: flex; align-items: center; justify-content: space-between;
  height: 40px; padding: 12px;
  border: 1px solid var(--grey-border);
  border-radius: 8px 8px 0 0;
  background: var(--grey-bg);
  font-size: 13px; font-weight: 500; line-height: 16px; letter-spacing: 0.1px;
  color: var(--muted);
}
.formula-body {
  padding: 11px 12px 12px;
  border: 1px solid var(--grey-border);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: var(--grey-bg-light);
}
.formula {
  display: block;
  font-family: var(--mono);
  font-size: 14px; font-weight: 500; line-height: 21px;
  color: var(--t-blue);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.t-blue { color: var(--t-blue); }
.t-green { color: var(--t-green); }
.t-orange { color: var(--t-orange); }
.explain { display: flex; flex-direction: column; gap: 12px; margin: 12px 0 0; padding: 0; list-style: none; }
.explain li { position: relative; padding-left: 21px; }
.explain li::before { content: "•"; position: absolute; left: 6px; top: 0; }
.explain li { cursor: default; }
/* Hovering a breakdown row highlights its part of the formula — same as the extension (sidepanel.css .formula .hl) */
.formula [data-part] { transition: color .15s, background-size .15s; }
.formula .hl {
  background: linear-gradient(#000, #000) 0 1px / 100% calc(100% - 2px) no-repeat;
  color: #fff;
}
.formula .hl * { color: inherit; }
/* Demo cursor that walks over the rows (script.js) */
.result-panel { position: relative; }
.result-cursor {
  position: absolute; left: 0; top: 0; z-index: 2;
  width: 20px; height: 20px;
  opacity: 0;
  pointer-events: none;
  transition: transform .7s var(--ease-out), opacity .3s;
}
.result-panel.is-demo .result-cursor { opacity: 1; }
.token {
  display: inline-block;
  height: 21px; padding: 0 8px;
  border-radius: 4px;
  background: var(--grey-bg);
  font-family: var(--mono); font-size: 12px; font-weight: 500; line-height: 21px;
  vertical-align: top;
  white-space: nowrap;
}

/* ---------- How it works ---------- */
.how-layout { display: grid; grid-template-columns: 1fr 540px; gap: 40px; align-items: start; }
.lead { margin-top: 24px; font-size: 17px; line-height: 1.55; color: var(--muted); }
.steps { margin-top: 64px; border-bottom: 1px solid var(--grey-border); }
.step { border-top: 1px solid var(--grey-border); }
.step__head {
  display: flex; align-items: baseline; gap: 14px;
  width: 100%;
  padding: 24px 0;
  font-size: 18px; letter-spacing: -0.01em;
  color: var(--muted);
  transition: color .15s;
}
.step__head:hover { color: var(--ink); }
/* Step number: plain text in front of the title, same size and color */
.step__num { flex: none; min-width: 14px; font-variant-numeric: tabular-nums; }
.step__head { transition: color .15s, padding .35s var(--ease-out); }
.step.is-open .step__head { color: var(--ink); font-weight: 500; padding-bottom: 10px; }
/* Smooth open/close: the body's single grid row animates from 0fr to 1fr */
.step__body, .qa__a {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .35s var(--ease-out), opacity .25s, padding .35s var(--ease-out);
}
.step__body > *, .qa__a > * { min-height: 0; overflow: hidden; }
.step__body { padding: 0 0 0 28px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.step.is-open .step__body { grid-template-rows: 1fr; opacity: 1; padding-bottom: 26px; }

/* Illustration: install-and-use demo (script.js). The scene is drawn at 492×452 and scaled
   to the block width; state classes on .illus (s-zoom, s-dialog, s-installed, s-bubble,
   s-panel, s-loading, s-result, s-copied) drive it. */
.illus { position: relative; padding: 0; }   /* no backdrop — just the browser window */
/* The scaled stage keeps its 492 px layout width — clip the overflow at the section edges
   (not at the window, so its shadow stays visible) */
.how { overflow-x: clip; }
.stage { position: absolute; left: 0; top: 0; }
.stage { position: relative; width: 492px; height: 452px; transform-origin: 0 0; font-size: 13px; }
.bw {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 34, 0.06), 0 2px 8px rgba(15, 23, 34, 0.04), 0 0 0 1px rgba(15, 23, 34, 0.06);
  overflow: hidden;
}
.bw__bar { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px; background: var(--grey-bg); }
.bw__dots { display: flex; gap: 5px; }
.bw__dots i { width: 9px; height: 9px; border-radius: 50%; background: #d5dfdb; }
.bw__url { flex: 1; min-width: 0; padding: 6px 12px; border-radius: 100px; background: #fff; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bw__ext { display: flex; align-items: center; gap: 10px; }
.bw__ours { width: 22px; height: 22px; border-radius: 6px; transform: scale(0); transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.bw__puzzle { width: 18px; height: 18px; color: #444746; }
.bw__body { position: relative; flex: 1; overflow: hidden; }

.store { position: absolute; inset: 0; padding: 18px 22px; transform-origin: 18% 30%; transition: transform 1s var(--ease-out), opacity .45s; }
.bw__url-text { transition: opacity .45s; }
.store__top { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.store__top b { font-weight: 500; color: var(--muted); }
.store__logo { width: 20px; height: 20px; }
.store__search { flex: 1; height: 26px; margin-left: 12px; border-radius: 100px; background: var(--grey-bg); }
.store__item { display: flex; gap: 14px; margin-top: 24px; }
.store__item img { width: 60px; height: 60px; border-radius: 14px; flex: none; }
.store__name { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.store__desc { margin-top: 4px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.store__actions { margin-top: 16px; margin-left: 74px; }
.store__add {
  display: inline-flex; padding: 9px 18px; border-radius: 100px;
  background: #0b57d0; color: #fff; font-size: 13px; font-weight: 500;
  transition: transform .12s, background .3s, color .3s, box-shadow .3s;
}
.store__add-b { display: none; }
.store__shots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.store__shots i { height: 140px; border-radius: 10px; border: 1px solid var(--grey-border); background: linear-gradient(var(--grey-bg-light), var(--grey-bg-light)) 12px 14px / 50% 10px no-repeat, linear-gradient(var(--grey-bg), var(--grey-bg)) 12px 34px / 80% 8px no-repeat, linear-gradient(var(--grey-bg), var(--grey-bg)) 12px 50px / 65% 8px no-repeat, #fff; }

.dialog {
  position: absolute; top: 12px; left: 50%; z-index: 3;
  width: 300px; padding: 16px;
  border-radius: 12px; background: #fff;
  box-shadow: var(--shadow-window);
  opacity: 0; transform: translate(-50%, -8px); pointer-events: none;
  transition: opacity .25s, transform .3s var(--ease-out);
}
.dialog__title { font-size: 14px; font-weight: 600; }
.dialog__btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.dialog__btns span { padding: 7px 14px; border-radius: 100px; font-size: 12px; font-weight: 500; transition: transform .12s; }
.dialog__cancel { box-shadow: inset 0 0 0 1px #c4c7c5; color: #0b57d0; }
.dialog__ok { background: #0b57d0; color: #fff; }

.bubble {
  position: absolute; top: 50px; right: 8px; z-index: 3;
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: 10px; background: #fff;
  box-shadow: var(--shadow-window); font-size: 11.5px;
  opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .3s var(--ease-out);
}
.bubble img { border-radius: 5px; }

/* Our side panel (same look as the extension) */
.sp {
  position: absolute; top: 0; right: 0; bottom: 0; z-index: 2;
  width: 272px; padding: 14px;
  border-left: 1px solid var(--grey-border);
  background: #fff;
  box-shadow: -12px 0 24px rgba(15, 23, 34, 0.06);
  transform: translateX(104%); transition: transform .55s var(--ease-out);
}
.sp__head { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: var(--muted); }
.sp__head img { border-radius: 5px; }
.sp__title { margin-top: 12px; font-size: 15px; white-space: nowrap; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.seg { display: flex; margin-top: 10px; padding: 3px; border-radius: 100px; background: var(--grey-bg); font-size: 11px; font-weight: 500; }
.seg__opt { flex: 1; display: inline-flex; white-space: nowrap; align-items: center; justify-content: center; gap: 6px; padding: 6px 4px; border-radius: 100px; color: var(--muted); }
.seg__opt svg { width: 12px; height: 12px; }
.seg__opt.is-active { background: #fff; color: var(--ink); box-shadow: 0 0 1px rgba(0, 0, 0, 0.25), 0 1px 4px rgba(15, 23, 34, 0.06); }
.sp__input {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  margin-top: 10px; padding: 10px 10px 10px 12px; min-height: 62px;
  border: 1.5px solid var(--accent); border-radius: 12px;
  font-size: 13px;
}
.sp__input .caret { background: var(--accent); }
.sp__input .btn { align-self: flex-end; transition: transform .12s, filter .15s; }
.sp__loading { display: none; gap: 5px; justify-content: center; margin-top: 14px; }
.sp__loading i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: dots 1s infinite ease-in-out; }
.sp__loading i:nth-child(2) { animation-delay: .15s; }
.sp__loading i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 0%, 100% { opacity: .25; transform: none; } 50% { opacity: 1; transform: translateY(-3px); } }
.sp__result { margin-top: 10px; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s var(--ease-out); }
.sp__result .formula { font-size: 11.5px; line-height: 18px; white-space: nowrap; overflow-wrap: normal; }
.sp__result .formula-head { height: 34px; padding: 9px 10px; font-size: 12px; }
.sp__result .formula-body { padding: 9px 10px 10px; }
.sp__copy { margin-top: 10px; float: right; gap: 6px; transition: transform .12s, filter .15s; }
.sp__toast {
  position: absolute; left: 14px; right: 14px; bottom: 10px;
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: 10px; background: #0f221c; color: #f7f9fc; font-size: 12px;
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease-out);
}
.sp__toast svg { color: #35a56f; }

.demo-cursor {
  position: absolute; left: 0; top: 0; z-index: 5;
  width: 22px; height: 22px;
  transform: translate(var(--x, 380px), var(--y, 420px)) scale(var(--s, 1));
  transition: transform .8s var(--ease-out), opacity .3s;
  opacity: 0;
}
.is-press { transform: scale(0.93) !important; }

/* States */
.illus.s-cursor .demo-cursor { opacity: 1; }
.illus.s-zoom .store { transform: scale(1.4); }
.illus.s-dialog .dialog { opacity: 1; transform: translate(-50%, 0); }
.illus.s-installed .store__add { background: #fff; color: #0b57d0; box-shadow: inset 0 0 0 1px #c4c7c5; }
.illus.s-installed .store__add-a { display: none; }
.illus.s-installed .store__add-b { display: inline; }
.illus.s-installed .bw__ours { transform: scale(1); }
.illus.s-bubble .bubble { opacity: 1; transform: none; }
.illus.s-panel .sp { transform: none; }
/* The panel opens on any page: the store fades away, an empty browser page stays */
.illus.s-panel .store, .illus.s-panel .bw__url-text { opacity: 0; }
.illus.s-loading .sp__loading { display: flex; }
.illus.s-result .sp__result { opacity: 1; transform: none; }
.illus.s-copied .sp__toast { opacity: 1; transform: none; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: 420px 1fr; gap: 80px; align-items: start; }
.qa { border-top: 1px solid var(--grey-border); }
.qa:first-child { border-top: 0; }
.qa__q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%;
  padding: 22px 0;
  font-size: 17px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3;
}
.qa:first-child .qa__q { padding-top: 8px; }
.qa__q svg { color: var(--ink); transition: color .2s; }
.qa__q { transition: padding .35s var(--ease-out), color .15s; }
.qa__q:hover { color: var(--accent); }
.qa.is-open .qa__q { padding-bottom: 10px; }
/* plus → minus: the vertical stroke reads --plus-v (custom properties pass into <use>);
   registered with @property so it can animate, and the icon turns a half circle */
@property --plus-v { syntax: '<number>'; inherits: true; initial-value: 1; }
.qa__q svg { transition: color .2s, transform .35s var(--ease-out), --plus-v .25s; }
.qa.is-open .qa__q svg { color: var(--accent); --plus-v: 0; transform: rotate(180deg); }
.qa__a { padding-bottom: 0; font-size: 16px; line-height: 1.6; color: var(--muted); }
.qa.is-open .qa__a { grid-template-rows: 1fr; opacity: 1; padding-bottom: 22px; }

/* ---------- Final CTA band ---------- */
.cta-section { padding: var(--section) 0; }
.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band__inner { position: relative; display: flex; align-items: center; gap: 24px; padding-top: 56px; padding-bottom: 56px; }
.band__title { flex: 1; font-size: 36px; font-weight: 500; line-height: 1.1; letter-spacing: -0.025em; }
.band__buttons { display: flex; align-items: center; gap: 12px; }
/* Vertical guide lines just outside the content edge */
.band__guide { position: absolute; top: -24px; bottom: -24px; width: 1px; background: var(--line); }
.band__guide--l { left: calc(var(--gutter) - 48px); }
.band__guide--r { right: calc(var(--gutter) - 48px); }

/* ---------- Footer ---------- */
.site-footer { display: flex; align-items: center; gap: 32px; padding-top: 40px; padding-bottom: 48px; font-size: 13px; color: var(--muted); }
.site-footer .brand { color: var(--ink); }
.footer-links { display: flex; gap: 32px; }
.footer-links a:hover { color: var(--ink); }

/* ---------- Floating install button ----------
   Same look as the primary button. Hidden until the hero "Install extension" button
   scrolls out of view (script.js toggles .is-visible). */
.floating-install {
  position: fixed; z-index: 30;
  right: 24px; bottom: 24px;
  box-shadow: 0 8px 24px rgba(15, 23, 34, 0.18);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  visibility: hidden;
  transition: opacity .25s, transform .25s, visibility 0s linear .25s, filter .15s;
}
.floating-install.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  visibility: visible;
  transition: opacity .25s, transform .25s, visibility 0s, filter .15s;
}
.floating-install.is-visible:active { transform: scale(0.97); }
@media (prefers-reduced-motion: reduce) {
  .floating-install, .floating-install.is-visible { transform: none; transition: none; }
}

/* ---------- Scroll reveal & hero entrance ----------
   Elements marked by script.js with [data-reveal] fade and rise when they reach the screen.
   Only with JS (html.js) — without it everything is simply visible. `translate` is used
   so it does not clash with hover `transform`. */
.js [data-reveal] {
  opacity: 0;
  translate: 0 24px;
  transition: opacity .7s var(--ease-out), translate .7s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; translate: none; }

@keyframes rise { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: none; } }
.hero-inner > * { animation: rise .8s var(--ease-out) both; }
.hero-inner > :nth-child(2) { animation-delay: .06s; }
.hero-inner > :nth-child(3) { animation-delay: .12s; }
.hero-inner > :nth-child(4) { animation-delay: .18s; }
.hero-inner > :nth-child(5) { animation-delay: .22s; }
.hero-inner > .video-window { animation: rise-window 1s var(--ease-out) .28s both; }
@keyframes rise-window { from { opacity: 0; translate: 0 40px; scale: .98; } to { opacity: 1; translate: none; scale: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; translate: none; }
  .h-card:hover, .h-card:hover img, .platforms:hover .logo-tile { transform: none; }
}

/* ---------- Line breaks used only on wide screens ---------- */
.br-desk { display: inline; }

/* ======================================================================
   Tablet: content narrower than 1200
   ====================================================================== */
@media (max-width: 1279px) {
  :root { --gutter: 48px; }
  .how-layout { grid-template-columns: 1fr; gap: 48px; }
  .faq-layout { grid-template-columns: 1fr; gap: 32px; }
  .big-card { min-height: 600px; padding: 32px; }
}

/* ======================================================================
   Mobile (design: 375)
   ====================================================================== */
@media (max-width: 767px) {
  :root { --gutter: 20px; --section: 48px; --title-gap: 28px; }
  h2 { font-size: 28px; }
  .br-desk { display: none; }

  .site-header { height: 64px; gap: 12px; }
  .brand { font-size: 16px; gap: 8px; }
  .brand img { width: 26px; height: 26px; }
  .nav-links, .btn-nav { display: none; }
  .menu-btn { display: inline-flex; }

  .hero { padding: 36px 0 32px; }
  .hero-grid { --cell: 64px 28px; --grid-mask: radial-gradient(ellipse 80% 45% at 50% 25%, #000 25%, transparent 100%); --grid-top: linear-gradient(to bottom, transparent 0, #000 120px); }
  .hero h1 { margin-top: 18px; font-size: 36px; line-height: 1.1; }
  .hero-sub { margin-top: 18px; font-size: 16px; }
  .cta-row { flex-direction: column; align-items: stretch; width: 100%; gap: 12px; margin-top: 18px; }
  .cta-row .btn-lg { width: 100%; }
  .cta-row .store-badge { align-self: center; }
  .desktop-note { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; color: var(--muted); }
  .video-window { margin-top: 24px; }

  .highlight-cards { grid-template-columns: 1fr; gap: 12px; }
  .h-card { padding: 22px 20px 22px 22px; }
  .h-card img { width: 44px; height: 44px; margin-bottom: 32px; }
  .h-card h3 { font-size: 18px; }

  .feature-cards { gap: 12px; margin-top: 24px; }
  .platforms { flex-direction: column; align-items: flex-start; gap: 20px; padding: 22px 20px; border-radius: 22px; }
  .caption__label { font-size: 14px; }
  .caption__text { margin-top: 6px; font-size: 16px; }
  .logo-tile { width: 56px; height: 56px; border-radius: 15px; }
  .logo-tile__sheets { width: 39px; height: 28px; }
  .logo-tile__excel { width: 36px; height: 37px; }
  .big-cards { grid-template-columns: 1fr; gap: 12px; }
  .big-card { min-height: 0; padding: 20px; gap: 40px; border-radius: 22px; }
  .prompts { gap: 10px; }
  .prompt { padding: 10px 16px; font-size: 14px; }
  .prompt--2 { margin-left: 18px; }
  .prompt--3 { margin-left: 0; }
  .prompt--active { margin-left: 0; padding: 8px 8px 8px 16px; }
  .prompt .send { width: 28px; height: 28px; margin-left: 10px; }
  .result-panel { padding: 18px; border-radius: 18px; font-size: 14px; line-height: 20px; margin-top: 0; }
  .result-title { font-size: 16px; }
  .formula { font-size: 13px; line-height: 19px; }

  .lead { margin-top: 16px; font-size: 15px; }
  .steps { margin-top: 28px; }
  .step__head { padding: 18px 0; font-size: 17px; gap: 14px; }
  .step__body { padding-left: 28px; font-size: 15px; }
  .step.is-open .step__body { padding-bottom: 18px; }
  .how-layout { gap: 28px; }

  .faq-layout { gap: 24px; }
  .qa__q { padding: 20px 0; gap: 12px; font-size: 16px; }
  .qa__q svg { width: 20px; height: 20px; }
  .qa:first-child .qa__q { padding-top: 4px; }
  .qa__a { font-size: 15px; }
  .qa.is-open .qa__a { padding-bottom: 20px; }

  .band__inner { flex-direction: column; align-items: flex-start; padding-top: 40px; padding-bottom: 40px; }
  .band__title { font-size: 26px; }
  .band__buttons { flex-direction: column; align-items: flex-start; }
  .band__guide { top: -12px; bottom: -12px; }
  .band__guide--l { left: calc(var(--gutter) - 12px); }
  .band__guide--r { right: calc(var(--gutter) - 12px); }

  .site-footer { flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 28px; padding-bottom: 96px; }
  .floating-install { right: 16px; bottom: 16px; padding: 14px 26px 14px 24px; }
}
