/* Hopla – landing page (design direction 6a) */

:root {
  --ink: #0F1B33;
  --text: #475467;
  --text-soft: #667085;
  --text-strong: #344054;
  --blue: #1F45C8;
  --blue-dark: #16359e;
  --blue-tint: #EEF2FD;
  --blue-line: #D3DCF5;
  --orange: #F2A728;
  --orange-ink: #B86A00;
  --orange-soft: #FDE8C2;
  --warm-tint: #FFF7EA;
  --warm-line: #F3E2C4;
  --highlight: #FAD9A0;
  --line: #E6EAF0;
  --card-line: #DDE2E9;
  --input-line: #D0D5DD;
  --placeholder-a: #E7ECFA;
  --placeholder-b: #DEE5F8;
  --placeholder-text: #5B6B82;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, p { margin: 0; }

.container { max-width: 1280px; margin: 0 auto; padding-inline: 40px; }
.container-narrow { max-width: 1240px; margin: 0 auto; padding-inline: 24px; }

.section-title { font-size: 44px; font-weight: 700; letter-spacing: -1.2px; line-height: 1.1; }
.section-title.center { text-align: center; }
.section-title.large { font-size: 56px; line-height: 1.05; letter-spacing: -1.8px; text-wrap: balance; }
.section-title.accent::before {
  content: '';
  display: block;
  width: 32px;
  height: 4px;
  border-radius: 2px;
  background: var(--orange);
  margin-bottom: 20px;
}
.section-title.accent.center::before { margin-inline: auto; }

.placeholder-label {
  font: 12px/1.5 ui-monospace, Menlo, monospace;
  color: var(--placeholder-text);
  text-align: center;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-blue { background: var(--blue); color: #fff; padding: 12px 20px; }
.btn-blue:hover { background: var(--blue-dark); }
.btn-orange { background: var(--orange); color: var(--ink); }
.btn-orange:hover { background: #f5b545; }
.btn-outline { background: #fff; color: var(--ink); border: 1.5px solid var(--input-line); }
.btn-outline:hover { border-color: var(--orange); }

/* Official store badges – keep them the same height and don't recolour them */
.store-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
.store-badge { display: block; transition: transform .15s; }
.store-badge:hover { transform: translateY(-1px); }
.store-badge img { height: 52px; width: auto; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-block: 24px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand span { font-size: 22px; font-weight: 700; letter-spacing: -0.3px; }
.brand-lg img { width: 44px; height: 44px; border-radius: 12px; }

.main-nav { display: flex; align-items: center; gap: 36px; font-size: 16px; font-weight: 500; }
.main-nav a:not(.btn) { color: var(--text); text-decoration: none; }
.main-nav a:not(.btn):hover { color: var(--ink); }

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 96px;
  scroll-margin-top: 90px;
}
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-size: 76px; line-height: 1; font-weight: 700; letter-spacing: -2.4px; text-wrap: balance; }
.highlight { background: linear-gradient(transparent 64%, var(--highlight) 64%, var(--highlight) 90%, transparent 90%); }
.lead { max-width: 520px; font-size: 20px; line-height: 1.6; color: var(--text); text-wrap: pretty; }

.hero-visual {
  position: relative;
  height: 620px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 82% 14%, var(--orange-soft) 0 90px, transparent 91px),
    radial-gradient(circle at 12% 92%, var(--blue-line) 0 120px, transparent 121px),
    var(--blue-tint);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-badge {
  position: absolute;
  left: -36px;
  bottom: 48px;
  width: 104px;
  height: 104px;
  border-radius: 26px;
  box-shadow: 0 16px 40px rgba(15, 27, 51, .18);
}

/* Features */

.features { padding: 120px 0 40px; scroll-margin-top: 60px; }
.features .section-title { margin-bottom: 56px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.feature-card {
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 16px;
  padding: 32px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .2s;
}
.feature-card:hover { border-color: #AFC0EE; }
.feature-icon { position: relative; width: 48px; height: 48px; margin-bottom: 16px; }
.feature-icon svg {
  position: relative;
  display: block;
  width: 40px;
  height: 40px;
  margin: 4px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-card h3 { font-size: 24px; font-weight: 600; line-height: 1.25; letter-spacing: -0.3px; }
.feature-card p { font-size: 16px; line-height: 1.6; color: var(--text); }

/* How it works */

.how { padding: 80px 0; scroll-margin-top: 20px; }
.how-panel {
  background: var(--blue-tint);
  border-radius: 24px;
  padding: 96px 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 96px;
}
.phone {
  flex: 0 0 300px;
  height: 612px;
  background: var(--ink);
  border-radius: 48px;
  padding: 12px;
  box-shadow: 0 30px 60px rgba(15, 27, 51, .18);
}
.phone-screen {
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: var(--blue-tint);
}
.phone-screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }

.how-steps { flex: 1; max-width: 560px; }
.how-steps .section-title { margin-bottom: 36px; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: baseline;
  border-top: 1px solid var(--blue-line);
  padding: 24px 0;
}
.steps p { font-size: 20px; font-weight: 500; line-height: 1.4; }
.step-num { font-size: 15px; font-weight: 700; color: var(--orange-ink); font-variant-numeric: tabular-nums; }

/* Testimonials */

.testimonials { background: var(--warm-tint); }
.testimonials-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  padding-block: 112px;
}
.testimonials-intro { display: flex; flex-direction: column; gap: 20px; }
.note { font-size: 15px; color: var(--text-soft); }

.carousel { display: flex; flex-direction: column; gap: 28px; }
.carousel-track { display: grid; }
.quote-card {
  grid-area: 1 / 1;
  margin: 0;
  background: #fff;
  border: 1px solid var(--warm-line);
  border-radius: 20px;
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  min-height: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(12px);
  transition: opacity .3s, transform .3s, visibility .3s;
}
.quote-card.is-active { opacity: 1; visibility: visible; transform: none; }
.quote-card blockquote { margin: 0; font-size: 22px; line-height: 1.45; font-weight: 500; letter-spacing: -0.2px; text-wrap: pretty; }
.quote-card figcaption { display: flex; align-items: center; gap: 18px; }
.quote-card figcaption > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.quote-card strong { font-size: 17px; font-weight: 600; }
.quote-card small { font-size: 15px; color: var(--text-soft); }
.avatar {
  flex: none;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  object-fit: cover;
  background: repeating-linear-gradient(135deg, #E8EDF4 0 6px, #E0E6EF 6px 12px);
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--orange);
}

.carousel-controls { display: flex; align-items: center; justify-content: space-between; }
.dots { display: flex; gap: 8px; }
.dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #CBD2DC;
  cursor: pointer;
  transition: width .2s, background-color .2s;
}
.dot[aria-selected="true"] { width: 24px; background: var(--orange); }
.arrows { display: flex; gap: 12px; }
.arrow {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 1px solid var(--input-line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .15s;
}
.arrow:hover { border-color: var(--orange); }
.arrow svg { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Contact */

.contact {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr) 220px;
  gap: 64px;
  align-items: start;
  padding-block: 112px;
  scroll-margin-top: 60px;
}
.contact-body { display: flex; flex-direction: column; gap: 28px; }
.contact-body p { font-size: 22px; line-height: 1.5; color: var(--text-strong); max-width: 520px; }
.contact-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.founder { display: flex; flex-direction: column; gap: 6px; }
.founder-photo {
  width: 220px;
  height: 260px;
  border-radius: 16px;
  border: 1.5px solid var(--input-line);
  object-fit: cover;
  background: var(--placeholder-a);
  margin-bottom: 10px;
}
.founder strong { font-size: 18px; font-weight: 600; }

/* Download band */

.download-band { padding-bottom: 112px; }
.band {
  position: relative;
  overflow: hidden;
  background: var(--blue);
  color: #fff;
  border-radius: 24px;
  padding: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.band-copy { position: relative; display: flex; align-items: center; gap: 28px; }
.band-copy img { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 0 0 4px rgba(255, 255, 255, .2); }
.band h2 { font-size: 52px; line-height: 1.02; font-weight: 700; letter-spacing: -1.6px; text-wrap: balance; }
.band .store-buttons { position: relative; flex: none; margin-top: 0; }

/* Footer */

.site-footer { background: #fff; padding-bottom: 40px; }
.footer-stripe { display: flex; height: 3px; margin-bottom: 72px; }
.footer-stripe span:first-child { flex: 4; background: var(--blue); }
.footer-stripe span:last-child { flex: 1; background: var(--orange); }
.footer-top { display: flex; justify-content: space-between; gap: 64px; padding-bottom: 64px; }
.footer-brand { display: flex; flex-direction: column; gap: 28px; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.footer-contact strong { font-weight: 600; }
.socials { display: flex; gap: 16px; }
.socials a { display: flex; }
.socials svg { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
.footer-links { display: grid; grid-template-columns: repeat(2, 200px); gap: 16px 48px; align-content: start; }
.footer-links nav { display: flex; flex-direction: column; gap: 18px; }
.footer-links a { text-decoration: none; font-size: 16px; font-weight: 600; }
.footer-links a:hover { color: var(--blue); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 15px;
}
.footer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; color: var(--text); }
.made-in { display: flex; align-items: center; gap: 6px; color: var(--text); }
.made-in svg { fill: var(--orange); }
.footer-bottom nav { display: flex; gap: 28px; }

/* Tablet */

@media (max-width: 1080px) {
  .hero h1 { font-size: 60px; letter-spacing: -1.8px; }
  .hero-visual { height: 520px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how-panel { padding: 64px 48px; gap: 56px; }
  .phone { flex-basis: 260px; height: 530px; }
  .contact { grid-template-columns: minmax(0, 1fr) 220px; }
  .contact .section-title { grid-column: 1 / -1; }
  .band { flex-direction: column; align-items: flex-start; padding: 56px 48px; gap: 36px; }
  .band h2 { font-size: 44px; }
}

@media (max-width: 860px) {
  .container { padding-inline: 24px; }
  .main-nav a:not(.btn) { display: none; }
  .header-inner { padding-block: 16px; }

  .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 48px; padding-bottom: 64px; }
  .hero-visual { height: 560px; }
  .hero-badge { left: 24px; bottom: -32px; width: 88px; height: 88px; border-radius: 22px; }

  .how-panel { flex-direction: column; padding: 56px 32px; }
  .phone { flex: none; width: 260px; }
  .how-steps { width: 100%; }

  .testimonials-inner { grid-template-columns: 1fr; gap: 40px; padding-block: 80px; }

  .contact { grid-template-columns: 1fr; gap: 32px; padding-block: 80px; }

  .footer-top { flex-direction: column; gap: 48px; }
}

/* Phone */

@media (max-width: 560px) {
  .container-narrow { padding-inline: 16px; }
  .container { padding-inline: 16px; }
  .brand span { font-size: 20px; }
  .btn-blue { padding: 10px 16px; font-size: 15px; }

  .hero h1 { font-size: 44px; letter-spacing: -1.2px; }
  .lead { font-size: 18px; }
  .store-badge img { height: 48px; }
  .hero-visual { height: 480px; border-radius: 20px; }

  .section-title { font-size: 34px; letter-spacing: -0.8px; }
  .section-title.large { font-size: 38px; letter-spacing: -1px; }

  .features { padding-top: 80px; }
  .features .section-title { margin-bottom: 36px; }
  .feature-grid { grid-template-columns: 1fr; gap: 16px; }
  .feature-card { padding: 28px 24px 32px; }
  .feature-card svg { margin-bottom: 8px; }

  .how { padding: 48px 0; }
  .how-panel { padding: 40px 20px; gap: 40px; border-radius: 20px; }
  .phone { width: 220px; height: 450px; border-radius: 40px; }
  .phone-screen { border-radius: 30px; }
  .steps li { grid-template-columns: 44px minmax(0, 1fr); padding: 20px 0; }
  .steps p { font-size: 18px; }

  .quote-card { padding: 28px; }
  .quote-card blockquote { font-size: 19px; }

  .contact-body p { font-size: 19px; }
  .contact-buttons .btn { flex: 1 1 auto; justify-content: center; }

  .download-band { padding-bottom: 72px; }
  .band { padding: 40px 24px; border-radius: 20px; }
  .band-copy { flex-direction: column; align-items: flex-start; gap: 20px; }
  .band-copy img { width: 64px; height: 64px; border-radius: 16px; }
  .band h2 { font-size: 34px; letter-spacing: -0.8px; }
  .footer-stripe { margin-bottom: 56px; }

  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
