/* ================================================================
   style.css — PoshIQ listing evaluator
   Display/Headings: Bricolage Grotesque 800 (≈ NaN SuperX Sans Display Black)
   Secondary/Body:   DM Sans 300 (≈ NaN SuperX Sans Text Light)
   Palette: warm cream, dark brown #4B1800, sky / blush / yellow / teal
   ================================================================ */

/* Bricolage Grotesque: optical size 96 (widest, most display-like) at weight 800
   — closest free substitute to NaN SuperX Sans Display Black
   DM Sans 300: closest free substitute to NaN SuperX Sans Text Light */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600&display=swap');

/* ================================================================
   VARIABLES - Updated from final design color palette
   ================================================================ */
:root {
  --cream:       #F7F0EC;   /* Off-white/cream - form backgrounds */
  --white:       #ffffff;
  --brown:       #573E2F;   /* Dark brown - main text / headings */
  --sky:         #B5D6FD;   /* Light blue - category cards */
  --sky-light:   #BFEDFE;   /* Very light cyan - accents */
  --teal:        #019BA4;   /* Teal - primary buttons */
  --yellow:      #DAE301;   /* Bright yellow/lime - checkerboard */
  --yellow-soft: #FFD38D;   /* Light orange - pricing card */
  --yellow-pale: #FEDEAA;   /* Pale yellow - accents */
  --red:         #DF4C53;   /* Coral red - alerts */
  --blush:       #FFC7DD;   /* Light pink - item details card */
  --peach:       #FEDBD1;   /* Peachy salmon - geo shapes */
  --peach-alt:   #FED38D;   /* Alternate peach - pricing */
  --mid-grey:    #7a6a60;   /* Keep for contrast */
  --light-grey:  #ede6de;   /* Keep for borders */

  /* Checker border width & square size */
  --bw: 22px;
  --cs: 18px;

  --radius-sm: 8px;
  --radius-md: 16px;
  --shadow: 0 2px 20px rgba(75, 24, 0, 0.07);
}

/* ================================================================
   RESET & BASE
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: "DM Sans", sans-serif;
  background: var(--cream);
  color: var(--brown);
  min-height: 100vh;
  overflow-x: hidden;
}


/* ================================================================
   CHECKER BORDER
   Top / Left / Right: position fixed, always visible
   Bottom: flows naturally at end of page content (not fixed)
   ================================================================ */

/* Shared checker pattern */
.checker-strip {
  pointer-events: none;
  background-color: var(--yellow);
  background-image:
    linear-gradient(45deg, var(--cream) 25%, transparent 25%),
    linear-gradient(-45deg, var(--cream) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--cream) 75%),
    linear-gradient(-45deg, transparent 75%, var(--cream) 75%);
  background-size: var(--cs) var(--cs);
  background-position: 0 0, 0 calc(var(--cs)/2), calc(var(--cs)/2) calc(-1*(var(--cs)/2)), calc(-1*(var(--cs)/2)) 0;
}

/* Three fixed edges */
.checker-top,
.checker-left,
.checker-right {
  position: fixed;
  z-index: 300;
}
.checker-top   { top:0;    left:0; right:0;  height: var(--bw); transition: opacity 0.3s ease; }
.checker-left  { top:0; bottom:0; left:0;   width:  var(--bw); }
.checker-right { top:0; bottom:0; right:0;  width:  var(--bw); }

/* Top checker fades out once user scrolls away from top */
.checker-top.scrolled-away {
  opacity: 0;
  pointer-events: none;
}

/* Bottom: sits in document flow — visible only when scrolled to end */
.checker-bottom {
  display: block;
  width: 100%;
  height: var(--bw);
  position: relative;
  z-index: 1;
  margin-top: 40px;
}


/* ================================================================
   STAR SPARKLES LAYER — fixed, behind everything
   ================================================================ */
.stars-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.star {
  position: absolute;
  display: block;
}


/* ================================================================
   BACKGROUND IMAGE — Flat background for all pages with opacity
   ================================================================ */

/* Form page (index.html) - Normal background with opacity */
.form-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../background.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0.55;
  z-index: -1;
  pointer-events: none;
}

/* Results page (results.html) - Horizontally flipped background with opacity */
.results-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../background.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0.55;
  z-index: -1;
  pointer-events: none;
  transform: scaleX(-1); /* Flip horizontally */
}



/* ================================================================
   PAGE WRAP — scrollable content area, clears fixed strips
   ================================================================ */
.page-wrap {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: calc(var(--bw) + 32px) calc(var(--bw) + 36px) 60px;
}


/* ================================================================
   DESKTOP TWO-COLUMN LAYOUT (form page)
   Left: logo + hero + features (sticky)
   Right: form
   ================================================================ */
.page-layout {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: calc(var(--bw) + 32px) calc(var(--bw) + 36px) 60px;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 0 52px;
  align-items: start;
}

.col-left {
  /* Stays in view as user scrolls the form */
  position: sticky;
  top: calc(var(--bw) + 24px);
}


/* ================================================================
   LOGO
   ================================================================ */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.logo {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brown);
  text-decoration: none;
  letter-spacing: -0.5px;
  line-height: 1;
}
/* "IQ" block in blush */
.logo span {
  display: inline-block;
  background: var(--blush);
  padding: 1px 9px 3px;
  margin-left: 1px;
  border-radius: 3px;
}
/* Standalone logo in col-left */
.col-left .logo { margin-bottom: 28px; display: inline-block; }


/* ================================================================
   HERO HEADING + SUBTEXT
   Syne 800 — geometric, flat terminals, NOT rounded
   ================================================================ */
.hero-heading {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800;
  color: var(--brown);
  line-height: 1.08;
  letter-spacing: -0.5px;
  margin-bottom: 15px;
  padding-bottom: 15px;
}

.hero-sub {
  font-family: "DM Sans", sans-serif;
  font-size: 0.93rem;
  color: var(--mid-grey);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 300px;
  font-weight: 300;
}


/* ================================================================
   FEATURE BOXES
   Desktop: stacked vertically as cards
   Mobile: 2×2 grid cards
   ================================================================ */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

/* Rounded icon square */
.feature-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
/* SVG icons inherit color from CSS so we can control via --brown */
.feature-icon-wrap svg {
  width: 26px;
  height: 26px;
  color: var(--brown);  /* used by stroke="currentColor" */
}

.fi-yellow { background: #f0d9a0; }
.fi-sky    { background: #c5dfee; }
.fi-blush  { background: #f8d0df; }
.fi-teal   { background: #c0d8da; }

.feature-text strong,
.feature-title {
  display: block;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--brown);
  line-height: 1.2;
}
.feature-text span,
.feature-desc {
  display: block;
  font-family: "DM Sans", sans-serif;
  font-size: 0.8rem;
  color: var(--mid-grey);
  font-weight: 300;
  margin-top: 2px;
}

/* Dashed vertical connector between feature items - hidden with card styling */
.feature-connector {
  display: none;
}


/* ================================================================
   FORM
   ================================================================ */
.listing-form {
  display: flex;
  flex-direction: column;
}

.form-section {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}

.form-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
}
.stripe-blush  { background: var(--blush); }
.stripe-sky    { background: var(--sky); }
.stripe-yellow { background: var(--yellow); }

/* Section number — circle with #4B1800 bg, Syne white number */
.section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--brown);
  color: var(--white);
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  border-radius: 50%;
  flex-shrink: 0;
  /* line-height: 0 removes the font's built-in line spacing so
     flexbox align-items: center can perfectly center the glyph */
  line-height: 0;
}

/* Section label — Bricolage Grotesque, dark brown */
.section-label {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--brown);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-section-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 22px;
  padding: 22px 22px 26px;
}

.field-group { display: flex; flex-direction: column; gap: 7px; }
.field-group.full-width { grid-column: 1 / -1; }

label {
  font-family: "DM Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--brown);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.optional { font-weight: 400; text-transform: none; color: var(--mid-grey); font-size: 0.7rem; }

input[type="text"],
select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--light-grey);
  border-radius: var(--radius-sm);
  font-family: "DM Sans", sans-serif;
  font-size: 0.92rem;
  /* user-typed text and selected option text in mid-grey */
  color: var(--mid-grey);
  background: var(--cream);
  outline: none;
  transition: border-color 0.15s, background 0.15s;
  appearance: none;
  -webkit-appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234B1800' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
input[type="text"]:focus,
select:focus {
  border-color: var(--teal);
  background: var(--white);
}
/* Disabled selects keep the same color/opacity as enabled ones */
select:disabled { opacity: 1; cursor: default; color: var(--mid-grey); }
.field-hint { font-family: "DM Sans", sans-serif; font-size: 0.72rem; color: var(--mid-grey); }

/* Price input wrapper with $ prefix */
.price-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.currency-symbol {
  position: absolute;
  left: 14px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.92rem;
  color: var(--mid-grey);
  font-weight: 600;
  pointer-events: none;
  z-index: 1;
}

.price-input-wrapper input[type="number"] {
  padding-left: 32px;  /* Make room for $ symbol */
  width: 100%;
}

/* Hide number input spinners */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}


/* ================================================================
   SUBMIT BUTTON
   ================================================================ */
.submit-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 15px 42px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 var(--brown);
  transition: transform 0.1s, box-shadow 0.1s;
}
.btn-primary:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 var(--brown); }
.btn-primary:active { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--brown); }

.btn-ghost {
  background: var(--teal);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 15px 42px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 var(--brown);
  transition: transform 0.1s, box-shadow 0.1s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-ghost:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 var(--brown); }
.btn-ghost:active { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--brown); }


/* ================================================================
   ERROR BANNER
   ================================================================ */
.error-banner {
  background: var(--red);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  margin-top: 20px;
  font-size: 0.88rem;
}


/* ================================================================
   RESULTS — LISTING SUMMARY BAR
   ================================================================ */
.listing-summary {
  background: var(--brown);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.summary-title {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1rem;
  font-weight: 800;
}
.summary-meta { font-size: 0.8rem; color: rgba(255,255,255,0.6); }


/* ================================================================
   RESULTS — DASHBOARD GRID
   ================================================================ */
.dashboard-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 52px;
  align-items: start;
}
.panel {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 26px 22px;
}


/* LEFT PANEL */
.panel-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: none;
  box-shadow: none;
  padding: 0;
}

/* Listing Summary Box */
.listing-summary-box {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.summary-heading {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--brown);
  margin: 0 0 14px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--light-grey);
}
.summary-item:last-child {
  border-bottom: none;
}
.summary-label {
  font-family: "DM Sans", sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--mid-grey);
}
.summary-value {
  font-family: "DM Sans", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brown);
}

/* Prediction Boxes */
.prediction-box {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.prediction-label {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brown);
  margin-bottom: 12px;
}
.prediction-context {
  font-family: "DM Sans", sans-serif;
  font-size: 13.12px;
  font-weight: 300;
  color: var(--mid-grey);
  margin-top: 10px;
}

/* Probability Display */
.prob-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.prob-number {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
  letter-spacing: -2px;
}
.prob-bar-wrap {
  width: 100%;
  height: 10px;
  background: var(--light-grey);
  border-radius: 999px;
  overflow: hidden;
}
.prob-bar-fill {
  height: 100%;
  background: var(--teal);
  border-radius: 999px;
  transition: width 0.3s ease;
}

/* Time Display */
.time-display {
  text-align: center;
  padding: 12px 0;
}
.time-value {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brown);
  line-height: 1.3;
}


/* RIGHT PANEL — Insight cards */
.panel-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  background: none;
  box-shadow: none;
}
.insight-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brown);
}
.card-header-time     { background: var(--sky); }
.card-header-price    { background: var(--yellow); }
.card-header-action   { background: var(--blush); }
.card-header-keywords { background: var(--teal); color: var(--white); }
.card-icon { font-size: 1rem; }
.card-body { padding: 16px 18px 18px; }
.card-body p { font-family: "DM Sans", sans-serif; font-size: 0.9rem; font-weight: 300; color: var(--mid-grey); line-height: 1.65; }

/* Price Comparison Section */
.price-comparison {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 14px;
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}
.price-row:first-child {
  border-bottom: 1px solid var(--light-grey);
  padding-bottom: 10px;
  margin-bottom: 6px;
}
.price-label {
  font-family: "DM Sans", sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--mid-grey);
}
.price-value {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--brown);
}
.price-recommended {
  color: var(--teal);
}
.price-context {
  margin-top: 4px;
  font-size: 0.86rem !important;
}

/* Keyword chips */
.keywords-intro { margin-bottom: 12px; font-size: 0.86rem !important; }
.keyword-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip {
  display: inline-block;
  background: var(--cream);
  color: var(--brown);
  border-radius: var(--radius-sm);
  padding: 4px 12px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 2px 2px 0 var(--brown);
}

/* Market Insights Panel (RIGHT) */
.panel-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 20px;
}

.panel-heading {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--brown);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn-explore {
  background: var(--teal);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 var(--brown);
  transition: transform 0.1s, box-shadow 0.1s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.btn-explore:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--brown);
}

.market-insight-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.insight-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 19px 22px;
  background: var(--cream);
}

/* Insight header color variations */
.insight-header-1 { background: #FFC7DD; }
.insight-header-2 { background: #BFEDFE; }
.insight-header-3 { background: #019BA4; }
.insight-header-4 { background: #DAE301; }
.insight-header-5 { background: #FFD38D; }
.insight-header-6 { background: #FFC7DD; }

.insight-icon {
  font-size: 1rem;
}

.insight-title {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brown);
}

.insight-body {
  padding: 16px 18px 18px;
}

.insight-metric {
  margin-bottom: 12px;
}

.metric-label {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--teal);
}

.metric-value {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brown);
}

.insight-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.detail-label {
  font-family: "DM Sans", sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--mid-grey);
}

.detail-value {
  font-family: "DM Sans", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--brown);
}

.insight-context {
  font-family: "DM Sans", sans-serif;
  font-size: 0.86rem;
  font-weight: 300;
  color: var(--mid-grey);
  line-height: 1.65;
  margin-top: 8px;
}

.insight-methodology {
  font-family: "DM Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 300;
  font-style: italic;
  color: #9a8d82;
  line-height: 1.6;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--light-grey);
  opacity: 0.85;
}

/* Time to Sell Box (LEFT panel) */
.time-display {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}

.time-number {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
}

.time-unit {
  font-family: "DM Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--mid-grey);
  text-transform: lowercase;
}


/* ================================================================
   MOBILE  ≤ 820px — single column
   ================================================================ */
@media (max-width: 820px) {

  .page-wrap,
  .page-layout {
    padding: calc(var(--bw) + 18px) calc(var(--bw) + 16px) 30px;
  }

  /* Stack the two columns — both fill the full width */
  .page-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }
  .col-left,
  .col-right {
    width: 100%;
    box-sizing: border-box;
  }
  .col-left {
    position: static;
    margin-bottom: 32px;
  }

  /* Center hero on mobile */
  .hero-heading {
    text-align: center;
    font-size: 2.8rem;
    letter-spacing: -0.3px;
  }
  .hero-sub {
    text-align: center;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  /* Center site header */
  .site-header {
    justify-content: center;
    margin-bottom: 20px;
  }

  /* Feature items: 2x2 grid */
  .feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .feature-connector { display: none; }
  .feature-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    gap: 10px;
  }
  .feature-text { margin-left: 0; }

  /* Form: single column fields */
  .form-section-fields {
    grid-template-columns: 1fr;
    padding: 18px 16px 22px;
  }
  .field-group.full-width { grid-column: 1; }

  /* Full-width submit */
  .submit-row { justify-content: center; }
  .btn-primary { width: 100%; text-align: center; justify-content: center; }

  /* Results dashboard stacks */
  .dashboard-grid { grid-template-columns: 1fr; }

  /* Mobile background adjustments - crop/position for smaller screens */
  .form-page::before,
  .results-page::before {
    background-size: auto 100%;  /* Show full height */
    background-position: calc(50% - 50px) center;  /* Offset 50px to the left */
    position: fixed;  /* Keep background fixed on mobile too */
    opacity: 0.7;  /* Increase opacity to 70% on mobile */
  }

  /* Bottom checker on mobile */
  .checker-bottom { margin-top: 32px; }
}
