/* ==========================================================================
   MyWalkup — shared stylesheet
   One file for every page (index + interior pages). Plain CSS, no build step.

   AVAILABLE COMPONENTS (class names are generic on purpose — reuse them
   on interior pages rather than inventing new ones):

   Design tokens
     :root custom properties — colors, gradients, fonts, radii, spacing.

   Layout / utilities
     .container            max-width content wrapper, responsive side padding
     .section              standard vertical section rhythm (padding-block)
     .section--tight       reduced vertical rhythm for compact sections
     .section-head         eyebrow + heading wrapper, centers + spaces itself
     .eyebrow               small uppercase label (Barlow Condensed, brand color)
     .text-brand            inline brand-green text
     .text-gradient-pro      inline Pro gradient text (background-clip)
     .stripe-divider         diagonal green/bg stripe brand motif (full width)
     .sr-only                visually-hidden but screen-reader-accessible text

   Buttons
     .btn, .btn-primary, .btn-secondary, .btn-lg

   Site chrome
     .site-header, .site-header__row, .logo, .logo__img, .nav, .nav__link
     .site-footer, .footer-grid, .footer-col__title, .footer-links,
     .footer-link, .social-icon, .footer-bottom, .footer-bottom__address

   Cards
     .card                  base card (bg-elev surface, border, radius)
     .card--pro             gradient-border variant (layer on top of .card)

   Home page sections
     .hero-grid, .hero-content, .hero-tagline, .hero-actions, .phone-frame
     .steps-grid, .step-card, .step-number
     .features-grid, .feature-card, .feature-icon
     .pro-grid, .pro-list, .pro-note
     .cta-section, .cta-actions
     .about-strip

   Generic content-page components (for faq/about/support/messaging, etc.)
     .page-hero             short interior-page hero (eyebrow + h1 + intro)
     .prose                 long-form text column (headings, lists, links)
     .faq-item               zero-JS <details>/<summary> accordion row
     .faq-list               wrapper for a list of .faq-item
     .contact-card           card variant for contact / address blocks
     .contact-grid           2-up grid for .contact-card blocks

   Accessibility
     :focus-visible rules, prefers-reduced-motion guard, .sr-only
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- Design tokens ---------- */
:root {
  /* surfaces */
  --bg: #0D1108;
  --bg-elev: #181818;
  --bg-elev2: #232323;

  /* brand */
  --brand: #00E5A0;
  --brand-hover: #4DF2C0;
  --on-brand: #000000;

  /* content */
  --content: #FEFFFF;
  --content-2: #D1D1D1;
  --content-3: #828282;
  --content-muted: #8A8A8A; /* 4.5:1+ on --bg-elev (footer) — don't darken */

  --border: rgba(255, 255, 255, .15);
  --border-2: rgba(254, 255, 255, .30);

  --gradient-pro: linear-gradient(135deg, #37D4FF, #32E8CA, #2CFD95);

  /* type */
  --font-display: 'Anton', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --font-label: 'Barlow Condensed', sans-serif;

  /* layout */
  --container-max: 1200px;
  --container-pad: clamp(24px, 6vw, 72px);
  --section-space: clamp(72px, 10vh, 120px);
  --radius-card: 20px;
  --radius-pill: 999px;
}

/* ---------- Base typography ---------- */
body {
  background: var(--bg);
  color: var(--content-2);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.02;
  color: var(--content);
  margin: 0;
}

h1 { font-size: clamp(48px, 8vw, 108px); }
h2 { font-size: clamp(32px, 5vw, 56px); }

h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.3;
  color: var(--content);
  margin: 0;
}

p { margin: 0; }

a {
  color: var(--content-2);
  text-decoration: none;
}

a:hover {
  color: var(--brand);
}

strong { color: var(--content); }

/* ---------- Layout / utilities ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--section-space);
}

.section--tight {
  padding-block: clamp(48px, 6vh, 72px);
}

.section-head {
  max-width: 720px;
  margin: 0 0 clamp(40px, 6vh, 64px);
}

.section-head .eyebrow {
  margin-bottom: 16px;
}

.section-head p {
  margin-top: 20px;
  font-size: 18px;
  color: var(--content-3);
}

.eyebrow {
  display: block;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brand);
}

.text-brand { color: var(--brand); }

.text-gradient-pro {
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-image: var(--gradient-pro);
}

.stripe-divider {
  height: 14px;
  background: repeating-linear-gradient(-45deg, var(--brand) 0 22px, var(--bg) 22px 44px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 14px 28px;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--brand);
  color: var(--on-brand);
}

.btn-primary:hover {
  background: var(--brand-hover);
  color: var(--on-brand);
}

.btn-secondary {
  background: transparent;
  color: var(--content);
  border-color: var(--border-2);
}

.btn-secondary:hover {
  background: var(--content);
  color: var(--on-brand);
  border-color: var(--content);
}

.btn-lg {
  font-size: clamp(19px, 2vw, 24px);
  padding: 20px clamp(28px, 3vw, 40px);
}

/* ---------- Site header ---------- */
.site-header {
  background: var(--bg);
}

.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 32px;
  padding-block: 28px;
}

.logo {
  display: inline-flex;
  flex-shrink: 0;
}

.logo__img {
  width: clamp(140px, 16vw, 168px);
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin-inline: auto 0;
}

.nav__link {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--content-2);
}

.nav__link:hover { color: var(--brand); }

/* Below 640px the header keeps logo + CTA only; all nav targets remain
   reachable in the footer. Hide the whole <nav> so no empty landmark is
   exposed to the accessibility tree. */
@media (max-width: 640px) {
  .nav { display: none; }
}

/* ---------- Site footer ---------- */
.site-footer {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-block: clamp(48px, 7vh, 80px) 48px;
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

.footer-col__title {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--content-3);
  margin: 0 0 20px;
}

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

.footer-link {
  font-size: 16px;
  color: var(--content-2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-link:hover { color: var(--brand); }

.social-icon {
  display: inline-flex;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-block: 28px;
  font-size: 14px;
  color: var(--content-muted);
}

.footer-bottom__address {
  font-style: normal;
  text-align: right;
  line-height: 1.6;
}

@media (max-width: 480px) {
  .footer-bottom { flex-direction: column; }
  .footer-bottom__address { text-align: left; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: clamp(28px, 4vw, 36px);
}

.card--pro {
  border-color: transparent;
  background-image: linear-gradient(var(--bg-elev), var(--bg-elev)), var(--gradient-pro);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

/* ---------- Hero ---------- */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: center;
  gap: 48px;
  padding-block: clamp(32px, 6vh, 64px) clamp(56px, 9vh, 104px);
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
}

.hero-content {
  max-width: 620px;
}

.hero-content h1 {
  margin-block: 20px 28px;
}

.hero-tagline {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--content);
  margin-bottom: 20px;
}

.hero-content p.hero-copy {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  color: var(--content-3);
  max-width: 560px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 640px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
}

.phone-frame {
  width: min(340px, 100%);
  margin-inline: auto;
  padding: 14px;
  border-radius: 44px;
  background: var(--bg-elev);
  border: 1px solid var(--border-2);
  box-shadow: 0 0 0 1px rgba(0, 229, 160, .08), 0 40px 80px -30px rgba(0, 229, 160, .25), 0 20px 60px rgba(0, 0, 0, .5);
}

.phone-frame img {
  width: 100%;
  height: auto;
  border-radius: 36px;
}

/* ---------- How it works ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 900px) {
  .steps-grid { grid-template-columns: minmax(0, 1fr); }
}

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

.step-number {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--brand);
  line-height: 1;
}

.step-card p {
  color: var(--content-3);
  font-size: 16px;
}

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: minmax(0, 1fr); }
}

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

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--bg-elev2);
  color: var(--brand);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card p {
  color: var(--content-3);
  font-size: 16px;
}

/* ---------- Pro section ---------- */
.pro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

@media (max-width: 800px) {
  .pro-grid { grid-template-columns: minmax(0, 1fr); }
}

.pro-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pro-list li {
  display: flex;
  gap: 14px;
  color: var(--content-2);
  font-size: 17px;
}

.pro-list li::before {
  content: '';
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--gradient-pro);
}

.pro-note {
  margin-top: 24px;
  font-size: 14px;
  color: var(--content-3);
}

/* ---------- Download CTA ---------- */
.cta-section {
  text-align: center;
}

.cta-section h2 {
  margin-bottom: 20px;
}

.cta-section p {
  max-width: 560px;
  margin: 0 auto 36px;
  font-size: 18px;
  color: var(--content-3);
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 480px) {
  .cta-actions { flex-direction: column; align-items: stretch; }
}

/* ---------- About strip ---------- */
.about-strip {
  border-top: 1px solid var(--border);
  text-align: center;
}

.about-strip p {
  max-width: 640px;
  margin: 0 auto 24px;
  font-size: 17px;
  color: var(--content-3);
}

.about-strip .about-strip__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-family: var(--font-label);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 15px;
}

/* ==========================================================================
   Generic content-page components (interior pages: faq, about, support,
   messaging, etc.)
   ========================================================================== */

.page-hero {
  padding-block: clamp(56px, 9vh, 96px) clamp(40px, 6vh, 64px);
}

.page-hero .eyebrow {
  margin-bottom: 20px;
}

.page-hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  margin-bottom: 20px;
}

.page-hero p {
  max-width: 640px;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--content-3);
  line-height: 1.6;
}

.page-hero .hero-actions {
  margin-top: 32px;
}

.prose {
  max-width: 760px;
}

.prose h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  margin-top: 56px;
  margin-bottom: 20px;
}

.prose h2:first-child { margin-top: 0; }

.prose h3 {
  font-size: 19px;
  margin-top: 32px;
  margin-bottom: 12px;
}

.prose p {
  color: var(--content-2);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 18px;
}

.prose ul,
.prose ol {
  margin: 0 0 18px;
  padding-left: 22px;
  list-style: disc;
  color: var(--content-2);
}

.prose ol { list-style: decimal; }

.prose li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.prose a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  max-width: 800px;
}

.faq-list + .section-head {
  margin-top: 56px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding-block: 24px;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  color: var(--content);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--brand);
}

.faq-item[open] summary::after {
  content: '\2212';
}

.faq-item p {
  margin-top: 16px;
  color: var(--content-3);
  font-size: 16px;
  line-height: 1.7;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 640px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-card h3 {
  margin-bottom: 4px;
}

.contact-card a {
  color: var(--brand);
}

.contact-card address {
  font-style: normal;
  color: var(--content-3);
  line-height: 1.6;
}

/* ---------- Accessibility ---------- */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
