/**
 * Home page layout. Colors and the font come from theme.css, the header,
 * footer and type scale from site.css; this file only adds what the marketing
 * page needs: page sections, the hero's popup drawing and the screenshot.
 *
 * Sizes use clamp() so the page scales smoothly from 360 px phones to wide
 * desktops without a stack of breakpoints; grids and wrapping flex rows
 * reflow on their own when a column no longer fits.
 */

/* --- Page tokens ---------------------------------------------------------- */

:root {
  --band-space: clamp(64px, 9vw, 120px);
  --shadow: rgba(27, 36, 33, 0.10);
}

@media (prefers-color-scheme: dark) {
  :root {
    --shadow: rgba(0, 0, 0, 0.35);
  }
}

/* --- Shared section pieces ------------------------------------------------ */

.band {
  padding-top: var(--band-space);
  padding-bottom: var(--band-space);
}

.band-ruled {
  border-top: 1px solid var(--border);
}

.band-surface {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.band-tint {
  background: var(--tint);
  color: var(--on-tint);
}

.section-title {
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

/* Title plus body in a single column. */
.stack {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4vw, 56px);
}

/* Title beside body; the columns wrap into one when the side column won't fit. */
.split {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 5vw, 80px);
}

.split-main {
  flex: 1 1 420px;
  min-width: 0;
}

.split-side {
  flex: 1 1 360px;
  min-width: 0;
}

.prose-muted {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--muted);
}

/* --- Call to action ------------------------------------------------------- */

.cta {
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

/* .cta-button itself is in site.css, shared with the 404 page. */

/* Shaped like the button so the layout doesn't shift when the link goes live,
   but tinted and flat so it doesn't read as something to click. */
.cta-soon {
  min-height: 52px;
  padding: 12px 20px;
  border-radius: 8px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  background: var(--tint);
  color: var(--on-tint);
  font-size: 18px;
  font-weight: 600;
}

.cta-note {
  color: var(--muted);
  font-size: 15px;
}

/* --- Hero ----------------------------------------------------------------- */

.hero {
  padding-top: clamp(32px, 6vw, 88px);
  padding-bottom: clamp(64px, 9vw, 120px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(40px, 5vw, 64px);
}

/* The drawing's 392px basis fits the popup at its real 320px plus padding; the
   copy takes the rest. With the title capped at 58px, that sets it in three
   lines on desktop (at 72px it took four). */
.hero-copy {
  flex: 2 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-title {
  font-size: clamp(42px, 4.4vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.hero-lead {
  max-width: 32em;
  color: var(--muted);
  font-size: clamp(18px, 1.6vw, 21px);
  text-wrap: pretty;
}

/* --- Hero drawing: toolbar and popup -------------------------------------- */

/* The mock copies the extension popup's real sizes (14px text, 44px button)
   so it reads as a screenshot rather than a cartoon of one. */
.hero-art {
  flex: 1 1 392px;
  min-width: 0;
  padding: clamp(14px, 3vw, 36px);
  border-radius: 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  background: var(--tint);
  font-size: 14px;
  line-height: 1.45;
}

.mock-toolbar {
  width: 100%;
  height: 48px;
  padding: 0 12px 0 14px;
  border-radius: 10px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
}

.mock-address {
  flex: 1;
  min-width: 0;
  height: 30px;
  padding: 0 14px;
  border-radius: 15px;
  box-sizing: border-box;
  overflow: hidden;
  background: var(--bg);
  color: var(--muted);
  font-size: 13px;
  line-height: 30px;
  white-space: nowrap;
}

.mock-extension {
  position: relative;
  width: 28px;
  height: 28px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-badge {
  position: absolute;
  right: -3px;
  bottom: 0;
  height: 12px;
  min-width: 12px;
  padding: 0 3px;
  border-radius: 3px;
  box-sizing: border-box;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 9px;
  font-weight: 600;
  line-height: 12px;
  text-align: center;
}

.mock-avatar {
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  background: var(--border);
}

.mock-popup {
  width: 100%;
  max-width: 320px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 2px 6px var(--shadow), 0 18px 40px var(--shadow);
}

.mock-popup-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
}

.mock-row,
.mock-site {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.mock-row {
  height: 48px;
  padding: 0 14px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mock-switch {
  width: 36px;
  height: 20px;
  padding: 2px;
  border-radius: 10px;
  box-sizing: border-box;
  display: flex;
  justify-content: flex-end;
  background: var(--primary);
}

.mock-switch span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--on-primary);
}

.mock-site {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mock-strong {
  font-weight: 600;
}

.mock-muted {
  color: var(--muted);
  font-size: 13px;
}

.mock-button {
  height: 44px;
  margin-top: 12px;
  padding: 0 16px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
}

.mock-link {
  color: var(--primary);
  font-weight: 600;
}

/* --- How it works --------------------------------------------------------- */

.steps {
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(28px, 4vw, 48px);
}

.step {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tint);
  color: var(--on-tint);
  font-size: 15px;
  font-weight: 600;
}

.step h3 {
  margin-top: 6px;
  font-size: 21px;
  line-height: 1.3;
}

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

/* --- Features ------------------------------------------------------------- */

.section-intro {
  max-width: 36em;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-intro p {
  color: var(--muted);
}

/* Screenshot beside the list on desktop, above it on narrower screens. */
.features-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(32px, 5vw, 72px);
}

.features-shot {
  flex: 1 1 420px;
  min-width: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* The radius hides the store screenshot's corners, which show its backdrop. */
.features-shot img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-sizing: border-box;
}

.features-shot figcaption {
  color: var(--muted);
  font-size: 15px;
}

/* min() keeps a single column from overflowing on screens narrower than 300px
   of content. Beside the screenshot this is one column; stacked below it, two
   or three, and six items fill either without a lone item in the last row. */
.features {
  flex: 1 1 360px;
  min-width: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  column-gap: clamp(28px, 4vw, 56px);
  row-gap: 28px;
}

.feature {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feature:first-child {
  padding-top: 0;
  border-top: 0;
}

.feature h3 {
  font-size: 21px;
  line-height: 1.3;
}

.feature p {
  color: var(--muted);
}

/* --- Privacy -------------------------------------------------------------- */

.privacy-copy {
  flex-basis: 380px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.privacy-link,
.privacy-link:hover {
  color: var(--on-tint);
  font-weight: 600;
  text-underline-offset: 4px;
}

.privacy-link:focus-visible {
  outline-color: var(--on-tint);
}

.privacy-points {
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}

.privacy-points li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}

.privacy-points li:last-child {
  border-bottom: 0;
}

/* --- FAQ ------------------------------------------------------------------ */

.faq-title {
  flex: 1 1 280px;
  min-width: 0;
}

.faq {
  flex: 2 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.faq > div {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.faq > div:first-child {
  padding-top: 0;
}

.faq > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.faq dt {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
}

.faq dd {
  margin-top: 8px;
  color: var(--muted);
}

/* --- Closing call to action ----------------------------------------------- */

.closing {
  padding-top: clamp(72px, 10vw, 136px);
  padding-bottom: clamp(72px, 10vw, 136px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
