:root {
  --bg: #f7f8fa;
  --bg-deep: #eef1f5;
  --surface: #ffffff;
  --ink: #141820;
  --ink-soft: #545b66;
  --ink-faint: #8a919c;
  --accent: #1a1d22;
  --line: rgba(20, 24, 32, 0.08);
  --highlight: #e4e8ee;
  --radius: 20px;
  --radius-sm: 14px;
  --radius-pill: 999px;
  --shadow: 0 24px 80px rgba(20, 24, 32, 0.12);
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: 0;
  cursor: pointer;
  background: none;
  text-align: left;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

/* —— Nav (Cal AI style) —— */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 248, 250, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-icon {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.nav-center {
  display: none;
  align-items: center;
  gap: 28px;
}

.nav-center a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.nav-center a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-badges {
  display: none;
  align-items: center;
  gap: 10px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.store-badge img,
.store-badge svg {
  display: block;
  height: 44px;
  width: auto;
}

.nav-badges .store-badge img,
.nav-badges .store-badge svg,
.footer-badges .store-badge img,
.footer-badges .store-badge svg,
.nav-drawer-badges .store-badge img,
.nav-drawer-badges .store-badge svg {
  height: 40px;
}

.nav-toggle {
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(20, 24, 32, 0.05);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.nav-drawer {
  display: none;
  padding: 8px 0 20px;
  border-top: 1px solid var(--line);
  gap: 14px;
}

.nav-drawer.open {
  display: grid;
}

.nav-drawer a {
  font-weight: 600;
  padding: 6px 0;
}

.nav-drawer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 8px;
}

@media (min-width: 960px) {
  .nav-center,
  .nav-badges {
    display: flex;
  }

  .nav-toggle,
  .nav-drawer {
    display: none !important;
  }
}

/* —— Hero —— */
.hero {
  padding: 56px 0 80px;
  overflow: clip;
}

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    min-height: min(70vh, 680px);
  }
}

.hero-copy {
  --hero-type: clamp(2.05rem, 4.5vw, 2.85rem);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--hero-type);
  line-height: 1.08;
  letter-spacing: -0.045em;
  margin: 0 0 16px;
}

/*
 * Shrink-wrap to the note line, then paint the wordmark as a
 * non-replaced layer so SVG intrinsic width can’t blow the lockup out.
 */
.hero-lockup {
  display: inline-block;
  max-width: 100%;
  vertical-align: top;
}

.hero-wordmark {
  display: block;
  width: 100%;
  aspect-ratio: 81 / 27;
  margin: 10px 0 0;
  background: url("./assets/supastrong-wordmark.svg") center / contain no-repeat;
}

.hero h1 .line {
  display: block;
}

.hero-lead {
  font-size: 1rem;
  color: var(--ink-soft);
  max-width: 42ch;
  margin: 0 0 26px;
  line-height: 1.55;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-ghost {
  background: rgba(20, 24, 32, 0.06);
  color: var(--ink);
}

.btn-lg {
  height: 56px;
  padding: 0 26px;
  font-size: 1.02rem;
}

.hero-note {
  font-size: 0.88rem;
  color: var(--ink-faint);
  margin: 0;
  width: max-content;
  max-width: min(100%, 22rem);
}

.hero-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}

.hero-glow {
  position: absolute;
  inset: 12% 18%;
  background: radial-gradient(circle, rgba(26, 29, 34, 0.08), transparent 70%);
  filter: blur(18px);
  animation: pulse 6s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.phone {
  --phone-bezel: 9px;
  --phone-r: 48px;
  --screen-r: 40px;
  position: relative;
  width: min(280px, 58vw);
  aspect-ratio: 9 / 19.5;
  border-radius: var(--phone-r);
  background:
    linear-gradient(165deg, #3a3a3e 0%, #121214 28%, #0a0a0b 72%, #222226 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 28px 70px rgba(20, 24, 32, 0.28),
    0 8px 24px rgba(20, 24, 32, 0.14);
  overflow: visible;
  animation: float-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.phone-screen {
  position: absolute;
  z-index: 1;
  inset: var(--phone-bezel);
  width: calc(100% - var(--phone-bezel) * 2);
  height: calc(100% - var(--phone-bezel) * 2);
  border-radius: var(--screen-r);
  object-fit: cover;
  object-position: top center;
  display: block;
  background: #000;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55);
}

.phone-island {
  position: absolute;
  top: calc(var(--phone-bezel) + 11px);
  left: 50%;
  z-index: 3;
  width: 28%;
  max-width: 92px;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 20px;
  background: #010101;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  pointer-events: none;
}

.phone-btn {
  position: absolute;
  z-index: 0;
  background: linear-gradient(90deg, #2c2c30, #141416 45%, #2a2a2e);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.phone-btn-silent {
  left: -2px;
  top: 18%;
  width: 3px;
  height: 4.2%;
  border-radius: 2px 0 0 2px;
}

.phone-btn-vol-up {
  left: -2px;
  top: 26%;
  width: 3px;
  height: 7%;
  border-radius: 2px 0 0 2px;
}

.phone-btn-vol-down {
  left: -2px;
  top: 35%;
  width: 3px;
  height: 7%;
  border-radius: 2px 0 0 2px;
}

.phone-btn-power {
  right: -2px;
  top: 29%;
  width: 3px;
  height: 10%;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(270deg, #2c2c30, #141416 45%, #2a2a2e);
}

.phone-label {
  display: none;
}

.phone-secondary {
  position: absolute;
  width: min(280px, 58vw);
  right: 2%;
  bottom: 4%;
  opacity: 0.92;
  transform: rotate(8deg) translate(18%, 8%);
  animation: float-in-tilt 1.1s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
  z-index: 0;
}

.hero-stage .phone:not(.phone-secondary) {
  z-index: 1;
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes float-in-tilt {
  from {
    opacity: 0;
    transform: rotate(8deg) translate(18%, 28%) scale(0.98);
  }
  to {
    opacity: 0.92;
    transform: rotate(8deg) translate(18%, 8%);
  }
}

@media (max-width: 959px) {
  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-lead {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-lockup {
    margin-inline: auto;
  }

  .hero-stage {
    min-height: 360px;
    margin-inline: auto;
    width: min(100%, 300px);
  }

  .phone,
  .phone-secondary {
    width: min(200px, 54vw);
  }

  .phone-secondary {
    right: auto;
    left: 50%;
    bottom: 2%;
    animation: none;
    opacity: 0.92;
    /* Keep the pair optically centered under the copy column */
    transform: rotate(8deg) translate(-18%, 6%);
  }
}

/* —— Sections —— */
section {
  padding: 88px 0;
}

.section-head {
  max-width: 560px;
  margin-bottom: 40px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 12px;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.feature-grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 800px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature {
  padding: 28px 26px 30px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(20, 24, 32, 0.06);
  margin-bottom: 22px;
  color: var(--ink);
}

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

.feature h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}

.feature p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* —— Image wall —— */
.wall {
  padding-top: 40px;
}

.wall-head {
  text-align: center;
  margin-bottom: 36px;
}

.wall-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  letter-spacing: -0.04em;
  margin: 0;
}

.wall-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  align-items: end;
}

@media (min-width: 800px) {
  .wall-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

.wall-card {
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  background: #0c0c0d;
  border: 1px solid rgba(20, 24, 32, 0.06);
  position: relative;
  overflow: hidden;
}

.wall-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.wall-card:nth-child(2),
.wall-card:nth-child(5) {
  transform: translateY(-18px);
}

@media (max-width: 799px) {
  .wall-card:nth-child(2),
  .wall-card:nth-child(5) {
    transform: none;
  }

  .wall-card:nth-child(odd) {
    transform: translateY(10px);
  }
}

/* —— Inside the app (Cal AI include style) —— */
.product-head {
  text-align: center;
  margin-bottom: 48px;
}

.product-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  margin: 0;
}

.product-layout {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .product-layout {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
  }
}

.product-phone-wrap {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.product-phone {
  width: min(300px, 72vw);
  animation: none;
}

.product-dots {
  display: flex;
  gap: 8px;
}

.product-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c9cfd8;
  padding: 0;
}

.product-dots button.is-active {
  background: var(--ink);
  transform: scale(1.15);
}

.product-cards {
  display: grid;
  gap: 12px;
}

.product-card {
  width: 100%;
  padding: 22px 22px 20px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid transparent;
  box-shadow: 0 1px 2px rgba(20, 24, 32, 0.04);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.product-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}

.product-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
  display: none;
}

.product-card.is-active {
  background: #eceff3;
  border-color: var(--ink);
  box-shadow: none;
}

.product-card.is-active p {
  display: block;
}

/* —— FAQ centered —— */
.faq {
  background: linear-gradient(180deg, transparent, rgba(228, 232, 238, 0.45));
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 720px;
  margin-inline: auto;
}

.faq-item {
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

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

.faq-item summary::after {
  content: "+";
  font-weight: 500;
  color: var(--ink-faint);
  font-size: 1.2rem;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item .faq-body {
  padding: 0 20px 18px;
  color: var(--ink-soft);
  font-size: 0.98rem;
  text-align: left;
}

.faq-item .faq-body p {
  margin: 0 0 10px;
}

.faq-item .faq-body ul {
  margin: 0;
  padding-left: 18px;
}

.support {
  padding-top: 48px;
}

.support-mail {
  display: inline-block;
  margin-top: 22px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--ink);
}

.support-mail:hover {
  opacity: 0.7;
}

/* —— Footer (Cal AI style) —— */
.footer {
  padding: 64px 0 28px;
  border-top: 1px solid var(--line);
  background: #fafbfc;
}

.footer-grid {
  display: grid;
  gap: 40px;
  padding-bottom: 40px;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 32px;
  }
}

.footer-brand-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-download-label {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

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

.footer-col h3 {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 800;
}

.footer-col a {
  display: block;
  color: var(--ink-soft);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 0.88rem;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--ink);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  display: block;
}

.footer .brand-icon {
  width: 24px;
  height: 24px;
}

/* —— Legal pages —— */
.legal-page {
  padding: 48px 0 96px;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: -0.05em;
  margin: 0 0 8px;
}

.legal-meta {
  color: var(--ink-faint);
  margin: 0 0 40px;
  font-size: 0.95rem;
}

.legal-content {
  max-width: 720px;
  color: var(--ink-soft);
}

.legal-content h2 {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  margin: 36px 0 12px;
}

.legal-content p,
.legal-content li {
  margin: 0 0 12px;
  line-height: 1.65;
}

.legal-content ul {
  padding-left: 20px;
  margin: 0 0 12px;
}

.legal-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* —— Reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
