﻿/* Taplas marketing site — "Fresh Pour" direction (chosen 2026-08-19 from the
   design gallery). Palette mirrors taplas-app/src/theme/colors.ts by hand. */

:root {
  --amber: #E8A33D;
  --gold: #B8862B;
  --navy: #1B3569;
  --cream: #FFF8EC;
  --page: #FFFDF7;
  --band: #F7EFDD;
  --ink: #1A1A1A;
  --ink-soft: #5C5646;
  --ink-muted: #8A7B61;
  --ink-faint: #A99B82;
  --line: #EFE6D2;
  --cream-text: #FFF6E4;
  --display: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
  --body: 'Figtree', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: #8F6A1F; }

.container {
  max-width: 1248px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Nav ---- */

.site-nav { background: var(--page); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }

/* v2 logo, "composed" variant (art inset ~86% on its own navy, from the
   logo-review session) — rounding therefore only crops navy, never the card. */
.brand img { border-radius: 20px; display: block; }

.brand span {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 600;
  color: #6B6353;
}
.nav-links a:hover { color: var(--ink); }

.nav-links a.cta {
  background: var(--amber);
  color: var(--navy);
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 999px;
}
.nav-links a.cta:hover { background: #DE9526; color: var(--navy); }

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

.hero { padding: 48px 0 96px; }

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 56px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 620px;
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(46px, 6.5vw, 94px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.underlined {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.underlined svg {
  position: absolute;
  left: 0;
  bottom: -0.17em;
  width: 100%;
  height: 0.17em;
}

.underlined svg path {
  stroke: var(--amber);
  stroke-width: 8;
  fill: none;
  stroke-linecap: round;
}

.hero-copy .sub {
  margin: 0;
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 490px;
}

.badges { display: flex; gap: 14px; flex-wrap: wrap; }

.store-badge {
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--navy);
  color: var(--page);
  border-radius: 13px;
  padding: 11px 20px;
}

.store-badge svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.badge-text { display: flex; flex-direction: column; }

.badge-kicker {
  font-size: 10px;
  opacity: 0.75;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-store { font-size: 16px; font-weight: 700; }

.hero-copy .micro {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
}

/* ---- Hero phone on the amber block ---- */

.phone-stage {
  width: 560px;
  height: 660px;
  background: var(--amber);
  border-radius: 44px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone {
  width: 300px;
  height: 620px;
  background: var(--cream);
  border-radius: 34px;
  border: 9px solid #141822;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: rotate(-4deg);
  box-shadow: 0 34px 70px rgba(59, 38, 9, 0.35);

  /* The screen mimics the app, which renders in the platform font. */
  font-family: system-ui, 'Segoe UI', sans-serif;
}

.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FFF;
  border-radius: 13px;
  padding: 11px 16px;
  box-shadow: 0 12px 30px rgba(59, 38, 9, 0.18);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}
.chip .dot { width: 9px; height: 9px; border-radius: 5px; background: #3E7A4F; }
.chip-left { left: -38px; top: 84px; }
.chip-right { right: -30px; bottom: 96px; font-weight: 500; color: #6B6353; }
.chip-right strong { color: var(--navy); font-weight: 700; }

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

.features { background: var(--band); padding: 68px 0; }

.features-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px;
}

.feature { display: flex; flex-direction: column; gap: 14px; }

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--cream-text);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-icon svg .filled { fill: var(--cream-text); stroke: none; }

.feature h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
}

.feature p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ---- Footer ---- */

.site-footer { background: var(--navy); color: var(--cream-text); }

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 40px;
  padding-bottom: 40px;
  flex-wrap: wrap;
}

.footer-brand { display: flex; flex-direction: column; gap: 6px; }

.footer-wordmark {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 800;
}
.footer-small { font-size: 13px; opacity: 0.65; }
.footer-small a { color: var(--cream-text); text-decoration: underline; }

.footer-links { display: flex; gap: 30px; }

.footer-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--cream-text);
  opacity: 0.85;
}
.footer-links a:hover { opacity: 1; color: var(--cream-text); }

.footer-note { max-width: 280px; text-align: right; }

/* ---- Subpages (About) ---- */

.page-hero { padding: 40px 0 24px; text-align: center; }

.page-hero .eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.page-hero h1 {
  margin: 0 auto 22px;
  font-family: var(--display);
  font-size: clamp(38px, 4.6vw, 64px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
  max-width: 20ch;
}

.accent-underline {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.accent-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.12em;
  height: 0.12em;
  background: var(--amber);
  border-radius: 999px;
}

.page-hero .lede {
  margin: 0 auto;
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 62ch;
}

.prose-section { padding: 24px 0 56px; }
.prose { max-width: 62ch; margin: 0 auto; }

.prose h3 {
  margin: 28px 0 8px;
  font-size: 17.5px;
  font-weight: 700;
  letter-spacing: -0.005em;
}

.prose ul {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.65;
}
.prose li { margin-bottom: 6px; }

/* Legal pages (generated by scripts/build-legal.mjs) */
.legal-updated {
  margin: -12px 0 18px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

/* Support contact tiles — trio cards that are mailto links */
.contact-card { color: var(--ink); }
.contact-card:hover { color: var(--ink); border-color: var(--amber); }
.contact-card p { color: var(--gold); font-weight: 600; }

.prose h2 {
  margin: 44px 0 14px;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.prose h2:first-child { margin-top: 0; }

.prose p {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.prose strong { color: var(--ink); font-weight: 600; }

/* About: four beats — prose on the page, cards only for concepts
   (Michael's restructure, 2026-08-19) */

.about-beat { padding: 40px 0 56px; }

.answers-band { background: var(--band); padding: 64px 0; }
.answers-band .prose { margin-bottom: 40px; }

.trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
}

.trio-card {
  background: #FFF;
  border: 1px solid #E8DEC6;
  border-radius: 18px;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trio-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.trio-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--cream-text);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trio-name {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
}

.trio-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.questions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 980px;
  margin: 32px auto 0;
}

.question-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFF;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
}

.question-tile::before {
  content: "";
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 5px;
  background: var(--amber);
}

/* How it works: numbered zig-zag steps with drawn UI fragments */
.steps-section { padding: 24px 0 88px; }
.steps { max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; }

.step-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 56px;
  align-items: center;
  padding: 44px 0;
}
.step-row + .step-row { border-top: 1px solid var(--line); }
.step-row.flip { grid-template-columns: 380px minmax(0, 1fr); }
.step-row.flip .step-copy { order: 2; }
.step-row.flip .step-visual { order: 1; }

.step-num {
  display: block;
  font-family: var(--display);
  font-size: 40px;
  font-weight: 800;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 10px;
}

.step-copy h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.step-copy p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 44ch;
}

.fragment {
  background: #FFF;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(92, 58, 20, 0.08);
}
.origin { padding: 56px 0 88px; }

.origin-inner {
  display: flex;
  align-items: flex-start;
  gap: 36px;
  max-width: 780px;
  margin: 0 auto;
}
.origin-mark { border-radius: 22px; flex-shrink: 0; }

.origin-story h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.origin-story p {
  margin: 0 0 14px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.origin-story p:last-child { margin-bottom: 0; }

/* ---- Responsive ---- */

@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; justify-items: center; }
  .hero-copy { align-items: center; text-align: center; }
  .hero-copy .sub { max-width: 560px; }
  .badges { justify-content: center; }
  .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .questions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .nav-links { gap: 20px; }
  .nav-links a:not(.cta) { display: none; }
  .hero { padding: 24px 0 72px; }

  .phone-stage {
    width: min(560px, 100%);
    height: 620px;
  }
  .phone { width: 280px; height: 580px; }
  .chip { display: none; }
  .features-inner { grid-template-columns: 1fr; gap: 40px; }
  .trio { grid-template-columns: 1fr; }
  .questions-grid { grid-template-columns: 1fr; }
  .step-row, .step-row.flip { grid-template-columns: 1fr; gap: 22px; padding: 32px 0; }
  .step-row.flip .step-copy { order: 1; }
  .step-row.flip .step-visual { order: 2; }
  .origin-inner { flex-direction: column; align-items: center; text-align: center; gap: 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-note { text-align: left; max-width: none; }
}
