/* COLORS AND SETTINGS
   Change these values to restyle the whole site.
   The site avoids pure white so it's easy on the eyes at full brightness. */
:root {
  --text-dark: #111418;    /* main text and the logo name */
  --text-mid: #3d4651;     /* nav links */
  --text-light: #6b7684;   /* tagline under the logo */
  --border: #e2dfd9;       /* thin divider lines */
  --page-bg: #f3f1ec;      /* page background, a soft warm stone */
  --surface: #fbfaf8;      /* cards, header and buttons, a soft off white */
  --button: #111418;       /* Book a demo button */
  --button-hover: #2b3038; /* button color when hovered */

  /* Corner sizes. Every rounded corner on the site uses one of these four,
     plus fully round pills (999px) and circles (50%), so shapes stay consistent. */
  --radius-xs: 4px;   /* tiny details inside the mockups */
  --radius-sm: 8px;   /* buttons, nav links, small bars */
  --radius-md: 12px;  /* inputs, icons, tiles inside cards */
  --radius-lg: 20px;  /* cards, forms and other large panels */
}


/* FONTS
   The font files live in the "fonts" folder on your own site,
   so the page doesn't load anything from outside servers. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-weight: 400;
  font-display: swap;
  src: url("fonts/plus-jakarta-sans-400.woff2") format("woff2");
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-weight: 500;
  font-display: swap;
  src: url("fonts/plus-jakarta-sans-500.woff2") format("woff2");
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-weight: 600;
  font-display: swap;
  src: url("fonts/plus-jakarta-sans-600.woff2") format("woff2");
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-weight: 700;
  font-display: swap;
  src: url("fonts/plus-jakarta-sans-700.woff2") format("woff2");
}


/* BASE
   Removes the browser's default spacing and sets the font. */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  background-color: var(--page-bg);
  color: var(--text-dark);
}

/* Scrolls smoothly when a link jumps to a section, and stops
   a little early so the sticky header doesn't cover the title */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

/* Links have no underline and use the color of their parent */
a {
  color: inherit;
  text-decoration: none;
}


/* ANNOUNCEMENT STRIP
   The thin dark bar at the very top of the page. */
.announce {
  background-color: var(--text-dark);
  color: #d6dbe1;
  font-size: 13px;
}

/* Centers the message and link in one row */
.announce-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 24px;
}

/* The small white dot that pulses */
.announce-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #ffffff;
  animation: pulse 2.4s infinite;
}

/* The "Book a demo" link */
.announce-link {
  color: #ffffff;
  font-weight: 600;
}

.announce-link:hover {
  color: #aab2bc;
}

/* The pulse animation: a ring grows out of the dot and fades away */
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}


/* HEADER BAR
   The white bar that holds the logo, nav and buttons. */
.site-header {
  position: sticky;              /* stays at the top while you scroll */
  top: 0;
  z-index: 100;                  /* sits above everything else */
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
}

/* Lines up the logo, nav and buttons in one row,
   stretched from the left edge to the right edge */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
  height: 76px;
  padding: 0 32px;
}


/* LOGO
   The icon box plus the company name and tagline. */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* The dark rounded square that holds the icon */
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background-color: var(--text-dark);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-mark svg {
  width: 24px;
  height: 24px;
}

/* Stacks the name on top of the tagline */
.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.brand-tagline {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 3px;
}


/* NAVIGATION LINKS
   Features, How it works, Pricing, Contact. */
.main-nav {
  display: flex;
  gap: 6px;
  margin-right: auto;   /* pushes the buttons to the far right */
}

.nav-link {
  padding: 8px 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-mid);
  border-radius: var(--radius-sm);
}

/* The small "Soon" tag next to Web in the menu */
.nav-soon {
  margin-left: 4px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-mid);
  background-color: var(--page-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  vertical-align: 1px;
}

/* Darker text and an underline on hover */
.nav-link:hover {
  color: var(--text-dark);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}


/* RIGHT SIDE BUTTON
   The Book a demo button. */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* The dark Book a demo button */
.demo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  background-color: var(--button);
  border-radius: var(--radius-sm);
  transition: background-color 0.2s;
}

.demo-btn:hover {
  background-color: var(--button-hover);
}

/* The arrow slides a little to the right on hover */
.demo-arrow {
  transition: transform 0.2s;
}

.demo-btn:hover .demo-arrow {
  transform: translateX(3px);
}


/* HAMBURGER BUTTON
   Only shows on small screens (see the bottom of this file). */
.menu-toggle {
  display: none;            /* hidden on desktop */
  position: relative;
  width: 42px;
  height: 42px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* The three lines inside the button */
.menu-line {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background-color: var(--text-dark);
}

.menu-line:nth-child(1) { top: 14px; }
.menu-line:nth-child(2) { top: 20px; }
.menu-line:nth-child(3) { top: 26px; }


/* MOBILE MENU
   The panel that drops down when the hamburger is tapped.
   script.js shows and hides it. */
.mobile-menu {
  padding: 12px 24px 24px;
  border-top: 1px solid var(--border);
  background-color: var(--surface);
}

/* Stacks the links on top of each other */
.mobile-nav {
  display: flex;
  flex-direction: column;
}

.mobile-link {
  padding: 14px 4px;
  font-size: 17px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

/* Holds the Book a demo button */
.mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

/* Makes the demo button full width inside the mobile menu */
.demo-btn-full {
  width: 100%;
}

/* MENU OPEN STATE
   script.js adds the class "menu-open" to the header when the menu opens. */

/* The menu slides down and fades in each time it opens */
.mobile-menu:not([hidden]) {
  animation: menu-in 0.25s ease-out;
}

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* The three hamburger lines move smoothly when they change */
.menu-line {
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

/* When open, the top and bottom lines cross into an X and the middle one hides */
.menu-open .menu-line:nth-child(1) {
  top: 20px;
  transform: rotate(45deg);
}

.menu-open .menu-line:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-line:nth-child(3) {
  top: 20px;
  transform: rotate(-45deg);
}


/* TABLETS (900px wide and smaller)
   Hides the nav links and shows the hamburger instead. */
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .header-container {
    height: 68px;
  }
}


/* PHONES (560px wide and smaller)
   Tightens spacing and hides extra items. */
@media (max-width: 560px) {
  /* Only the "Book a demo" link shows in the top strip */
  .announce-text {
    display: none;
  }

  .header-container {
    padding: 0 16px;
  }

  /* The demo button moves into the mobile menu */
  .header-actions .demo-btn {
    display: none;
  }

  .mobile-menu {
    padding: 8px 16px 20px;
  }
}


/* HERO
   The big opening section under the header. */
.hero {
  padding: 88px 32px 96px;
}

/* Splits the hero into two columns: text on the left, preview on the right */
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 64px;
  max-width: 1240px;
  margin: 0 auto;
}

/* The small rounded label above the headline */
.hero-label {
  display: inline-block;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* The main headline */
.hero-title {
  margin-top: 20px;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -1.5px;
}

/* The paragraph under the headline */
.hero-subtitle {
  margin-top: 20px;
  max-width: 520px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-mid);
}

/* Puts the two buttons side by side */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* Makes the hero demo button a little bigger than the header one */
.hero-btn {
  padding: 14px 22px;
  font-size: 16px;
}

/* The white "Watch how it works" button */
.secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  font-size: 16px;
  font-weight: 600;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s;
}

/* Underlines the button text on hover */
.secondary-btn:hover span {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* The small line of text under the buttons */
.hero-note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-light);
}


/* HERO PREVIEW
   The sample portal card on the right side of the hero. */
.preview-card {
  padding: 24px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 48px -24px rgba(17, 20, 24, 0.25);
}

/* Card title on the left, date on the right */
.preview-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.preview-title {
  font-size: 16px;
  font-weight: 700;
}

.preview-date {
  font-size: 13px;
  color: var(--text-light);
}

/* The row of three numbers */
.preview-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.stat {
  display: flex;
  flex-direction: column;
  padding: 14px;
  background-color: var(--page-bg);
  border-radius: var(--radius-md);
}

.stat-number {
  font-size: 24px;
  font-weight: 700;
}

.stat-label {
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-light);
}

/* The list of crew members */
.crew-list {
  list-style: none;
  margin-top: 20px;
}

/* One crew member: initials, name and job, then status */
.crew-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

/* The grey circle with initials */
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-mid);
  background-color: #eef0f2;
  border-radius: 50%;
}

/* Name on top, job underneath */
.crew-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  font-size: 14px;
}

.crew-info small {
  font-size: 12px;
  color: var(--text-light);
}

/* The small status tag on the right */
.status {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
}

.status-on {
  color: #1f7a45;
  background-color: #e6f4ec;
}

.status-break {
  color: #8a5a00;
  background-color: #fbf1dc;
}

.status-off {
  color: var(--text-light);
  background-color: #eef0f2;
}


/* HERO PREVIEW ANIMATIONS
   Makes the sample card feel alive. Pure CSS, no JavaScript needed. */

/* 1. The whole card fades and rises in when the page loads */
.hero-preview {
  animation: card-in 0.8s ease-out both;
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 2. Each crew row slides in one after another */
.crew-row {
  animation: row-in 0.5s ease-out both;
}

.crew-row:nth-child(1) { animation-delay: 0.5s; }
.crew-row:nth-child(2) { animation-delay: 0.65s; }
.crew-row:nth-child(3) { animation-delay: 0.8s; }
.crew-row:nth-child(4) { animation-delay: 0.95s; }

@keyframes row-in {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* 3. A small pulsing dot inside every "On site" tag */
.status-on::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  vertical-align: middle;
  border-radius: 50%;
  background-color: #1f7a45;
  animation: live-dot 1.6s ease-in-out infinite;
}

@keyframes live-dot {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

/* Turns all of these animations off for people who
   have reduced motion switched on in their device settings */
@media (prefers-reduced-motion: reduce) {
  .hero-preview,
  .crew-row,
  .status-on::before {
    animation: none;
  }
}

/* PREVIEW TABS
   The row of tabs at the top of the sample card.
   All four tabs are the same width so the pill can slide evenly. */
.preview-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.tab {
  position: relative;
  z-index: 1;            /* keeps the text above the pill */
  padding: 7px 0;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  white-space: nowrap;
}

/* The dark pill that sits behind the active tab.
   It is one quarter wide, the same as one tab. */
.tab-pill {
  position: absolute;
  top: 0;
  left: 0;
  width: 25%;
  height: calc(100% - 16px);   /* full tab height, minus the space under the tabs */
  background-color: var(--text-dark);
  border-radius: 999px;
}


/* PREVIEW SCREENS
   All four screens sit on top of each other in the same spot.
   Each one fades in, stays for about 5 seconds, then fades out.
   The full loop takes 20 seconds (4 screens x 5 seconds). */
.screens {
  display: grid;
}

.screen {
  grid-area: 1 / 1;   /* stacks every screen in the same spot */
  opacity: 0;
  animation: screen-cycle 20s infinite;
}

/* Each screen starts 5 seconds after the one before it */
.screen:nth-child(1) { animation-delay: 0s; }
.screen:nth-child(2) { animation-delay: 5s; }
.screen:nth-child(3) { animation-delay: 10s; }
.screen:nth-child(4) { animation-delay: 15s; }

/* Fade in over 1 second, stay, then fade out over 1 second.
   The fade out overlaps the next screen's fade in, so they blend
   into each other instead of flashing to blank in between. */
@keyframes screen-cycle {
  0%        { opacity: 0; transform: translateY(4px); }
  5%, 25%   { opacity: 1; transform: translateY(0); }
  30%, 100% { opacity: 0; transform: translateY(0); }
}

.screen {
  animation-timing-function: ease-in-out;
}

/* The tab text turns white while its screen is showing,
   using the same timing as the screens */
.tab {
  animation: tab-cycle 20s ease-in-out infinite;
}

.tab:nth-child(1) { animation-delay: 0s; }
.tab:nth-child(2) { animation-delay: 5s; }
.tab:nth-child(3) { animation-delay: 10s; }
.tab:nth-child(4) { animation-delay: 15s; }

@keyframes tab-cycle {
  0%        { color: var(--text-light); }
  5%, 25%   { color: #ffffff; }
  30%, 100% { color: var(--text-light); }
}

/* The pill slides one tab to the right every 5 seconds,
   then slides back to the first tab when the loop restarts.
   The 1 second delay lines its slide up with the screen fades. */
.tab-pill {
  animation: pill-slide 20s ease-in-out 1s infinite;
}

@keyframes pill-slide {
  0%, 20%   { transform: translateX(0); }
  25%, 45%  { transform: translateX(100%); }
  50%, 70%  { transform: translateX(200%); }
  75%, 95%  { transform: translateX(300%); }
  100%      { transform: translateX(0); }
}


/* SCREEN 2: MY HOURS
   Big total at the top, then a bar for each day. */
.hours-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}

.hours-number {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1px;
}

.hours-number small {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-light);
}

/* The row of bars, lined up along the bottom */
.bars {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  height: 160px;
  margin-top: 24px;
  padding: 16px;
  background-color: var(--page-bg);
  border-radius: var(--radius-md);
}

/* One day: the bar with the day name under it */
.bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 1;
  height: 100%;
}

.bar-col small {
  font-size: 12px;
  color: var(--text-light);
}

/* Each bar's height, out of 10 hours (10 hours = full height) */
.bar-7-5 { height: 75%; }
.bar-8   { height: 80%; }
.bar-8-5 { height: 85%; }
.bar-9   { height: 90%; }

.bar {
  width: 100%;
  max-width: 36px;
  background-color: var(--text-dark);
  border-radius: var(--radius-sm);
  transform-origin: bottom;
  animation: bar-grow 20s ease-out 5s infinite;
}

/* The bars grow up from the bottom each time this screen shows */
@keyframes bar-grow {
  0%        { transform: scaleY(0); }
  6%, 100%  { transform: scaleY(1); }
}

/* Small grey line of text at the bottom of a screen */
.screen-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-light);
}


/* SCREEN 3: HOURS AND LOGS
   A simple table of clock ins and clock outs. */
.log-table {
  margin-top: 20px;
  font-size: 13px;
}

/* Four columns: name, in, out, hours */
.log-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 0.6fr;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.log-row span:last-child {
  text-align: right;
  font-weight: 600;
}

/* The column titles */
.log-head {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  border-top: none;
}

/* The total row at the bottom */
.log-total {
  font-weight: 700;
}

/* Each log entry slides in one after another when this screen shows.
   The table headings (row 1) come in with the screen itself,
   then rows 2 to 6 follow, about a third of a second apart. */
.log-row:nth-child(n+2) {
  opacity: 0;
  animation: log-in 20s ease-out infinite both;
}

.log-row:nth-child(2) { animation-delay: 10.4s; }
.log-row:nth-child(3) { animation-delay: 10.7s; }
.log-row:nth-child(4) { animation-delay: 11.0s; }
.log-row:nth-child(5) { animation-delay: 11.3s; }
.log-row:nth-child(6) { animation-delay: 11.6s; }

/* Slide in, stay while the screen is showing, then hide
   so the rows are ready to slide in again next loop */
@keyframes log-in {
  0%        { opacity: 0; transform: translateX(12px); }
  4%, 26%   { opacity: 1; transform: translateX(0); }
  30%, 100% { opacity: 0; transform: translateX(0); }
}

/* The small "Edited by manager" note under a name */
.edited {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-style: normal;
  color: #8a5a00;
}


/* SCREEN 4: SCHEDULE
   A list of jobs for the week. */
.schedule-list {
  list-style: none;
  margin-top: 20px;
}

/* One job: date box, job and crew, start time */
.shift {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

/* The small box with the day and date */
.shift-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  background-color: var(--page-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.shift-day small {
  margin-bottom: 3px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
}

.shift-time {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
}


/* REDUCED MOTION FOR THE SCREENS
   Some phones turn on "reduce motion" (often along with battery saver).
   The screens still change, but with a simple fade and nothing sliding. */
@media (prefers-reduced-motion: reduce) {
  /* Fade only, no sliding up */
  .screen {
    animation-name: screen-fade;
  }

  /* Bars and log rows just appear, with no growing or sliding */
  .bar,
  .log-row:nth-child(n+2) {
    animation: none;
    opacity: 1;
  }

  /* The sliding pill is hidden, and the active tab gets its own dark background instead */
  .tab-pill {
    display: none;
  }

  .tab {
    border-radius: 999px;
    animation-name: tab-fade;
  }
}

@keyframes screen-fade {
  0%        { opacity: 0; }
  5%, 25%   { opacity: 1; }
  30%, 100% { opacity: 0; }
}

@keyframes tab-fade {
  0%        { color: var(--text-light); background-color: transparent; }
  5%, 25%   { color: #ffffff; background-color: var(--text-dark); }
  30%, 100% { color: var(--text-light); background-color: transparent; }
}

/* HERO ON SMALLER SCREENS
   Stacks the preview under the text and shrinks the headline. */
@media (max-width: 900px) {
  .hero {
    padding: 56px 24px 64px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-title {
    font-size: 40px;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 40px 16px 56px;
  }

  .hero-title {
    font-size: 34px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  /* Smaller tabs so all four fit on one line */
  .tab {
    padding: 6px 0;
    font-size: 11px;
  }

  /* Buttons go full width on phones */
  .hero-buttons a {
    width: 100%;
    justify-content: center;
  }
}


/* SECTION BASICS
   Shared styles every section below the hero can use. */

/* Keeps section content from getting too wide on big screens */
.section-inner {
  max-width: 1240px;
  margin: 0 auto;
}

/* Centers the heading block at the top of a section */
.section-head {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

/* The small grey word above a section title */
.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-light);
}

/* The big section title */
.section-title {
  margin-top: 12px;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
}

/* The paragraph under a section title */
.section-subtitle {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-mid);
}


/* VIDEO SECTION
   A white band with the demo video and four steps under it. */
.video-section {
  padding: 96px 32px;
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* The browser style frame around the video */
.video-frame {
  max-width: 980px;
  margin: 48px auto 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 64px -32px rgba(17, 20, 24, 0.3);
}

/* The grey bar at the top of the frame */
.frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background-color: var(--page-bg);
  border-bottom: 1px solid var(--border);
}

/* The three small circles on the left of the bar */
.frame-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #d9dde1;
}

/* The fake web address in the middle of the bar */
.frame-url {
  margin: 0 auto;
  padding: 4px 16px;
  font-size: 12px;
  color: var(--text-light);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

/* Keeps the video area in a 16:9 widescreen shape */
.video-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: var(--text-dark);
}

/* Makes the video fill the box */
.video-box video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* Four steps in a row under the video */
.video-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 980px;
  margin: 48px auto 0;
}

/* The small number above each step */
.step-number {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-light);
}

.step-title {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 700;
}

.step-text {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-mid);
}


/* VIDEO SECTION ON SMALLER SCREENS */
@media (max-width: 900px) {
  .video-section {
    padding: 72px 24px;
  }

  .section-title {
    font-size: 32px;
  }

  /* Steps go into two columns */
  .video-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .video-section {
    padding: 56px 16px;
  }

  .section-title {
    font-size: 28px;
  }

  .video-frame {
    margin-top: 32px;
    border-radius: var(--radius-md);
  }

  /* Hides the fake web address so the bar stays tidy */
  .frame-url {
    display: none;
  }

  /* Steps stack into one column */
  .video-steps {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 32px;
  }
}


/* FEATURES SECTION
   A grid of cards showing everything the portal does. */
.features-section {
  padding: 96px 32px;
}

/* Three cards per row on big screens */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

/* One feature card */
.feature-card {
  padding: 28px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

/* The rounded square that holds each icon */
.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: var(--page-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

/* The line drawing inside each icon box */
.feature-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--text-dark);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-title {
  margin-top: 20px;
  font-size: 18px;
  font-weight: 700;
}

.feature-text {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-mid);
}


/* The small "more on the way" note under the feature cards */
.more-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  color: var(--text-light);
}

/* The link to the Web page inside the note */
.more-note a {
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* A small dot in front of the note */
.more-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--text-light);
}

/* FEATURES ON SMALLER SCREENS */
@media (max-width: 900px) {
  .features-section {
    padding: 72px 24px;
  }

  /* Two cards per row */
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .features-section {
    padding: 56px 16px;
  }

  /* One card per row */
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 32px;
  }

  /* Icon sits to the left of the title and text,
     so each card is shorter and there's less scrolling */
  .feature-card {
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 16px;
    padding: 18px;
  }

  .feature-icon {
    grid-row: span 2;
  }

  .feature-title {
    margin-top: 0;
    font-size: 17px;
  }

  .feature-text {
    margin-top: 4px;
    font-size: 14px;
  }
}


/* HOW IT WORKS SECTION
   Three numbered steps on a lighter band, with a button underneath. */
.how-section {
  padding: 96px 32px;
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Three steps side by side */
.how-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  max-width: 1040px;
  margin: 64px auto 0;
  list-style: none;
}

/* The thin line that joins the three numbers.
   It runs behind the circles, from the first to the last. */
.how-steps::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 16.6%;
  right: 16.6%;
  height: 1px;
  background-color: var(--border);
}

/* One step, centered */
.how-step {
  position: relative;
  text-align: center;
}

/* The numbered circle */
.how-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  background-color: var(--text-dark);
  border-radius: 50%;
  box-shadow: 0 0 0 8px var(--surface);   /* a gap around the circle so the line doesn't touch it */
}

.how-title {
  margin-top: 24px;
  font-size: 20px;
  font-weight: 700;
}

.how-text {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-mid);
}

/* Centers the button under the steps */
.how-cta {
  display: flex;
  justify-content: center;
  margin-top: 56px;
}


/* HOW IT WORKS ON SMALLER SCREENS
   The steps stack, with the number on the left and the line running down. */
@media (max-width: 900px) {
  .how-section {
    padding: 72px 24px;
  }

  .how-steps {
    grid-template-columns: 1fr;
    gap: 36px;
    max-width: 520px;
    margin-top: 48px;
  }

  /* The joining line now runs down instead of across */
  .how-steps::before {
    top: 28px;
    bottom: 28px;
    left: 28px;
    right: auto;
    width: 1px;
    height: auto;
  }

  .how-step {
    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: 20px;
    text-align: left;
  }

  .how-number {
    grid-row: span 2;
  }

  .how-title {
    margin-top: 12px;
  }

  .how-text {
    margin-top: 6px;
  }
}

@media (max-width: 560px) {
  .how-section {
    padding: 56px 16px;
  }

  .how-cta {
    margin-top: 40px;
  }

  /* Button goes full width on phones */
  .how-cta .demo-btn {
    width: 100%;
  }
}


/* PRICING SECTION
   Two plan cards side by side. Clicking a card opens it to show more. */
.pricing-section {
  padding: 96px 32px;
}

/* Two cards next to each other */
.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;      /* opening one card doesn't stretch the other */
  gap: 24px;
  max-width: 980px;
  margin: 56px auto 0;
}

/* One plan card */
.plan {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.25s;
}

/* A soft shadow on the card while it's open */
.plan[open] {
  box-shadow: 0 24px 48px -28px rgba(17, 20, 24, 0.3);
}

/* The always visible top part of the card, which is clickable */
.plan-summary {
  display: block;
  padding: 32px;
  cursor: pointer;
  list-style: none;           /* hides the browser's default arrow */
}

.plan-summary::-webkit-details-marker {
  display: none;              /* hides the default arrow in Safari */
}

/* The small "Hands off" / "Hands on" label */
.plan-tag {
  display: inline-block;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-mid);
  background-color: var(--page-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.plan-name {
  margin-top: 18px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.plan-line {
  margin-top: 6px;
  font-size: 16px;
  color: var(--text-mid);
}

/* "Monthly" or "One time", with "Custom quote" beside it */
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.plan-price strong {
  font-size: 22px;
  font-weight: 700;
}

.plan-price span {
  font-size: 15px;
  color: var(--text-light);
}

/* The "See what's included" link with the small arrow */
.plan-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 15px;
  font-weight: 600;
}

.plan-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s;
}

/* Underlines the toggle text on hover, matching the rest of the site */
.plan-summary:hover .plan-toggle span {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Swaps "See what's included" for "Show less" and flips the arrow when open */
.toggle-close {
  display: none;
}

.plan[open] .toggle-open {
  display: none;
}

.plan[open] .toggle-close {
  display: inline;
}

.plan[open] .plan-toggle svg {
  transform: rotate(180deg);
}

/* The hidden part that shows when the card is open */
.plan-details {
  padding: 0 32px 32px;
  animation: details-in 0.3s ease-out;
}

@keyframes details-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* The list of what's included, each with a check mark */
.plan-list {
  list-style: none;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.plan-list li {
  position: relative;
  padding: 8px 0 8px 30px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-mid);
}

.plan-list li strong {
  color: var(--text-dark);
}

/* The check mark drawn in front of each item */
.plan-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 14px;
  width: 12px;
  height: 6px;
  border-left: 2px solid var(--text-dark);
  border-bottom: 2px solid var(--text-dark);
  transform: rotate(-45deg);
}

/* The row about custom features costing extra */
.plan-extra {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text-mid);
  background-color: var(--page-bg);
  border-radius: var(--radius-md);
}

.plan-extra strong {
  color: var(--text-dark);
  white-space: nowrap;
}

/* Small grey note at the bottom of an open card */
.plan-small {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-light);
}

/* The line and button under both cards */
.pricing-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
  text-align: center;
}

.pricing-cta p {
  font-size: 15px;
  color: var(--text-mid);
}

/* Respect people who turn off motion */
@media (prefers-reduced-motion: reduce) {
  .plan-details,
  .plan-toggle svg {
    animation: none;
    transition: none;
  }
}


/* PRICING ON SMALLER SCREENS
   The two cards stack. */
@media (max-width: 900px) {
  .pricing-section {
    padding: 72px 24px;
  }

  .plans {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin-top: 40px;
  }
}

@media (max-width: 560px) {
  .pricing-section {
    padding: 56px 16px;
  }

  .plan-summary {
    padding: 24px 20px;
  }

  .plan-details {
    padding: 0 20px 24px;
  }

  .plan-name {
    font-size: 22px;
  }

  /* Button goes full width on phones */
  .pricing-cta .demo-btn {
    width: 100%;
  }
}


/* FAQ SECTION
   A list of questions. Clicking one opens its answer. */
.faq-section {
  padding: 96px 32px;
  background-color: var(--surface);
  border-top: 1px solid var(--border);
}

/* Keeps the list narrow so it's easy to read */
.faq-list {
  max-width: 760px;
  margin: 48px auto 0;
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

/* The question line you click */
.faq-item summary {
  position: relative;
  padding: 22px 48px 22px 0;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;            /* hides the browser's default arrow */
}

.faq-item summary::-webkit-details-marker {
  display: none;               /* hides the default arrow in Safari */
}

/* Underlines the question on hover, matching the rest of the site */
.faq-item summary:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* The plus sign on the right, made of two small lines */
.faq-item summary::before,
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 14px;
  height: 2px;
  background-color: var(--text-dark);
  border-radius: var(--radius-xs);
  transition: transform 0.25s;
}

/* The second line stands up to make the plus */
.faq-item summary::after {
  transform: rotate(90deg);
}

/* When open, the standing line lies down so the plus becomes a minus */
.faq-item[open] summary::after {
  transform: rotate(0deg);
}

/* The answer */
.faq-item p {
  padding: 0 48px 24px 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-mid);
  animation: details-in 0.3s ease-out;
}


/* ABOUT SECTION
   A CrewBase panel on the left and the founder's story on the right. */
.about-section {
  padding: 96px 32px;
  border-top: 1px solid var(--border);
}

/* Two columns */
.about-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 64px;
  max-width: 1040px;
}

/* The dark CrewBase panel on the left */
.about-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  aspect-ratio: 4 / 5;
  padding: 32px;
  text-align: center;
  background-color: var(--text-dark);
  border-radius: var(--radius-lg);
}

/* The logo icon in a rounded square */
.about-brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  color: var(--text-dark);
  background-color: var(--surface);
  border-radius: var(--radius-lg);
}

.about-brand-mark svg {
  width: 52px;
  height: 52px;
}

.about-brand-name {
  margin-top: 8px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.about-brand-line {
  font-size: 14px;
  color: #aab2bc;
}

/* The section title sits on the left instead of centered */
.about-title {
  max-width: 520px;
}

.about-text p {
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-mid);
}

/* The three small fact tags */
.about-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  list-style: none;
}

.about-facts li {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* The name at the bottom, like a signature */
.about-text .about-sign {
  margin-top: 28px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
}

.about-sign span {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
}


/* FAQ AND ABOUT ON SMALLER SCREENS */
@media (max-width: 900px) {
  .faq-section,
  .about-section {
    padding: 72px 24px;
  }

  /* The CrewBase panel goes above the story and gets shorter */
  .about-layout {
    grid-template-columns: 1fr;
    gap: 36px;
    max-width: 600px;
  }

  .about-brand {
    aspect-ratio: auto;
    padding: 40px 24px;
  }
}

@media (max-width: 560px) {
  .faq-section,
  .about-section {
    padding: 56px 16px;
  }

  .faq-list {
    margin-top: 32px;
  }

  .faq-item summary {
    font-size: 16px;
  }

  .faq-item p {
    padding-right: 0;
  }
}


/* CONTACT AND BOOK A DEMO SECTION
   Contact details on the left, the demo request form on the right. */
.contact-section {
  padding: 96px 32px;
  background-color: var(--surface);
  border-top: 1px solid var(--border);
}

/* Two columns */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: start;
  gap: 64px;
  max-width: 1120px;
}

/* The section title here sits on the left instead of centered */
.contact-title {
  max-width: 460px;
}

.contact-text {
  margin-top: 16px;
  max-width: 440px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-mid);
}

/* The list of email, phone and location */
.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 36px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  font-weight: 600;
}

/* Small grey label above each detail */
.contact-method small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-light);
}

/* Underlines the email and phone on hover */
a.contact-method:hover span:last-child {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* The rounded square that holds each icon */
.contact-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: var(--page-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--text-dark);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* THE FORM */
.demo-form {
  padding: 36px;
  background-color: var(--page-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.form-title {
  margin-bottom: 24px;
  font-size: 22px;
  font-weight: 700;
}

/* Two fields side by side */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* One field: the label text above the box */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 600;
}

/* The "(optional)" text in a label */
.field em {
  font-style: normal;
  font-weight: 500;
  color: var(--text-light);
}

/* The boxes people type in */
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text-dark);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.field textarea {
  resize: vertical;
}

/* A dark outline when someone clicks into a box */
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--text-dark);
}

/* Hides the spam trap field completely.
   It has to be fully hidden (display: none), not just moved off screen,
   or the browser's autofill can fill it in by accident and Formspree
   will treat a real person's message as spam. Bots still see it in the code. */
.form-trap {
  display: none;
}

/* Full width submit button */
.form-btn {
  width: 100%;
  margin-top: 6px;
  padding: 15px 20px;
  font-family: inherit;
  font-size: 16px;
  border: none;
  cursor: pointer;
}

.form-note {
  margin-top: 14px;
  font-size: 13px;
  text-align: center;
  color: var(--text-light);
}


/* CONTACT ON SMALLER SCREENS
   The form moves under the contact details. */
@media (max-width: 900px) {
  .contact-section {
    padding: 72px 24px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 600px;
  }
}

@media (max-width: 560px) {
  .contact-section {
    padding: 56px 16px;
  }

  .demo-form {
    padding: 24px 18px;
  }

  /* Fields stack one per row on phones */
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}


/* FOOTER
   The dark band at the very bottom of the page. */
.site-footer {
  padding: 72px 32px 32px;
  color: #aab2bc;
  background-color: var(--text-dark);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
}

/* Brand on the left, then three columns of links */
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Light versions of the logo pieces for the dark background */
.footer-mark {
  color: var(--text-dark);
  background-color: var(--surface);
}

.footer-brand .brand-name {
  color: #ffffff;
}

.footer-brand .brand-tagline {
  color: #8b95a1;
}

.footer-about {
  margin-top: 18px;
  max-width: 300px;
  font-size: 14px;
  line-height: 1.6;
}

/* One column of links */
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
}

.footer-col h4 {
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffffff;
}

/* Links turn white and underline on hover, matching the rest of the site */
.footer-col a:hover,
.back-top:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* The small "Soon" tag next to Web in the footer */
.footer-soon {
  margin-left: 6px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

/* The copyright line and back to top link */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  font-size: 13px;
}


/* FOOTER ON SMALLER SCREENS */
@media (max-width: 900px) {
  .site-footer {
    padding: 56px 24px 28px;
  }

  /* Brand takes the full first row, links go in columns under it */
  .footer-top {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .site-footer {
    padding: 48px 16px 24px;
  }

  /* Two columns of links on phones */
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* WEB PAGE (web.html)
   Everything below is only used on the CrewBase Web page. */

/* The small pulsing dot in the "Coming soon" label */
.soon-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  vertical-align: middle;
  border-radius: 50%;
  background-color: #c27a0e;
  animation: live-dot 1.6s ease-in-out infinite;
}


/* HERO EXAMPLE: a sample website with a business listing card on top */
.web-preview {
  position: relative;
  padding-bottom: 120px;     /* room for the listing card to hang below the website */
}

/* The browser window holding the sample website */
.site-mock {
  overflow: hidden;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 48px -24px rgba(17, 20, 24, 0.25);
}

.mock-page {
  padding: 18px 22px 24px;
}

/* The sample site's top bar: logo and three grey link lines */
.mock-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mock-logo {
  font-size: 14px;
  font-weight: 700;
}

.mock-links {
  display: flex;
  gap: 8px;
}

.mock-links i {
  width: 34px;
  height: 6px;
  border-radius: var(--radius-xs);
  background-color: #dcd8d1;
}

/* The sample site's dark hero banner */
.mock-hero {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  padding: 26px 22px;
  color: #ffffff;
  background: linear-gradient(135deg, #2b3038, var(--text-dark));
  border-radius: var(--radius-md);
}

.mock-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #aab2bc;
}

.mock-headline {
  max-width: 300px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.mock-buttons {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.mock-buttons b,
.mock-buttons em {
  padding: 7px 12px;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.mock-buttons b {
  color: var(--text-dark);
  background-color: var(--surface);
}

.mock-buttons em {
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Three service tiles under the banner */
.mock-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.mock-tiles span {
  padding: 30px 10px 10px;
  font-size: 12px;
  font-weight: 600;
  background-color: var(--page-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

/* The business listing card that overlaps the website */
.listing-mock {
  position: absolute;
  left: -28px;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 270px;
  padding: 18px 20px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 48px -20px rgba(17, 20, 24, 0.35);
  animation: card-in 0.7s ease-out 0.5s both;
}

/* The small "Example" label so nobody mistakes it for a real business */
.example-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-light);
  background-color: var(--page-bg);
  border-radius: 999px;
}

.listing-name {
  font-size: 17px;
  font-weight: 700;
}

.listing-type {
  font-size: 12px;
  color: var(--text-light);
}

.listing-stars {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.stars {
  letter-spacing: 1px;
  color: #e3a008;
}

/* The three small buttons on the listing card */
.listing-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.listing-actions span {
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 999px;
}


/* WHAT'S INCLUDED: same cards as the Portal features, on a lighter band */
.web-included {
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.web-included .feature-card {
  background-color: var(--page-bg);
}

.web-included .feature-icon {
  background-color: var(--surface);
}


/* OWNERSHIP SECTION: heading on the left, three points on the right */
.own-section {
  padding: 96px 32px;
}

.own-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  max-width: 1080px;
}

.own-title {
  max-width: 460px;
}

.own-text {
  margin-top: 16px;
  max-width: 440px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-mid);
}

/* The list of ownership points, each with a check mark */
.own-list {
  list-style: none;
  padding: 12px 32px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.own-list li {
  position: relative;
  padding: 20px 0 20px 34px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border);
}

.own-list li:last-child {
  border-bottom: none;
}

.own-list li strong {
  display: block;
  color: var(--text-dark);
}

.own-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 26px;
  width: 12px;
  height: 6px;
  border-left: 2px solid var(--text-dark);
  border-bottom: 2px solid var(--text-dark);
  transform: rotate(-45deg);
}


/* WEB PRICING CARD: setup + monthly, then the included list */
.web-price-card {
  max-width: 760px;
  margin: 56px auto 0;
  padding: 36px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

/* The two price parts with a plus sign between them */
.web-price-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.web-price-part {
  padding: 22px;
  background-color: var(--page-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.web-price-part strong {
  display: block;
  margin-top: 12px;
  font-size: 20px;
  font-weight: 700;
}

.web-price-part p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-mid);
}

.web-plus {
  font-size: 28px;
  font-weight: 300;
  color: var(--text-light);
}

.web-price-list {
  margin-top: 28px;
}

/* The line about the discount on Portal */
.bundle-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-mid);
}

.bundle-note a {
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bundle-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #1f7a45;
}


/* WEB PAGE ON SMALLER SCREENS */
@media (max-width: 900px) {
  .own-section {
    padding: 72px 24px;
  }

  .own-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 600px;
  }

  .listing-mock {
    left: 12px;
  }
}

@media (max-width: 560px) {
  .own-section {
    padding: 56px 16px;
  }

  .own-list {
    padding: 4px 20px;
  }

  .web-price-card {
    margin-top: 32px;
    padding: 22px 18px;
  }

  /* Setup and monthly stack, plus sign in between */
  .web-price-row {
    grid-template-columns: 1fr;
    gap: 10px;
    justify-items: center;
  }

  .web-price-part {
    width: 100%;
  }

  .mock-headline {
    font-size: 18px;
  }

  .mock-tiles span {
    padding-top: 20px;
  }

  .listing-mock {
    left: 8px;
    width: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .soon-dot,
  .listing-mock {
    animation: none;
  }
}


/* Centers the Web discount line under the Portal pricing button */
.bundle-center {
  justify-content: center;
  margin-top: 4px;
}


/* SIMPLE PAGES
   The thank you page and the "page not found" page: one centered message. */
.simple-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62vh;
  padding: 96px 32px;
  text-align: center;
}

.simple-inner {
  max-width: 560px;
}

/* The round icon at the top of the thank you page */
.simple-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border-radius: 50%;
}

.simple-icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Green version of the icon for the thank you check mark */
.simple-icon-check {
  color: #1f7a45;
  background-color: #e6f4ec;
  box-shadow: 0 0 0 10px rgba(31, 122, 69, 0.08);
}

/* The big "404" on the page not found page */
.simple-big {
  display: block;
  font-size: 120px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -4px;
  color: #d9d5ce;
}

.simple-title {
  margin-top: 12px;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
}

.simple-text {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-mid);
}

/* The two buttons, side by side and centered */
.simple-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}


/* PRIVACY POLICY PAGE
   A narrow column of text that's easy to read. */
.legal-page {
  padding: 72px 32px 96px;
}

.legal-inner {
  max-width: 720px;
  margin: 0 auto;
}

.legal-inner h1 {
  margin-top: 12px;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
}

/* The "last updated" date under the title */
.legal-inner .legal-updated {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-light);
}

.legal-inner h2 {
  margin-top: 40px;
  font-size: 22px;
  font-weight: 700;
}

.legal-inner p,
.legal-inner li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-mid);
}

.legal-inner p {
  margin-top: 12px;
}

.legal-inner ul {
  margin-top: 12px;
  padding-left: 22px;
}

.legal-inner li {
  margin-top: 6px;
}

.legal-inner strong {
  color: var(--text-dark);
}

.legal-inner a {
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* FORM EXTRAS */

/* The privacy link in the small note under each form */
.form-note a {
  color: var(--text-mid);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Red message if a form fails to send */
.form-note.form-error {
  font-weight: 600;
  color: #b42318;
}

/* Faded button while the form is sending */
.form-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}


/* FOOTER BOTTOM LINKS
   Privacy policy and back to top, side by side. */
.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}


/* SIMPLE AND PRIVACY PAGES ON SMALLER SCREENS */
@media (max-width: 560px) {
  .simple-page {
    padding: 64px 16px;
  }

  .simple-title,
  .legal-inner h1 {
    font-size: 32px;
  }

  .simple-big {
    font-size: 88px;
  }

  .simple-buttons a {
    width: 100%;
    justify-content: center;
  }

  .legal-page {
    padding: 48px 16px 64px;
  }
}
