/* Landing page layout */

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  border-top: 3px solid var(--brand); /* thin brand band across the top */
  border-bottom: 1px solid var(--hairline);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 15px;
  text-decoration: none;
}

.nav-link:hover {
  text-decoration: underline;
}

/* Hero */
/* A very soft teal wash behind the hero, fading to white */
main {
  background: linear-gradient(180deg, #f1f9f7 0, var(--paper) 560px);
}

.hero h1 .accent {
  color: var(--brand-strong);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 56px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 88px;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
}

/* Beyond phone and small-tablet widths, the headline stays on one line,
   shrinking just enough to fit its column on medium screens. */
@media (min-width: 801px) {
  .hero h1 {
    font-size: min(3.5rem, calc(5.4vw - 8px));
    white-space: nowrap;
  }
}

.lede {
  margin-top: 18px;
  max-width: 32ch;
  font-size: 1.1875rem;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-meta {
  min-height: 1.5em;
  margin-top: 20px;
  font-size: 14px;
  color: var(--brand-strong);
}

/* Specimen: ad frames drawn to scale, framed by crop marks */
.specimen {
  position: relative;
  margin: 0;
  padding: 36px 32px 52px;
  background: var(--artboard);
}

.corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 0 solid var(--crop);
}

.corner-tl { top: 10px; left: 10px; border-top-width: 2px; border-left-width: 2px; }
.corner-tr { top: 10px; right: 10px; border-top-width: 2px; border-right-width: 2px; }
.corner-bl { bottom: 10px; left: 10px; border-bottom-width: 2px; border-left-width: 2px; }
.corner-br { bottom: 10px; right: 10px; border-bottom-width: 2px; border-right-width: 2px; }

.specimen-frames {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 32px 24px;
  min-height: 250px;
}

.spec-frame {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spec-box {
  position: relative;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--brand), var(--ink));
}

/* The focal point every crop centres on */
.spec-box::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--paper);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.spec-label {
  font-size: 12px;
  color: var(--ink-soft);
  white-space: nowrap;
}

.specimen-note {
  position: absolute;
  right: 32px;
  bottom: 16px;
  font-size: 12px;
  color: var(--ink-soft);
}

/* Upgrade page (placeholder until Stage 7) */
.upgrade {
  max-width: 760px;
  padding-top: 64px;
  padding-bottom: 80px;
}

.upgrade h1 {
  margin-top: 14px;
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -0.02em;
}

.upgrade h1 .accent {
  color: var(--brand-strong);
}

.upgrade .lede {
  max-width: 52ch;
}

.pro-features {
  display: grid;
  gap: 12px;
  margin: 32px 0 36px;
  padding: 0;
  list-style: none;
}

.pro-features li {
  padding: 14px 16px 14px 44px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23087f73' stroke-width='2'/%3E%3C/svg%3E") no-repeat 16px 17px / 16px 16px;
  color: var(--ink-soft);
}

.pro-features strong {
  font-weight: 500;
  color: var(--ink);
}

/* Sections */
.section {
  padding: 72px 0;
  border-top: 1px solid var(--hairline);
}

.section h2 {
  font-size: 1.75rem;
  letter-spacing: -0.01em;
}

.section-intro {
  max-width: 60ch;
  margin-top: 10px;
  color: var(--ink-soft);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding-top: 16px;
  border-top: 3px solid var(--brand);
}

.step-num {
  font-size: 14px;
  color: var(--brand-strong);
}

.steps h3 {
  margin-top: 8px;
  font-size: 1.125rem;
}

.steps p {
  margin-top: 6px;
  color: var(--ink-soft);
}

/* Size tables */
.platform {
  margin-top: 48px;
}

.platform h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  font-size: 1.25rem;
}

.count {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-soft);
}

.table-scroll {
  margin-top: 12px;
  overflow-x: auto;
}

.size-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 15px;
}

/* Same column widths in every platform's table, so they line up */
.size-table th:nth-child(1) { width: 32%; }
.size-table th:nth-child(2) { width: 17%; }
.size-table th:nth-child(3) { width: 15%; }
.size-table th:nth-child(4) { width: 11%; }
.size-table th:nth-child(5) { width: 12%; }
.size-table th:nth-child(6) { width: 13%; }

.size-table th {
  padding: 8px 16px 8px 0;
  border-bottom: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  color: var(--ink-soft);
}

.size-table td {
  padding: 10px 16px 10px 0;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}

.size-table td.mono {
  font-size: 14px;
  white-space: nowrap;
}

.load-error {
  margin-top: 24px;
  color: var(--caution);
}

.privacy p {
  max-width: 60ch;
  margin-top: 12px;
  font-size: 1.0625rem;
  color: var(--ink-soft);
}

/* Footer */
.site-footer {
  padding: 24px 0 32px;
  border-top: 1px solid var(--hairline);
  font-size: 14px;
  color: var(--ink-soft);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

/* Phones and small tablets */
@media (max-width: 800px) {
  .wrap {
    padding: 0 16px;
  }

  .site-header {
    padding: 12px 16px;
  }

  .nav-link {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding-top: 40px;
    padding-bottom: 56px;
  }

  .specimen {
    padding: 32px 24px 48px;
  }

  .specimen-frames {
    min-height: 0;
    gap: 28px 18px;
  }

  .section {
    padding: 56px 0;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}
