/* Hoardmark marketing site. Tokens mirror DESIGN.md. No framework, no JS. */

:root {
  --color-headline: #12102A;
  --color-body: #3D3D3D;
  --color-tertiary: #6B7280;
  --color-muted: #9B9BAF;
  --color-bg: #FFFFFF;
  --color-chip: #F5F5F7;
  --color-border: #E5E7EB;
  --color-accent: #0D9488;
  --color-success: #34D399;
  --color-amber: #F59E0B;

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --text-body: 15px;
  --leading-body: 22px;
  --label-size: 11px;
  --label-tracking: 0.8px;

  --radius-card: 16px;
  --radius-pill: 999px;
  --radius-phone: 36px;

  --shadow-soft: 0 1px 2px rgba(18, 16, 42, 0.04), 0 4px 12px rgba(18, 16, 42, 0.06);
  --shadow-card: 0 2px 4px rgba(18, 16, 42, 0.06), 0 12px 32px rgba(18, 16, 42, 0.10);

  --max-w: 1040px;
  --max-w-prose: 680px;
  --space-section: clamp(64px, 10vw, 112px);
  --nav-h: 64px;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-body);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; color: var(--color-headline); }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: 4px; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Type */
.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--label-size);
  font-weight: 600;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--color-headline);
}
.label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  flex: none;
}
.h1 {
  font-size: clamp(40px, 7.2vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.lede {
  font-size: 16px;
  line-height: 25px;
}
.small { font-size: 13px; line-height: 20px; color: var(--color-tertiary); }
.stack > * + * { margin-top: 16px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  background: var(--color-headline);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}
.btn:hover { opacity: 0.88; }
.btn--sm { height: 38px; padding: 0 18px; font-size: 14px; }
.badge img { height: 48px; width: auto; }
.badge--sm img { height: 40px; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--nav-h);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.nav .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand img { height: 22px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 24px; }
.nav__link { font-size: 14px; font-weight: 500; color: var(--color-tertiary); }
.nav__link:hover { color: var(--color-headline); }

/* Sections */
.section { padding: var(--space-section) 0; }
.section + .section { border-top: 1px solid var(--color-border); }
.section__head { max-width: 640px; }
.section__head .h2 { margin-top: 14px; }
.section__head .lede { margin-top: 14px; }

/* Hero */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 80px); }
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.hero__copy { text-align: left; }
.hero__copy .h1 { margin-top: 16px; }
.hero__copy .lede { margin: 20px 0 0; max-width: 520px; }
.hero__cta { margin-top: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.hero__media { display: flex; justify-content: center; }

/* Phone frame: a rounded card is the whole device, no fake bezel */
.phone {
  width: 100%;
  max-width: 300px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-phone);
  background: #FFFFFF;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.phone img { width: 100%; height: auto; }
.phone--bleed { position: relative; max-width: 280px; height: 440px; }
.phone--bleed::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 96px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #FFFFFF);
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 40px;
}
.step {
  background: var(--color-chip);
  border-radius: 20px;
  padding: 24px;
}
.step__visual {
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.step__num {
  font-size: var(--label-size);
  font-weight: 600;
  letter-spacing: var(--label-tracking);
  color: var(--color-accent);
}
.step .h3 { margin-top: 8px; }
.step p { margin-top: 8px; }

/* Small UI illustrations for the steps */
.ui-sheet, .ui-notif, .ui-summary {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}
.ui-sheet { max-width: 232px; border-radius: 14px; overflow: hidden; font-size: 13px; }
.ui-sheet__row { display: flex; align-items: center; gap: 10px; padding: 9px 14px; color: var(--color-muted); }
.ui-sheet__row + .ui-sheet__row { border-top: 1px solid var(--color-border); }
.ui-sheet__row--active { color: var(--color-headline); font-weight: 600; }
.ui-sheet__row svg { width: 16px; height: 16px; flex: none; }
.ui-notif { max-width: 248px; display: flex; align-items: center; gap: 12px; border-radius: 16px; padding: 12px 14px; }
.ui-notif img { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.ui-notif__body { min-width: 0; flex: 1; }
.ui-notif__top { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; color: var(--color-headline); }
.ui-notif__top span:last-child { font-weight: 400; color: var(--color-muted); }
.ui-notif__text { margin-top: 2px; font-size: 13px; line-height: 18px; color: var(--color-body); }
.ui-summary { max-width: 248px; border-radius: 16px; padding: 14px 16px; }
.ui-summary__top { display: flex; align-items: center; justify-content: space-between; }
.ui-summary__top .label { font-size: 9px; letter-spacing: 0.7px; }
.ui-summary__top .label::before { width: 5px; height: 5px; }
.ui-summary__pill { font-size: 10px; font-weight: 600; color: var(--color-headline); background: var(--color-chip); border-radius: var(--radius-pill); padding: 3px 8px; }
.ui-summary__text { margin-top: 8px; font-size: 12px; line-height: 17px; color: var(--color-body); }

/* Feature rows */
.feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
.feature__copy { order: 1; }
.feature__media { order: 2; display: flex; justify-content: center; }
.feature__copy .h2 { margin-top: 14px; }
.feature__copy .lede { margin-top: 14px; max-width: 460px; }

/* Pricing */
.plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 720px;
  margin: 40px auto 0;
}
.plan {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: #FFFFFF;
  box-shadow: var(--shadow-soft);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.plan__name {
  font-size: var(--label-size);
  font-weight: 600;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--color-headline);
}
.plan__price {
  margin-top: 12px;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-headline);
}
.plan__sub { margin-top: 4px; font-size: 13px; color: var(--color-tertiary); }
.plan ul { margin-top: 20px; }
.plan li {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--color-border);
  font-size: 14px;
  line-height: 20px;
}
.plan li::before {
  content: '';
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--color-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.2l2 2 4-4.4' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.plan .btn { margin-top: 24px; align-self: flex-start; }
.plan__spacer { flex: 1; }
.plans__note { margin-top: 20px; text-align: center; font-size: 12px; color: var(--color-tertiary); }

/* FAQ */
.faq { max-width: var(--max-w-prose); margin: 32px auto 0; border-bottom: 1px solid var(--color-border); }
.faq details { border-top: 1px solid var(--color-border); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-headline);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  flex: none;
  width: 12px;
  height: 12px;
  background:
    linear-gradient(var(--color-headline), var(--color-headline)) center/12px 1.5px no-repeat,
    linear-gradient(var(--color-headline), var(--color-headline)) center/1.5px 12px no-repeat;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; max-width: 600px; }
.faq__more { display: block; margin-top: 24px; text-align: center; color: var(--color-tertiary); }
.faq__more a { color: var(--color-headline); text-decoration: underline; text-underline-offset: 3px; }

/* Footer */
.footer { border-top: 1px solid var(--color-border); padding: 48px 0 32px; }
.footer__row {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.footer__brand img { height: 18px; width: auto; }
.footer__brand p { margin-top: 10px; font-size: 13px; color: var(--color-tertiary); }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__links a { font-size: 14px; color: var(--color-tertiary); }
.footer__links a:hover { color: var(--color-headline); }
.footer__legal { margin-top: 36px; font-size: 12px; color: var(--color-muted); }

/* Prose pages: support, privacy, terms */
.prose { max-width: var(--max-w-prose); padding: clamp(40px, 6vw, 72px) 0 var(--space-section); }
.prose h1 { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.prose .meta { margin-top: 8px; font-size: 13px; color: var(--color-tertiary); }
.prose h2 { font-size: 20px; font-weight: 700; margin-top: 40px; }
.prose h3 { font-size: 16px; font-weight: 600; margin-top: 24px; }
.prose p { margin-top: 12px; }
.prose ul { margin-top: 12px; padding-left: 20px; list-style: disc; }
.prose li { margin-top: 6px; }
.prose a { color: var(--color-headline); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--color-headline); font-weight: 600; }
.prose .table-wrap { margin-top: 16px; overflow-x: auto; border: 1px solid var(--color-border); border-radius: 12px; }
.prose table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 14px; border-top: 1px solid var(--color-border); }
.prose th { border-top: 0; background: var(--color-chip); font-weight: 600; color: var(--color-headline); }

/* Breakpoints */
@media (max-width: 479px) {
  .nav__link { display: none; }
}

@media (max-width: 767px) {
  :root { --space-section: 56px; }
  .step { padding: 20px; }
  .step__visual { height: 116px; margin-bottom: 18px; }
  .phone--bleed { max-width: none; height: 420px; }
  .feature__media .phone--clip { position: relative; max-width: none; height: 400px; }
  .plans__note, .faq__more { text-align: left; }
  .feature__media .phone--clip::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 96px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #FFFFFF);
  }
  .feature__media .phone--short { height: auto; }
  .feature__media .phone--short::after { display: none; }
  .footer__links { flex-direction: column; gap: 12px; }
}

@media (min-width: 640px) {
  .plans { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .lede { font-size: 18px; line-height: 28px; }
  .hero__grid { grid-template-columns: 1.1fr 0.9fr; gap: 48px; }
  .phone--bleed { max-width: 320px; height: 560px; }
  .section__head--center { margin: 0 auto; text-align: center; }
  .section__head--center .label { justify-content: center; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
  .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
  .feature__media { order: 0; }
  .feature__copy { order: 1; }
  .feature--flip .feature__media { order: 2; }
  .footer__row { flex-direction: row; align-items: flex-start; justify-content: space-between; }
  .footer__links { max-width: 420px; justify-content: center; }
}
