/* =====================================================================
   New Thing Day: corporate site
   Brand tokens mirror the main product application (new.thing.day):
   black-led monochrome palette, slate greys, 4px radii, subtle shadows,
   Helvetica throughout.
   ===================================================================== */

:root {
  /* Palette: lifted from the app's $theme-colors / gray scale */
  --white:      #ffffff;
  --black:      #000000;
  --ink:        #18181b;   /* near-black charcoal (theme "dark") */
  --bg:         #f8fafc;   /* gray-50, app background */
  --bg-100:     #f1f5f9;   /* gray-100 */
  --bg-200:     #e2e8f0;   /* gray-200 */
  --slate:      #64748b;   /* theme "info": blue-grey slate */
  --slate-dark: #52525b;   /* theme "secondary" */
  --footer-bg:  #000000;   /* black footer; logo ground blends in */
  --footer-fg:  #e5e7eb;
  --success:    #059669;

  /* Experimental accents: a quiet blue and a warm yellow, used sparingly */
  --blue:        #2563eb;
  --blue-soft:   #eff4ff;   /* tinted wash for alt sections */
  --yellow:      #f5b301;
  --yellow-soft: #fdf6e3;

  --border:        rgba(0, 0, 0, 0.1);
  --border-strong: rgba(0, 0, 0, 0.15);

  /* Radii: squared off, matching the app */
  --radius:    0.25rem;   /* 4px */
  --radius-sm: 0.125rem;  /* 2px */
  --radius-lg: 0.375rem;  /* 6px */

  /* Shadows: subtle, professional depth */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow:    0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);

  --font-body:    'Helvetica', 'Arial', sans-serif;
  /* Small uppercase labels: clean sans, set bold where used */
  --font-label:   'Helvetica', 'Arial', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 1rem;
}

p { margin: 0 0 1rem; }

a { color: var(--black); text-decoration: none; }
a:hover { text-decoration: underline; }

em { font-style: italic; }

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

.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container.narrow { max-width: 720px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-primary {
  background: var(--black);
  color: var(--white);
}

.btn-primary:hover {
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--black);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}
.brand:hover { text-decoration: none; }

/* Logo is a white monogram on a solid black ground, sits cleanly on the
   black header, so no masking required. */
.brand-mark { height: 40px; width: auto; }

.brand-word {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  letter-spacing: 0.01em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header-link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}
.header-link:hover { color: var(--white); }

.header-cta {
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: background-color 0.2s ease;
  white-space: nowrap;
}
.header-cta:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.1);
}

/* On small screens the marketplace link drops; the CTA stays */
@media (max-width: 540px) {
  .header-link { display: none; }
}

/* ---------- Section scaffolding ---------- */
.section { padding: 7rem 0; }
.section-alt { background: var(--blue-soft); border-block: 1px solid var(--border); }

.eyebrow {
  position: relative;
  display: inline-block;
  font-family: var(--font-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--blue);
  margin: 0 0 2.5rem;
  padding-left: 2.25rem;
}
/* short accent rule, alternating blue/yellow per section */
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1.5rem;
  height: 2px;
  background: var(--blue);
  transform: translateY(-50%);
}
#how .eyebrow, #mission .eyebrow, #benefits .eyebrow { color: #b07d00; }
#how .eyebrow::before, #mission .eyebrow::before, #benefits .eyebrow::before { background: var(--yellow); }

.prose p { font-size: 1.125rem; color: var(--slate-dark); }
.prose p:last-child { margin-bottom: 0; }

/* ---------- Photography placeholders ----------
   Swappable for real <img> shots later. A photographer can read the label
   + note straight off each placeholder for the brief. */
.img-placeholder {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  padding: 1.5rem;
  color: var(--slate);
  background:
    repeating-linear-gradient(
      45deg,
      var(--bg-100),
      var(--bg-100) 12px,
      var(--white) 12px,
      var(--white) 24px
    );
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
}

.img-placeholder__icon {
  width: 2.5rem;
  height: 2.5rem;
  fill: none;
  stroke: var(--slate);
  stroke-width: 1.4;
  stroke-linejoin: round;
  opacity: 0.7;
}

.img-placeholder__label {
  font-family: var(--font-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--slate-dark);
}

.img-placeholder__note {
  font-size: 0.85rem;
  max-width: 28ch;
  line-height: 1.45;
}

/* aspect ratios */
.ratio-4x5  { aspect-ratio: 4 / 5; }
.ratio-band { aspect-ratio: 21 / 9; }

/* ---------- Hero ---------- */
.hero {
  padding: 9rem 0 8rem;
  background:
    radial-gradient(130% 90% at 78% -10%, var(--blue-soft) 0%, transparent 55%),
    radial-gradient(90% 70% at 0% 110%, var(--yellow-soft) 0%, transparent 50%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 4rem;
}

.hero-copy { min-width: 0; }

.hero-grid .img-placeholder,
.hero-photo {
  width: 100%;
  border-radius: var(--radius-lg);
}
.hero-photo { object-fit: cover; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; }

.tagline {
  font-family: var(--font-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  color: var(--blue);
  margin: 0 0 1.75rem;
}

.hero h1 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 2rem;
  max-width: 14ch;
}

.subhead {
  font-size: 1.3rem;
  color: var(--slate-dark);
  max-width: 46ch;
  margin: 0 0 3rem;
}

/* ---------- Full-width photo band ---------- */
.img-placeholder.band {
  border-radius: 0;
  border-inline: 0;
  width: 100%;
}
.band-photo {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  display: block;
}

/* ---------- How it works: indexed columns ----------
   No cards, no shadows. Each step is a column hung beneath a bold rule,
   led by an oversized numeral, reads as a sequence, not a grid of tiles. */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2.25rem;
}

.step {
  padding-top: 1.25rem;
  border-top: 2px solid var(--blue);   /* blue bar above every item */
}

.step-number {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 2.75rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--slate);           /* large, muted numeral */
  margin-bottom: 0.75rem;
}

.step h3 {
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}
.step p { font-size: 0.975rem; color: var(--slate-dark); margin: 0; }

/* ---------- Built for merchants: same indexed-column style, four across --------- */
.steps--four { grid-template-columns: repeat(4, 1fr); }

/* ---------- Mission ---------- */
.mission-headline {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin: 0 0 2rem;
}

.prose a, .contact-fallback a, .footer-text a:hover { color: var(--blue); }

/* ---------- Contact ---------- */
.section-contact h2 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.contact-copy {
  font-size: 1.125rem;
  color: var(--slate-dark);
  margin-bottom: 3rem;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.fallback-form { display: grid; gap: 1.25rem; }
.fallback-form[hidden] { display: none; }   /* let the hidden attr win over the grid rule */

.fallback-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.fallback-form input {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
  min-height: 45px;
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.fallback-form input:focus {
  outline: 0;
  border-color: var(--black);
  box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.1);
}

.fallback-form .btn { justify-self: start; }

.form-success {
  color: var(--success);
  font-weight: 600;
  margin: 0;
}

.contact-fallback {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--slate);
}
.contact-fallback a { font-weight: 600; }

/* HubSpot form, when rendered, inherits these control styles */
.hs-form input[type="text"],
.hs-form input[type="email"],
.hs-form select,
.hs-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  min-height: 45px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
}
.hs-form label { font-size: 0.9rem; font-weight: 600; display: block; margin-bottom: 0.4rem; }
.hs-form .hs-form-field { margin-bottom: 1.25rem; }
.hs-form .hs-button {
  font-family: var(--font-body);
  font-weight: 600;
  background: var(--black);
  color: var(--white);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.75rem 1.5rem;
  cursor: pointer;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-fg);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Logo ground is black and blends into the black footer */
.footer-mark {
  height: 44px;
  width: auto;
}

.footer-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--footer-fg);
  line-height: 1.6;
}
.footer-text a { color: var(--white); }

/* Legal links: pushed to the right of the footer row */
.footer-links {
  margin-left: auto;
  display: flex;
  gap: 1.25rem;
  font-size: 0.85rem;
}
.footer-links a { color: var(--footer-fg); }
.footer-links a:hover { color: var(--white); text-decoration: underline; }

/* ---------- Ghost button (used for "Reject" in the cookie banner) ---------- */
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: none;
}
.btn-ghost:hover {
  text-decoration: none;
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 100;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--black);
  color: var(--footer-fg);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
}
.cookie-banner__text a { color: var(--white); text-decoration: underline; }
.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* ---------- Responsive: single column under 768px ---------- */
@media (max-width: 992px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr; }
  .section { padding: 4.5rem 0; }
  .hero { padding: 5rem 0 4rem; }
  .brand-word { display: none; }   /* keep the header tidy on small screens */
  .form-card { padding: 1.5rem; }

  /* stack the hero into a single column, image below the copy */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-grid .img-placeholder,
  .hero-photo { max-width: 360px; justify-self: center; }
  .ratio-band { aspect-ratio: 16 / 10; }

  /* stack the footer legal links and the cookie banner on small screens */
  .footer-links { margin-left: 0; flex-basis: 100%; }
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 1rem; }
  .cookie-banner__actions { justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .step { transition: none; }
}
