/* =========================================================
   TradeWise: shared styles for EVERY page on the site.
   Each page links to this one file, so a change here
   changes the whole site.

   Sections in this file:
   1. Colors for the LIGHT and DARK themes (change these first!)
   2. Basic page setup and fonts
   3. Reusable pieces (container, buttons, labels, headings, grain)
   4. Header (the floating menu bar) and theme switch
   5. Sky hero (Home) and page hero (other pages)
   6. Phone in the Home hero
   7. Dark "band" sections
   8. "What you get" cards (Home)
   9. Feature rows and example screens
   10. "You stay in control" alerts
   11. Scrolling checklist (marquee)
   12. Steps, "why us" grid, pricing, about
   13. FAQ, forms and legal text
   14. Call-to-action box
   15. Footer
   16. Animations
   17. Bigger screens (tablets and computers)
   ========================================================= */


/* ---------- 1. COLORS AND SIZES ----------
   :root holds the LIGHT theme (and everything that's the same in both).
   [data-theme="dark"] holds the DARK theme. It only lists what changes.
   The theme switch puts data-theme="light" or "dark" on the page. */
:root {
  /* Brand colors */
  --purple: #6A28FD;
  --purple-dark: #5518E0;
  --navy: #011B44;

  /* Page backgrounds: warm off-white, like paper */
  --bg: #F6F4EF;
  --bg-alt: #EFECE5;        /* slightly darker sections */
  --surface: #FFFFFF;       /* cards and example screens */
  --surface-2: #F3F1EC;     /* small boxes inside cards */

  /* Text */
  --heading: #141414;
  --text: #2E2E30;
  --text-light: #55555C;      /* secondary text: still dark enough to read easily */
  --accent-text: #6A28FD;   /* purple words and links */

  /* Lines and tints (solid colors only, no glows) */
  --border: #E2DED5;
  --purple-soft: #EEE8FF;
  --purple-line: #D9CCFF;
  --green-bg: #DDF5E6;
  --green: #11603A;
  --amber-bg: #FFF1D6;
  --amber: #8A5300;

  /* Shadows: almost none. Only the open menu and the phone get a soft one. */
  --shadow: none;
  --shadow-big: 0 20px 50px rgba(0, 0, 0, 0.18);

  /* The plain header color at the top of inner pages */
  --sky: #141414;

  --grain-opacity: 0;       /* the old "film grain" texture is switched off */

  /* Fonts */
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;

  /* Sizes */
  --max-width: 1180px;
  --radius: 20px;
  --radius-big: 28px;

  /* Animation smoothness ("ease-out" = starts fast, ends gently) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  color-scheme: light;
}

/* ---- DARK THEME ---- */
[data-theme="dark"] {
  --bg: #0B0B0C;            /* near-black */
  --bg-alt: #111113;
  --surface: #161618;       /* soft dark gray cards */
  --surface-2: #1E1E21;

  --heading: #F4F4F5;
  --text: #DEDEE3;
  --text-light: #B4B4BC;      /* secondary text: light gray, high contrast on near-black */
  --accent-text: #A88CFF;

  --border: rgba(255, 255, 255, 0.08);
  --purple-soft: rgba(138, 92, 255, 0.14);
  --purple-line: rgba(138, 92, 255, 0.3);
  --green-bg: rgba(52, 199, 120, 0.14);
  --green: #74E0A8;
  --amber-bg: rgba(255, 180, 60, 0.14);
  --amber: #FFC772;

  --shadow: none;
  --shadow-big: 0 24px 60px rgba(0, 0, 0, 0.55);

  --sky: #111113;

  --grain-opacity: 0;

  color-scheme: dark;
}


/* ---------- 2. BASIC PAGE SETUP AND FONTS ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;       /* so the floating menu doesn't cover section titles */
  -webkit-tap-highlight-color: transparent; /* no gray flash when tapping on phones */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

/* While switching themes, colors fade smoothly (js/main.js adds this class for a moment) */
.theme-fading,
.theme-fading *,
.theme-fading *::before,
.theme-fading *::after {
  transition: background-color 350ms ease, color 350ms ease, border-color 350ms ease !important;
}

/* Big headings use the elegant serif font. Small headings (h3) use the normal font. */
h1, h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--heading);
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* An italic word inside a heading, like "Meet your <em>AI secretary</em>" */
h1 em,
h2 em {
  font-style: italic;
}

h3 {
  margin: 0;
  color: var(--heading);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
  text-wrap: pretty;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-text);
}

::selection {
  background: var(--purple);
  color: #FFFFFF;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent-text);
  outline-offset: 3px;
}

/* Simple line icons (drawn in the HTML with <svg>) */
svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}


/* ---------- 3. REUSABLE PIECES ---------- */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.narrow {
  max-width: 780px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-alt);
}

/* Small helpers for spacing */
.pt-0  { padding-top: 0; }
.mt-0  { margin-top: 0 !important; }
.mt-12 { margin-top: 12px; }

/* A centered "See more →" link under a section */
.center-link {
  margin-top: 32px;
  text-align: center;
}

/* Label on the dark call-to-action box */
.cta-box .label {
  color: #C9B6FF;
}

/* The heading block at the top of a section, centered like Origin's */
.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2 {
  margin-bottom: 16px;
  font-size: 44px;
}

.section-head p {
  color: var(--text-light);
}

.section-head-left {
  margin-left: 0;
  text-align: left;
}

/* Small uppercase label, like "LEAD CATCHER" */
.label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* A text link with an arrow, like "More about what we do →" */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.arrow-link svg {
  width: 18px;
  height: 18px;
  transition: transform 200ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .arrow-link:hover svg { transform: translateX(4px); }
}

/* FILM GRAIN: a very fine noise texture over gradients, so they look
   soft and natural instead of smooth plastic. */
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Buttons. Use class="btn" on any link to make it a button. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--purple);
  border-radius: 999px;
  background: var(--purple);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;      /* taps respond right away on phones */
  user-select: none;
  -webkit-user-select: none;
  transition: transform 150ms var(--ease-out), background-color 200ms ease,
              border-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

/* Pressing a button shrinks it a tiny bit, so it feels like it "clicked" */
.btn:active {
  transform: scale(0.97);
}

.btn-large {
  min-height: 56px;
  padding: 0 30px;
  font-size: 16px;
}

.btn-small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

/* White button, used on the sky and on dark or purple backgrounds */
.btn-white {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: var(--navy);
}

/* Outline button */
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--heading);
}

/* Hover effects only on devices with a mouse (on phones, hover gets "stuck") */
@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    background: var(--purple-dark);
    border-color: var(--purple-dark);
  }

  .btn-white:hover {
    background: #EFE8FF;
    border-color: #EFE8FF;
    color: var(--navy);
  }

  .btn-ghost:hover {
    background: transparent;
    border-color: var(--accent-text);
    color: var(--accent-text);
    box-shadow: none;
  }
}

/* Small colored status tags inside example screens */
.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--purple-soft);
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.tag-green { background: var(--green-bg); color: var(--green); }
.tag-amber { background: var(--amber-bg); color: var(--amber); }


/* ---------- 4. HEADER (MENU BAR) AND THEME SWITCH ----------
   A plain bar across the top. On the Home page it starts see-through over
   the photo (white text), and turns solid once you scroll. */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  transition: background-color 300ms ease, border-color 300ms ease;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: var(--max-width);
  height: 68px;
  margin: 0 auto;
  padding: 0 20px;
}

/* The logo image has empty space around it. Negative margins trim it. */
.logo {
  margin-right: auto;
}

.logo img {
  height: 64px;
  width: auto;
  margin: -12px 0 -12px -12px;
}

/* Two logos: the navy one on light backgrounds, the white one on dark */
.logo-white { display: none; }
[data-theme="dark"] .logo-white { display: block; }
[data-theme="dark"] .logo-color { display: none; }

/* Home page: the bar is see-through over the photo until you scroll */
.has-photo-hero .site-header:not(.scrolled) {
  border-bottom-color: transparent;
  background: transparent;
}

.has-photo-hero .site-header:not(.scrolled) .logo-white { display: block; }
.has-photo-hero .site-header:not(.scrolled) .logo-color { display: none; }

/* Buttons in the bar: theme switch and phone menu button */
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: transparent;
  color: var(--heading);
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 150ms var(--ease-out), border-color 200ms ease;
}

.has-photo-hero .site-header:not(.scrolled) .icon-btn {
  border-color: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

.icon-btn:active {
  transform: scale(0.94);
}

@media (hover: hover) and (pointer: fine) {
  .icon-btn:hover { border-color: var(--accent-text); }
}

/* The sun and moon sit in the same spot. One turns in as the other turns out. */
.theme-toggle svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  transition: transform 400ms var(--ease-out), opacity 250ms ease;
}

.icon-sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

[data-theme="dark"] .icon-moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

[data-theme="dark"] .icon-sun {
  opacity: 1;
  transform: none;
}

/* The menu button: two lines that turn into an X */
.menu-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 250ms var(--ease-out);
}

.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child  { top: 25px; }

.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child  { transform: translateY(-4px) rotate(-45deg); }

/* On phones the menu drops down under the bar. JavaScript adds "open" to show it. */
.main-nav {
  position: absolute;
  top: 76px;
  left: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  padding: 8px 20px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-big);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  visibility: hidden;
  transition: opacity 180ms ease, transform 220ms var(--ease-out), visibility 0s linear 220ms;
}

.main-nav.open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  visibility: visible;
  transition: opacity 180ms ease, transform 220ms var(--ease-out), visibility 0s;
}

.main-nav a {
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
  color: var(--heading);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

/* The link for the page you're on */
.main-nav a[aria-current="page"] {
  color: var(--accent-text);
}

/* ...but the "Book a demo" button keeps its white text on the Book a Demo page */
.main-nav a.btn[aria-current="page"] {
  color: #FFFFFF;
}

.main-nav .btn {
  margin-top: 16px;
  border-bottom: 1px solid var(--purple);
  color: #FFFFFF;
}


/* ---------- 5. HOME HERO (THE PHOTO) AND PAGE HEADER (OTHER PAGES) ---------- */

/* The Home hero: a full-width photo with a dark layer on top for readable text */
.photo-hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #0B0B0C;
  color: #FFFFFF;
}

/* The photo itself. "--parallax" is set by js/main.js as you scroll. */
.hero-media {
  position: absolute;
  inset: 0;
  transform: translateY(var(--parallax, 0px));
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 60%;
}

/* The dark layer: darker on the left (behind the text) and at the bottom */
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 11, 12, 0.78) 0%, rgba(11, 11, 12, 0.45) 45%, rgba(11, 11, 12, 0.15) 100%),
    linear-gradient(180deg, rgba(11, 11, 12, 0.35) 0%, rgba(11, 11, 12, 0) 35%, rgba(11, 11, 12, 0.9) 100%);
}

/* The words sit on top of the photo and never move */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 120px 20px 0;
}

.hero-copy {
  max-width: 560px;
}

.photo-hero h1 {
  margin-bottom: 20px;
  color: #FFFFFF;
  font-size: 46px;
  line-height: 1.02;
}

.photo-hero .hero-sub {
  max-width: 30em;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.photo-hero .hero-note {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
}

/* Inner pages: a plain page header (no photo, no gradient) */
.sky {
  position: relative;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.cloud {
  display: none;              /* the old drifting clouds are switched off */
}

.sky > .container {
  position: relative;
}

.sky h1 {
  color: var(--heading);
}

.sky p {
  color: var(--text-light);
}

.page-hero {
  padding: 150px 0 72px;
}

.page-hero h1 {
  margin-bottom: 16px;
  font-size: 46px;
}

.page-hero p {
  max-width: 36em;
}

/* Page headers line up with the content below them */
.page-hero .container {
  max-width: var(--max-width);
}

.page-hero h1,
.page-hero p {
  max-width: 760px;
}

/* Privacy and Terms: the header matches the narrow reading column */
body:has(.legal) .page-hero .container {
  max-width: 720px;
}


/* ---------- 6. THE PHONE IN THE HOME HERO ---------- */

/* A realistic phone: thin dark frame, rounded corners, one soft shadow.
   It rises from the bottom edge of the hero. */
.hero-phone {
  position: relative;
  width: 300px;
  margin: 48px 0 -120px;
  padding: 10px;
  border-radius: 46px;
  background: #1A1A1C;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 30px 80px rgba(0, 0, 0, 0.6);
}

.phone-screen {
  min-height: 460px;
  padding: 18px 14px 24px;
  border-radius: 38px;
  background: #0E0E10;
  text-align: left;
}

/* The little bar at the top (time, signal) */
.phone-status {
  display: flex;
  justify-content: space-between;
  margin: 0 10px 22px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 600;
}

.phone-notch {
  width: 90px;
  height: 22px;
  margin: -4px auto 0;
  border-radius: 999px;
  background: #000000;
}

.phone-greeting {
  margin: 0 6px 16px;
  color: #FFFFFF;
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1.1;
}

/* One notification. Each slides up and stays (see section 16). */
.note {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  padding: 11px 12px;
  border-radius: 16px;
  background: #1C1C1F;
  color: #ECECEE;
  font-size: 14px;
  line-height: 1.35;
}

.note-time {
  flex-shrink: 0;
  color: #85858C;
  font-size: 14px;
}


/* ---------- 7. FLAT "BAND" BOXES ----------
   A plain rounded box with a thin border. No glow, no gradient. */
.band {
  position: relative;
  padding: 56px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-big);
  background: var(--surface);
  color: var(--text);
  text-align: center;
}

.band h2 {
  max-width: 16em;
  margin: 0 auto 16px;
  color: var(--heading);
  font-size: 38px;
}

.band p {
  max-width: 34em;
  margin: 0 auto;
  color: var(--text-light);
}

/* The four problems ("Where the money goes") as a plain list */
.leaks {
  margin: 0;
  padding: 0;
  list-style: none;
}

.leaks li {
  padding: 22px 0;
  border-top: 1px solid var(--border);
}

.leaks li:last-child {
  border-bottom: 1px solid var(--border);
}

.leaks strong {
  display: block;
  margin-bottom: 4px;
  color: var(--heading);
  font-size: 19px;
}

.leaks span {
  color: var(--text-light);
  font-size: 16px;
}


/* ---------- 8. PRODUCT ROW (HOME) ----------
   One row of real-looking tool screens that scrolls sideways.
   Swipe on a phone, or use the arrow buttons on a computer. */

.row-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.row-head h2 {
  max-width: 14em;
  font-size: 38px;
}

.row-controls {
  display: flex;
  gap: 8px;
}

.row-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--heading);
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 150ms var(--ease-out), border-color 200ms ease;
}

.row-btn:active { transform: scale(0.94); }

@media (hover: hover) and (pointer: fine) {
  .row-btn:hover { border-color: var(--accent-text); }
}

/* The row itself: scrolls sideways and "snaps" to each card */
.tool-grid {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0 20px 8px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 20px;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.tool-grid::-webkit-scrollbar {
  display: none;
}

.tool-card {
  display: flex;
  flex: 0 0 84%;
  flex-direction: column;
  max-width: 360px;
  scroll-snap-align: start;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

/* The top part of each card: a realistic screen */
.tool-visual {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.tool-text {
  display: flex;
  flex-direction: column;
  flex: 1;                         /* text area fills the card, so tool names line up */
  padding: 22px 22px 24px;
}

.tool-text h3 {
  margin-bottom: 6px;
  font-size: 20px;
}

.tool-text p {
  margin-bottom: 18px;
  color: var(--text-light);
  font-size: 16px;
}

/* Small bar chart inside the Profit Report card */
.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 92px;
  margin: 10px 0 6px;
  padding: 0 4px;
  border-bottom: 1px solid var(--border);
}

.mini-chart .bar-pair {
  display: flex;
  flex: 1;
  align-items: flex-end;
  gap: 3px;
  height: 100%;
}

.mini-chart i {
  flex: 1;
  border-radius: 3px 3px 0 0;
}

.mini-chart .in  { background: var(--purple); }
.mini-chart .out { background: var(--text-light); opacity: 0.45; }

.chart-key {
  display: flex;
  gap: 14px;
  color: var(--text-light);
  font-size: 14px;
}

.chart-key span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 2px;
  background: var(--purple);
}

.chart-key span + span::before {
  background: var(--text-light);
  opacity: 0.45;
}

/* A row of a real-looking table (Voice Work Log) */
.ui-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.ui-table th {
  padding: 6px 4px;
  color: var(--text-light);
  font-weight: 600;
  text-align: left;
}

.ui-table td {
  padding: 8px 4px;
  white-space: nowrap;
  border-top: 1px solid var(--border);
  color: var(--heading);
}

.ui-table tr.is-new td {
  background: var(--purple-soft);
}

/* The bottom line of a card when it has a tool name AND a badge */
.tool-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: auto;
}

/* On What We Do, the badge sits on its own line under the checklist */
.qb-line {
  margin-top: 24px;
}

/* "Works with QuickBooks Online" badge (uses the small .tag look) */
.qb-badge {
  border: 1px solid var(--green);
  background: var(--green-bg);
  color: var(--green);
}

/* The "See how it works →" link at the bottom of a card (same look as the tool name) */
.tool-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.tool-link svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
  transition: transform 200ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .tool-link:hover svg { transform: translateX(4px); }
}

/* The tool's name, small, at the bottom of the card: the result comes first */
.tool-name {
  margin-top: auto;
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}


/* ---------- 9. FEATURE ROWS AND EXAMPLE SCREENS ---------- */

.feature-row {
  display: grid;
  gap: 28px;
  align-items: center;
  margin-bottom: 72px;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-text h2 {
  margin-bottom: 14px;
  font-size: 40px;
}

.feature-text > p {
  margin-bottom: 20px;
  color: var(--text-light);
}

.feature-text > .tool-name {
  display: block;
  margin: 24px 0 0;
  color: var(--accent-text);
}

/* A list with purple check marks */
.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 32px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--purple-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236A28FD' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}

/* The soft colored area behind an example screen */
.feature-visual {
  display: grid;
  place-items: center;
  padding: 36px 20px;
  border-radius: var(--radius-big);
  border: 1px solid var(--border);
  background: var(--surface-2);
}

/* "ui": a small example of a TradeWise screen */
.ui {
  width: 100%;
  max-width: 400px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 16px;
  text-align: left;
}

.ui-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--heading);
  font-weight: 700;
}

.ui-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--border);
}

.ui-row > span:first-child {
  color: var(--heading);
}

.ui-row > span:last-child {
  color: var(--text-light);
  text-align: right;
}

.ui-total > span,
.ui-total > span:last-child {
  color: var(--heading);
  font-weight: 700;
}

.ui-message {
  margin-bottom: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--heading);
  line-height: 1.45;
}

/* A purple reply bubble (TradeWise answering) */
.ui-message-out {
  margin-left: 24px;
  background: var(--purple);
  color: #FFFFFF;
}

/* A voice message bubble: round play button, sound wave, and length */
.voice-msg {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 80%;
  margin-bottom: 8px;
  padding: 8px 12px 8px 8px;
  border-radius: 999px;
  background: var(--surface-2);
}

.voice-play {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--purple);
  color: #FFFFFF;
}

.voice-play svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  stroke: none;
}

/* The sound wave: thin bars of different heights */
.voice-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 1;
  height: 22px;
}

.voice-wave i {
  width: 3px;
  border-radius: 2px;
  background: var(--accent-text);
  opacity: 0.7;
}

.voice-wave i:nth-child(1)  { height: 30%; }
.voice-wave i:nth-child(2)  { height: 60%; }
.voice-wave i:nth-child(3)  { height: 90%; }
.voice-wave i:nth-child(4)  { height: 50%; }
.voice-wave i:nth-child(5)  { height: 75%; }
.voice-wave i:nth-child(6)  { height: 100%; }
.voice-wave i:nth-child(7)  { height: 55%; }
.voice-wave i:nth-child(8)  { height: 80%; }
.voice-wave i:nth-child(9)  { height: 40%; }
.voice-wave i:nth-child(10) { height: 65%; }
.voice-wave i:nth-child(11) { height: 35%; }
.voice-wave i:nth-child(12) { height: 20%; }

.voice-time {
  color: var(--text-light);
  font-size: 14px;
  font-weight: 600;
}

.ui-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.ui-btn {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--purple);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
}

.ui-btn-ghost {
  background: var(--surface-2);
  color: var(--heading);
}

/* A small "PDF" page look, for quotes and the profit report */
.ui-pdf {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #FCE7E7;
  color: #A11B1B;
  font-size: 14px;
  font-weight: 800;
}

[data-theme="dark"] .ui-pdf {
  background: rgba(255, 90, 90, 0.15);
  color: #FF9B9B;
}


/* ---------- 10. "YOU STAY IN CONTROL" ALERTS ---------- */

.alert-stack {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 420px;
}

.alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 16px;
  text-align: left;
}

.alert-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--purple-soft);
  color: var(--accent-text);
}

.alert-icon svg {
  width: 20px;
  height: 20px;
}

.alert-body {
  flex: 1;
}

.alert-body strong {
  display: block;
  color: var(--heading);
}

.alert-body span {
  color: var(--text-light);
}

.alert-time {
  color: var(--text-light);
  font-size: 14px;
  white-space: nowrap;
}


/* ---------- 11. SCROLLING CHECKLIST (MARQUEE) ---------- */

.marquee {
  margin-top: 40px;
  overflow: hidden;
  /* the rows fade out softly at the left and right edges */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-row {
  display: flex;
  width: max-content;
  margin-bottom: 12px;
}

.marquee-row ul {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0 12px 0 0;
  list-style: none;
}

.marquee-row li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--heading);
  font-size: 16px;
  white-space: nowrap;
}

.marquee-row li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #74E0A8;
}


/* ---------- 12. STEPS, "WHY US", PRICING, ABOUT ---------- */

/* Steps: numbered cards */
.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.step-number {
  display: block;
  margin-bottom: 20px;
  color: var(--accent-text);
  font-family: var(--font-serif);
  font-size: 56px;
  line-height: 1;
}

.step h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.step p {
  color: var(--text-light);
}

/* "Why us" grid */
.why-grid {
  display: grid;
  gap: 16px;
}

/* A "why" grid with exactly 3 boxes (the Websites section): 3 across from tablet size up */
@media (min-width: 700px) {
  .why-grid.why-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.why-item {
  padding: 26px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.why-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--purple-soft);
  color: var(--accent-text);
}

.why-item h3 {
  margin-bottom: 6px;
}

.why-item p {
  color: var(--text-light);
  font-size: 16px;
}

/* Pricing card */
.price-card {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  padding: 36px 28px;
  border: 1px solid var(--purple-line);
  border-radius: var(--radius-big);
  background: var(--surface);
  box-shadow: var(--shadow-big);
}

.price-badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--purple);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* PLANS: the four pricing cards (1 per row on phones, 2 on tablets, 4 on computers) */
.plan-grid {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-big);
  background: var(--surface);
}

.plan .price {
  margin: 4px 0 8px;
  font-size: 52px;
}

/* "Founding clients: $75 / month" under the normal price */
.founding-price {
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--purple-soft);
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* "Custom" instead of a number */
.plan .price-custom {
  font-style: italic;
}

.plan-note {
  margin-bottom: 18px;
  color: var(--text-light);
  font-size: 16px;
}

.plan .check-list {
  margin-bottom: 24px;
  font-size: 16px;
}

/* The button sits at the bottom, so buttons line up across cards */
.plan .btn {
  width: 100%;
  margin-top: auto;
}

/* "or book a call" under the custom plan's button */
.plan-link {
  display: block;
  margin-top: 12px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

/* The full bundle stands out: purple border, soft glow, "Best value" badge */
.plan-featured {
  border: 2px solid var(--purple);
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 24px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--purple);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* "Every plan includes" box under the cards */
.plan-includes {
  max-width: 760px;
  margin: 40px auto 0;
  padding: 28px 24px;
  border-radius: var(--radius-big);
  background: var(--bg-alt);
  text-align: center;
}

.plan-includes h2 {
  margin-bottom: 18px;
  font-size: 32px;
}

.plan-includes .check-list {
  display: grid;
  gap: 4px 24px;
  text-align: left;
}

/* "New" badge on the website plan: green instead of purple */
.plan-badge-new {
  background: var(--green);
  color: var(--bg);
}

/* "$750 setup + $150 / month" is longer, so its numbers are a bit smaller */
.plan .price-website {
  font-size: 40px;
  line-height: 1.1;
}

.price-plus {
  color: var(--text-light);
  font-family: var(--font-sans);
  font-size: 22px;
}

/* 5 plans: 1 per row on phones; 2 per row on tablets (5th centered);
   3 on top + 2 centered below on computers */
@media (min-width: 700px) {
  .plan-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .plan {
    grid-column: span 2;
  }

  .plan:nth-child(5) {
    grid-column: 2 / span 2;
  }

  .plan-includes .check-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  .plan-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
  }

  .plan,
  .plan:nth-child(5) {
    grid-column: span 2;
  }

  .plan:nth-child(4) {
    grid-column: 2 / span 2;
  }
}

/* The founding offer banner above the price card */
.offer-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto 20px;
  padding: 14px 20px;
  border: 1px solid var(--purple-line);
  border-radius: 16px;
  background: var(--purple-soft);
  color: var(--heading);
  font-size: 16px;
  text-align: center;
}

.price-card h2 {
  margin-bottom: 8px;
  font-size: 40px;
}

.price {
  margin: 20px 0 6px;
  color: var(--heading);
  font-family: var(--font-serif);
  font-size: 56px;
  line-height: 1;
}

.price small {
  color: var(--text-light);
  font-family: var(--font-sans);
  font-size: 17px;
}

.price-note {
  margin-bottom: 24px;
  color: var(--text-light);
  font-size: 16px;
}

.price-card .check-list {
  margin-bottom: 28px;
}

.price-card .btn {
  width: 100%;
}

/* About: founder photo placeholder and story */
.founder {
  display: grid;
  gap: 32px;
  align-items: start;
}

.founder-photo {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  max-width: 380px;
  border: 1px dashed var(--purple-line);
  border-radius: var(--radius-big);
  background: var(--bg-alt);
  color: var(--text-light);
  font-size: 16px;
  text-align: center;
}

.prose p {
  margin-bottom: 18px;
}

.prose h2 {
  margin: 40px 0 14px;
  font-size: 34px;
}

.prose h3 {
  margin: 28px 0 10px;
}

.prose ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

.prose li {
  margin-bottom: 6px;
}


/* ---------- 13. FAQ, FORMS AND LEGAL TEXT ---------- */

/* FAQ: each question opens when clicked (uses the built-in <details> tag) */
.faq {
  max-width: 820px;
  margin: 0 auto;
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  color: var(--heading);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

/* The + sign that turns into × when open */
.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--purple-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236A28FD' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E")
    center / 16px no-repeat;
  transition: transform 250ms var(--ease-out);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 4px 24px;
  color: var(--text-light);
}

.faq-answer p + p {
  margin-top: 12px;
}

/* Book a demo: form on one side, "what happens next" on the other */
.demo-layout {
  display: grid;
  gap: 32px;
  align-items: start;
}

.form-card {
  padding: 28px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-big);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  gap: 18px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--heading);
  font-size: 16px;
  font-weight: 700;
}

.field .optional {
  color: var(--text-light);
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--heading);
  font-family: var(--font-sans);
  font-size: 16px;                 /* 16px or more stops iPhones from zooming in */
  transition: border-color 200ms ease, background-color 200ms ease;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent-text);
  background: var(--surface);
  outline: none;
}

.form-grid-gap {
  margin-top: 18px;
}

.form-note {
  margin-top: 14px;
  color: var(--text-light);
  font-size: 14px;
}

.form-card .btn {
  width: 100%;
  margin-top: 8px;
}

/* Shown after the form is sent */
.form-success {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--green-bg);
  color: var(--green);
  font-size: 16px;
  font-weight: 600;
}

.form-success.show,
.form-error.show {
  display: block;
}

/* Shown if the form couldn't be sent */
.form-error {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #FCE7E7;
  color: #A11B1B;
  font-size: 16px;
  font-weight: 600;
}

[data-theme="dark"] .form-error {
  background: rgba(255, 90, 90, 0.15);
  color: #FF9B9B;
}

.form-error a {
  color: inherit;
}

/* The spam trap box: moved off screen so people never see it */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* The button while the form is sending */
.btn[disabled] {
  opacity: 0.7;
  cursor: wait;
}

.next-steps {
  padding: 28px 24px;
  border-radius: var(--radius-big);
  background: var(--bg-alt);
}

.next-steps h2 {
  margin-bottom: 20px;
  font-size: 32px;
}

.next-steps ol {
  margin: 0 0 24px;
  padding-left: 22px;
}

.next-steps li {
  margin-bottom: 12px;
}

/* Legal pages (privacy.html, terms.html): one narrow, easy-to-read column */
.legal {
  max-width: 720px;
}

.legal h2 {
  margin-top: 48px;
  font-size: 30px;
}

.legal p,
.legal li {
  line-height: 1.7;
}

/* "Last updated: ..." under the title in the sky banner */
.page-hero .legal-date {
  margin-bottom: 12px;
  color: var(--text-light);
  font-size: 16px;
  font-weight: 600;
}

/* Legal pages: a note at the top saying it's a draft */
.draft-note {
  margin-bottom: 32px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--amber-bg);
  color: var(--amber);
  font-size: 16px;
  font-weight: 600;
}


/* ---------- 14. CALL-TO-ACTION BOX ---------- */

.cta-box {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 64px 24px;
  border-radius: var(--radius-big);
  text-align: center;
  background: var(--sky);
  border: 1px solid var(--border);
}

.cta-box > * {
  position: relative;
  z-index: 1;
}

.cta-box h2 {
  max-width: 14em;
  margin: 0 auto 16px;
  color: #FFFFFF;
  font-size: 44px;
}

.cta-box p {
  max-width: 32em;
  margin: 0 auto 28px;
  color: #E4E2F7;
}


/* ---------- 15. FOOTER ---------- */

.site-footer {
  position: relative;
  overflow: hidden;
  padding: 64px 0 0;
  background: #0B0B0C;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #A9B3CC;
  font-size: 16px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 24px;
}

.footer-brand {
  grid-column: 1 / -1;
}

.footer-brand p {
  max-width: 22em;
  margin-top: 8px;
}

.footer-logo img {
  height: 64px;
  width: auto;
  margin: -12px 0 -8px -12px;
}

.site-footer h2 {
  margin-bottom: 14px;
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin-bottom: 10px;
}

.site-footer li a {
  color: #A9B3CC;
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .site-footer li a:hover {
    color: #FFFFFF;
  }
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

/* The huge "TradeWise" word at the very bottom */
.footer-wordmark {
  margin: 0;
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  font-family: var(--font-serif);
  font-size: 25vw;
  line-height: 0.8;
  letter-spacing: -0.03em;
  text-align: center;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.06);
  user-select: none;
}


/* ---------- 16. ANIMATIONS ----------
   Only for people who haven't turned on "reduce motion" on their device.
   js/main.js adds the "js" class to the page. Without JavaScript,
   everything simply shows, with no animation. */

@media (prefers-reduced-motion: no-preference) {

  .hero-phone {
    animation: phone-up 1200ms var(--ease-out) 500ms both;
  }

  /* The alert cards inside the phone appear one after another */
  .phone-card {
    animation: pop 600ms var(--ease-out) both;
  }

  .phone-card:nth-of-type(1) { animation-delay: 1300ms; }
  .phone-card:nth-of-type(2) { animation-delay: 1700ms; }
  .phone-card:nth-of-type(3) { animation-delay: 2100ms; }
  .phone-card:nth-of-type(4) { animation-delay: 2500ms; }

  /* C. Clouds drift slowly back and forth */
  .cloud-1 { animation: drift 38s ease-in-out infinite alternate; }
  .cloud-2 { animation: drift 46s ease-in-out infinite alternate-reverse; }
  .cloud-3 { animation: drift 60s ease-in-out infinite alternate; }

  /* E. The checklist rows slide sideways forever, in opposite directions */
  .marquee-row {
    animation: slide 45s linear infinite;
  }

  .marquee-row.reverse {
    animation-direction: reverse;
  }

  .marquee:hover .marquee-row {
    animation-play-state: paused;
  }

  /* F. Cards lift a little when you point at them (computers only) */
  @media (hover: hover) and (pointer: fine) {
    .tool-card,
    .why-item,
    .step {
      transition: transform 300ms var(--ease-out), border-color 300ms ease;
    }

    .tool-card:hover,
    .why-item:hover,
    .step:hover {
      transform: translateY(-4px);
      border-color: var(--purple-line);
    }
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

@keyframes phone-up {
  from { opacity: 0; transform: translateY(120px); }
  to   { opacity: 1; transform: none; }
}

@keyframes pop {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}

@keyframes drift {
  from { transform: translateX(-60px); }
  to   { transform: translateX(60px); }
}

@keyframes slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ---------- 17. BIGGER SCREENS ---------- */

/* Tablets and up (700px wide or more) */
@media (min-width: 700px) {
  .container {
    padding: 0 32px;
  }

  .section {
    padding: 112px 0;
  }

  .section-head h2 {
    font-size: 60px;
  }

  .hero-sub {
    font-size: 20px;
  }

  .page-hero {
    padding: 168px 0 96px;
  }

  .page-hero h1 {
    font-size: 60px;
  }

  .why-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-text h2 {
    font-size: 52px;
  }

  .form-grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  .form-card {
    padding: 40px;
  }

  .cta-box {
    padding: 96px 48px;
  }

  .cta-box h2 {
    font-size: 60px;
  }

  .price-card {
    padding: 48px;
  }

  .footer-grid {
    grid-template-columns: 2fr repeat(4, 1fr);
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-wordmark {
    font-size: 22vw;
  }
}

/* Computers (980px wide or more) */
@media (min-width: 980px) {
  .site-header {
    top: 16px;
  }

  /* Show the full menu in the bar and hide the phone menu button */
  .menu-toggle {
    display: none;
  }

  .main-nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: none;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    visibility: visible;
  }

  .main-nav a {
    padding: 8px 12px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    transition: background-color 200ms ease;
  }

  @media (hover: hover) and (pointer: fine) {
    .main-nav a:not(.btn):hover {
      background: var(--surface-2);
    }
  }

  .main-nav a[aria-current="page"]:not(.btn) {
    background: var(--surface-2);
    color: var(--heading);
  }

  /* Home page: menu links are white over the photo until you scroll */
  .has-photo-hero .site-header:not(.scrolled) .main-nav a:not(.btn) {
    color: #FFFFFF;
  }

  .main-nav .btn {
    margin: 0 4px 0 12px;
    padding: 0 18px;
  }

  .feature-row {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 120px;
  }

  .feature-row-flip .feature-text {
    order: 2;
  }

  .feature-visual {
    padding: 64px 40px;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .founder {
    grid-template-columns: 380px 1fr;
    gap: 64px;
  }

  .demo-layout {
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
  }

  .footer-wordmark {
    font-size: 21vw;
  }
}


/* ---------- 18. HOME PAGE LAYOUTS (added in the calm redesign) ---------- */

/* SPLIT: heading on the left, content on the right (stacked on phones) */
.split {
  display: grid;
  gap: 32px;
}

.split-head h2 {
  margin-bottom: 14px;
  font-size: 38px;
}

.split-head p {
  max-width: 26em;
  color: var(--text-light);
}

/* FULL-WIDTH PHOTO: the highway at dusk, with a dark layer and one line on the sky */
.photo-band {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 72svh;
  overflow: hidden;
  background: #0B0B0C;
  text-align: center;
}

.photo-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
}

.photo-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 11, 12, 0.55);
}

.photo-band h2 {
  position: relative;
  z-index: 1;
  max-width: 14em;
  margin: 0 auto;
  padding: 0 20px 18vh;          /* sits up in the sky, above the trucks */
  color: #FFFFFF;
  font-size: 34px;
}

.photo-credit {
  position: absolute;
  right: 16px;
  bottom: 12px;
  z-index: 1;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
}

/* STATS: three big numbers with small gray labels */
.stats {
  display: grid;
  gap: 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stat-number {
  display: block;
  margin-bottom: 8px;
  color: var(--heading);
  font-family: var(--font-serif);
  font-size: 42px;
  white-space: nowrap;
  line-height: 1.05;
}

.stat-label {
  color: var(--text-light);
  font-size: 16px;
}

/* WHY LIST: plain two-column text list, no icons */
.why-list {
  display: grid;
  gap: 0 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.why-list li {
  padding: 22px 0;
  border-top: 1px solid var(--border);
}

.why-list h3 {
  margin-bottom: 6px;
}

.why-list p {
  color: var(--text-light);
  font-size: 16px;
}

/* STEPS, PLAIN: numbers in a row, no boxes */
.steps-plain .step {
  padding: 0;
  border: none;
  background: none;
}

.steps-plain .step-number {
  margin-bottom: 14px;
  font-size: 44px;
}

/* WEBSITE MOCK: a realistic browser window showing a contractor's site */
.browser {
  width: 100%;
  max-width: 520px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.browser-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.browser-url {
  flex: 1;
  margin-left: 8px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-light);
  font-size: 14px;
}

.browser-page {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.site-name {
  color: var(--heading);
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1.1;
}

.site-line {
  color: var(--text-light);
  font-size: 14px;
}

.site-form {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.site-form span {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-light);
  font-size: 14px;
}

.site-form b {
  padding: 9px 10px;
  border-radius: 6px;
  background: var(--purple);
  color: #FFFFFF;
  font-size: 14px;
  text-align: center;
}

.site-alert {
  justify-self: end;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--green-bg);
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
}

/* WHO'S BEHIND TRADEWISE: photo on the left, story on the right */
.founder-row {
  display: grid;
  gap: 32px;
  align-items: center;
}

.founder-pic {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 360px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  overflow: hidden;
}

/* "Photo coming soon" text shows until images/alex.jpg exists */
.founder-pic span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--text-light);
  font-size: 14px;
}

.founder-pic img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-story h2 {
  margin-bottom: 18px;
  font-size: 38px;
}

.founder-story p {
  max-width: 32em;
  margin-bottom: 16px;
  font-size: 19px;
}

.founder-sign {
  color: var(--text-light);
  font-size: 16px;
}

/* FOOTER: photo credits line */
.photo-credits {
  color: #8E8E95;
  font-size: 14px;
}


/* ---------- 19. HOME PAGE MOTION ----------
   Slow and subtle. Everything here is switched off for people who
   turn on "reduce motion" on their phone or computer (bottom of this section). */

@media (prefers-reduced-motion: no-preference) {
  /* The hero photo zooms in very slowly, once, over 22 seconds (it never zooms back out) */
  .hero-media img {
    animation: slow-zoom 22s ease-out both;
  }

  /* Phone notifications slide up one by one, about 1 second apart, and stay */
  /* style="--n:0", "--n:1"... in the HTML sets each message's turn */
  .note {
    animation: note-in 600ms var(--ease-out) both;
    animation-delay: calc(0.6s + var(--n, 0) * 1s);
  }
}

@keyframes slow-zoom {
  from { transform: scale(1); }
  to   { transform: scale(1.04); }
}

@keyframes note-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* Reduce motion: no zoom, no parallax, all phone messages shown at once */
@media (prefers-reduced-motion: reduce) {
  .hero-media,
  .hero-media img {
    transform: none !important;
    animation: none !important;
  }
}


/* ---------- 20. HOME PAGE: BIGGER SCREENS ---------- */

@media (min-width: 700px) {
  .photo-hero h1 { font-size: 64px; }
  .photo-hero .hero-sub { font-size: 20px; }

  .row-head h2,
  .split-head h2,
  .founder-story h2 { font-size: 48px; }

  .photo-band h2 { font-size: 48px; }

  /* 2 cards fit on a tablet */
  .tool-card { flex-basis: calc((100% - 16px) / 2); }

  .stats { grid-template-columns: 1fr 1.2fr 1.3fr; }
  .stat-number { font-size: 40px; }

  .why-list { grid-template-columns: 1fr 1fr; }

  .header-inner { padding: 0 32px; }
}

@media (min-width: 980px) {
  /* Hero: words and phone on the left, the truck stays clear on the right */
  .hero-content { padding: 150px 32px 0; }
  .photo-hero h1 { font-size: 76px; }
  .hero-media img { object-position: 20% 60%; }
  .hero-phone { margin-top: 56px; }

  .split {
    grid-template-columns: 5fr 7fr;
    gap: 72px;
    align-items: start;
  }

  .split-head { position: sticky; top: 110px; }

  .founder-row {
    grid-template-columns: 360px 1fr;
    gap: 72px;
  }

  .photo-band h2 { font-size: 58px; }
}

/* Phones: the photo fills only the first screen, showing its right side so the
   truck stays in view between the words and the phone. The phone comes after. */
@media (max-width: 699px) {
  .hero-media,
  .hero-shade {
    bottom: auto;
    height: 100svh;
  }

  .hero-media img { object-position: 82% 62%; }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(11, 11, 12, 0.6) 0%, rgba(11, 11, 12, 0.2) 45%, rgba(11, 11, 12, 0.15) 70%, #0B0B0C 100%);
  }

  .hero-copy { min-height: calc(100svh - 150px); }
  .photo-hero h1 { font-size: 40px; }
  .hero-phone { margin: 0 auto -120px; }
  .photo-band h2 { padding-bottom: 28vh; }
}


/* ---------- 21. SMALL HELPERS FOR THE REDESIGN ---------- */
.stats-section { padding-bottom: 56px; }

.mt-24 { margin-top: 24px; }

.row-sub {
  max-width: 34em;
  margin-top: 12px;
  color: var(--text-light);
}

/* The website features sit in one column next to the website picture */
.why-list.why-list-tight {
  grid-template-columns: 1fr;
  margin-bottom: 8px;
}

.why-list-tight li {
  padding: 16px 0;
}

/* FAQ next to its heading: no extra centering */
.faq.faq-left {
  max-width: none;
  margin: 0;
}

.feature-visual .browser {
  margin: 0 auto;
}

/* Tablets: the footer logo gets its own row, and the 4 link columns sit below it */
@media (min-width: 700px) and (max-width: 979px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}


/* ---------- 22. SERVICES, WORK AND CONTACT (Home page) ---------- */

/* No italic words in headings: plain and calm */
h1 em,
h2 em {
  font-style: normal;
}

/* Header: the tagline next to the logo (big screens only) and the phone number */
.header-tagline {
  display: none;
  max-width: 230px;
  margin: 0 auto 0 4px;
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.3;
}

.has-photo-hero .site-header:not(.scrolled) .header-tagline {
  color: rgba(255, 255, 255, 0.8);
}

.nav-phone {
  font-weight: 700;
}

/* Hero: two buttons side by side, and the phone line */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* White outline button for dark photos */
.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: #FFFFFF;
}

@media (hover: hover) and (pointer: fine) {
  .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #FFFFFF;
  }
}

.photo-hero .hero-note a {
  color: #FFFFFF;
  font-weight: 700;
}

/* SERVICES: websites big on the left, the other two stacked on the right */
.services {
  display: grid;
  gap: 16px;
}

.service {
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.service h3,
.service .service-title {
  margin-bottom: 14px;
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: normal;
  line-height: 1.25;
}

.service .check-list {
  margin-bottom: 18px;
  font-size: 16px;
}

.tiers {
  display: grid;
  gap: 20px;
}

.tier {
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.tier-name {
  color: var(--heading);
  font-weight: 700;
}

.tier-price {
  margin: 2px 0 14px;
  color: var(--heading);
  font-family: var(--font-serif);
  font-size: 40px;
  line-height: 1.05;
}

.service-note {
  margin: -8px 0 14px;
  color: var(--accent-text);
  font-size: 16px;
  font-weight: 600;
}

.service-extra {
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--text);
  font-size: 16px;
}

.services-cta {
  margin-top: 32px;
}

/* Pricing page: the line about custom automations under the price cards */
.services-note {
  max-width: 640px;
  margin-top: 28px;
  color: var(--text);
  font-size: 16px;
}

/* WORK: one big real project, then two smaller cards */
.work-feature {
  display: grid;
  gap: 28px;
  margin-bottom: 20px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

/* The "visit the live site" box (until a screenshot is added) */
.work-shot {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--heading);
  text-decoration: none;
}

.work-shot-url {
  color: var(--text-light);
  font-size: 14px;
}

.work-shot-name {
  font-family: var(--font-serif);
  font-size: 40px;
  line-height: 1.05;
}

.work-shot-go {
  color: var(--accent-text);
  font-weight: 700;
}

@media (hover: hover) and (pointer: fine) {
  .work-shot:hover { border-color: var(--accent-text); }
}

.work-text h3 {
  margin-bottom: 14px;
  font-size: 24px;
}

.work-text .check-list {
  margin-bottom: 20px;
}

/* The client's review */
.review {
  margin: 0 0 20px;
  padding: 20px 22px;
  border-left: 3px solid var(--purple);
  border-radius: 0 12px 12px 0;
  background: var(--surface-2);
}

.review p {
  margin-bottom: 10px;
  color: var(--heading);
  font-size: 18px;
  line-height: 1.55;
}

.review footer {
  color: var(--text-light);
  font-size: 16px;
  font-weight: 600;
}

.work-pair {
  display: grid;
  gap: 20px;
}

.work-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.work-card h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.work-card > p {
  margin-bottom: 16px;
}

.work-card .arrow-link {
  margin-top: auto;
}

.work-card-img {
  display: block;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.work-card-img img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* The truck shop card shows a small screen instead of a photo */
.work-card-ui {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 20px;
  background: var(--surface-2);
}

.work-tag {
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--purple-soft);
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 700;
}

/* "Sample data" note under example screens */
.sample-note {
  color: var(--text-light);
  font-size: 14px;
}

.feature-visual .sample-note {
  margin-top: 12px;
}

.row-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

/* FACTS: the old stats, as plain sentences */
.facts {
  display: grid;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.facts li {
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.facts h3 {
  margin-bottom: 6px;
  font-size: 22px;
}

/* WHO'S BEHIND: just the story until a photo is added */
.founder-row-solo {
  grid-template-columns: 1fr !important;
}

/* CONTACT: details on the left, form on the right */
.contact {
  display: grid;
  gap: 32px;
}

.contact-info h2 {
  margin-bottom: 14px;
  font-size: 38px;
}

.contact-info > p {
  margin-bottom: 24px;
  color: var(--text-light);
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: grid;
  gap: 2px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  color: var(--heading);
  font-size: 17px;
}

.contact-list span {
  color: var(--text-light);
  font-size: 14px;
}

.contact-list a {
  color: var(--heading);
  font-weight: 700;
  text-decoration: none;
}

/* Bigger screens */
@media (min-width: 700px) {
  .tiers { grid-template-columns: 1fr 1fr; }
  .work-pair { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .contact-info h2 { font-size: 48px; }
  .work-feature { padding: 32px; }
}

@media (min-width: 980px) {
  .services {
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: auto auto;
  }

  .service-main {
    grid-row: span 2;
    padding: 36px;
  }

  .work-feature {
    grid-template-columns: 1fr 1.1fr;
    gap: 48px;
    align-items: center;
  }

  .contact {
    grid-template-columns: 1fr 1.3fr;
    gap: 64px;
    align-items: start;
  }

  .photo-hero h1 { font-size: 60px; }
}

/* The phone number shows in the menu bar from laptop size up */
@media (min-width: 980px) and (max-width: 1199px) {
  .nav-phone { display: none; }
}

/* The tagline next to the logo only shows when there's room */
@media (min-width: 1560px) {
  .header-tagline { display: block; }
  .logo { margin-right: 0; }
}

/* Menu bar: the logo never shrinks, and menu links stay on one line */
.logo { flex-shrink: 0; }
.main-nav a { white-space: nowrap; }
@media (min-width: 980px) {
  .main-nav { gap: 2px; }
  .main-nav a { padding: 8px 10px; }
  .hero-copy { max-width: 700px; }
}


/* ---------- 23. FLOATING MENU BAR, CENTERED TOOL ROW, WORK SCREENSHOTS ---------- */

/* The menu bar floats: narrower than the screen, rounded, with a thin border.
   On the Home page it's see-through over the photo until you scroll. */
.site-header {
  top: 12px;
  left: 0;
  right: 0;
  width: min(1220px, calc(100% - 24px));
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(22, 22, 24, 0.94);
  transition: background-color 300ms ease, border-color 300ms ease;
}

.has-photo-hero .site-header:not(.scrolled) {
  border-color: transparent;
  background: transparent;
}

.header-inner {
  height: 64px;
  padding: 0 10px 0 18px;
}

/* The phone menu drops down right under the floating bar */
.main-nav {
  top: 72px;
  left: 0;
  right: 0;
}

/* THE TOOL ROW: lines up with the rest of the page, 3 cards at a time on computers */
.tool-grid {
  padding: 0 0 8px;
  scroll-padding: 0;
}

.tool-card {
  flex-basis: 86%;
  max-width: none;
}

@media (min-width: 980px) {
  .tool-card { flex-basis: calc((100% - 32px) / 3); }
}

/* Under the row: sample note left, arrows in the middle, link right (stacked on phones) */
.row-foot {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-top: 24px;
  text-align: center;
}

.row-foot .row-btn {
  width: 52px;
  height: 52px;
  border-color: var(--text-light);
}

@media (min-width: 700px) {
  .row-foot {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .row-foot .sample-note { justify-self: start; text-align: left; }
  .row-foot .arrow-link  { justify-self: end; }
}

/* MillerSkin: the screenshot of the live site */
.work-shot-img {
  display: block;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.work-shot-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: left top;
  transform: scale(1.02);          /* hides the browser's scrollbar at the right edge */
  transform-origin: left top;
  transition: transform 400ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .work-shot-img:hover img,
  .work-card-img:hover img { transform: scale(1.04); }
  .work-card-img img { transition: transform 400ms var(--ease-out); }
}


/* ---------- 24. HOME HERO: THE INTERSTATE BRIDGE PHOTO ----------
   The bridge is on the right of the photo. object-position 75% keeps the
   towers in view when a narrow screen crops the sides.
   (These rules come last, so they win over the older hero rules above.) */
.photo-hero .hero-media img,
.has-photo-hero .hero-media img {
  object-position: 75% center;
  /* Zoom from near the top of the towers, so their tops never get cut off */
  transform-origin: 75% 5%;
}

/* Dark on the left behind the words, clear on the right over the bridge.
   The bottom fades into the page color, so there's no hard edge. */
.photo-hero .hero-shade {
  background:
    linear-gradient(90deg, rgba(11, 11, 12, 0.66) 0%, rgba(11, 11, 12, 0.42) 32%, rgba(11, 11, 12, 0.08) 60%, rgba(11, 11, 12, 0) 78%),
    linear-gradient(180deg, rgba(11, 11, 12, 0.2) 0%, rgba(11, 11, 12, 0) 20%, rgba(11, 11, 12, 0) 62%, var(--bg) 100%);
}

/* Phones: the words cover the whole width, so the photo gets a little
   darker overall, and still fades into the page at the bottom */
@media (max-width: 699px) {
  .photo-hero .hero-shade {
    background:
      linear-gradient(90deg, rgba(11, 11, 12, 0.5) 0%, rgba(11, 11, 12, 0.24) 70%, rgba(11, 11, 12, 0.06) 100%),
      linear-gradient(180deg, rgba(11, 11, 12, 0.28) 0%, rgba(11, 11, 12, 0.06) 40%, rgba(11, 11, 12, 0.2) 70%, var(--bg) 100%);
  }
}


/* ---------- 25. MOBILE FIXES: HERO PHONE, TOOL CAROUSEL, SOLID MENU BAR ---------- */

/* PHONES AND SMALL TABLETS (under 768px): the first screen shows only the words,
   buttons and the bridge. The "Good morning" phone is its own block below it. */
@media (max-width: 767px) {
  .hero-media,
  .hero-shade {
    bottom: auto;
    height: 100svh;
  }

  /* No parallax here: the photo would slide past the end of its dark fade */
  .hero-media {
    transform: none;
  }

  .hero-copy {
    min-height: calc(100svh - 150px);
  }

  .photo-hero {
    padding-bottom: 40px;
  }

  .hero-phone {
    margin: 48px auto 0;
    animation: none;
    transform: none;
  }
}

/* THE TOOL CAROUSEL: native scroll snap, one card per swipe */
.tool-grid {
  align-items: stretch;            /* every card the same height */
  scroll-snap-type: x mandatory;
}

.tool-card {
  scroll-snap-align: start;        /* the current card starts at the left edge, so no cut-off card on the left */
  scroll-snap-stop: always;        /* a swipe never skips past a card */
}

/* Phones: one card fully visible (about 86% of the screen), the next one peeks in on the right */
@media (max-width: 699px) {
  /* The row runs to the right edge of the screen, so the next card can peek in.
     The space at the end lets the last card line up on the left like the others. */
  .tool-grid {
    margin-right: -20px;
    padding-right: calc(14vw - 20px);
  }

  .tool-card { flex-basis: 86vw; }
}

.tool-card:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: -2px;
}

@media (prefers-reduced-motion: no-preference) {
  .tool-grid { scroll-behavior: smooth; }
}

/* Arrows: dimmed at the first and last card */
.row-btn:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
}

/* Dots under the cards: which card you're on (made by js/main.js) */
.row-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.row-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background-color 200ms ease, width 200ms var(--ease-out);
}

.row-dots span.active {
  width: 22px;
  border-radius: 4px;
  background: var(--accent-text);
}

/* THE MENU BAR: more solid once you scroll, with a soft blur behind it */
.site-header,
.has-photo-hero .site-header.scrolled {
  background: rgba(11, 11, 12, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.has-photo-hero .site-header:not(.scrolled) {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}


/* ---------- 26. FIXES: HERO FADE GAP, CENTERED ARROWS ---------- */

/* The slow zoom makes the photo a little bigger. Clip it to its box,
   so it never pokes out below the dark fade at the bottom. */
.hero-media {
  overflow: hidden;
}

/* Under the cards on phones: one full-width column, so the arrows sit in the true middle */
@media (max-width: 699px) {
  .row-foot {
    grid-template-columns: minmax(0, 1fr);
  }
}
