﻿/* ===================================================================
   Fonts
   =================================================================== */
@font-face {
  font-family: "Figtree";
  src: url("../assets/fonts/figtree-v9-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../assets/fonts/figtree-v9-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../assets/fonts/figtree-v9-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../assets/fonts/dm-sans-v17-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../assets/fonts/dm-sans-v17-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../assets/fonts/dm-sans-v17-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ===================================================================
   Design tokens
   =================================================================== */
:root {
  --color-hero-bg: #FFFBEA;
  --color-ink: #151411;
  --color-body: #38362E;
  --color-yellow: #FFD52B;
  --color-toast-border: #FFF2BD;
  --color-btn-border: #B5971F;
  --color-btn-ink: #473C0C;

  --font-heading: "Figtree", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  --content-max: 1200px;
}

/* ===================================================================
   Reset
   =================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-body);
  background: #fff;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
  pointer-events: none;
}

::selection {
  background: var(--color-yellow);
  color: var(--color-ink);
}

/* keep anchored sections clear of the floating nav */
#hero, #features, #install, #faq, #newsletter {
  scroll-margin-top: 120px;
}

/* ===================================================================
   Navbar (floating)
   =================================================================== */
.nav {
  position: fixed;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 1082px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.7);
  box-shadow:
    0 6px 20px rgba(255, 213, 43, 0.05),
    0 6px 20px rgba(0, 0, 0, 0.05);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-radius: 24px;
  transition: top 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.nav.is-scrolled {
  top: 16px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow:
    0 6px 24px rgba(255, 213, 43, 0.08),
    0 8px 28px rgba(0, 0, 0, 0.08);
}

.nav__inner {
  position: relative;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 16px;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
}

.nav__logo img { height: 40px; width: auto; display: block; }

/* center links, absolutely centered like the Figma */
.nav__links {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links a {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.02em;
  color: var(--color-body);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

/* yellow CTA */
.nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  background: var(--color-yellow);
  border: 1px solid var(--color-btn-border);
  border-radius: 12px;
  box-shadow:
    0 1px 3px 1px rgba(170, 119, 5, 0.3),
    inset 0 -4px 2px #BD8915,
    inset 0 0 2px 2px #FFF5DF;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.01em;
  color: var(--color-btn-ink);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.nav__cta:hover { filter: brightness(1.02); transform: translateY(-1px); }
.nav__cta:active { transform: translateY(1px); }

.nav__cta img { flex: none; }

/* hamburger (mobile only) */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav__toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.nav.is-open .nav__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile dropdown menu */
.nav__menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 12px 16px;
}

.nav__menu a {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  color: var(--color-body);
  text-decoration: none;
  padding: 10px 8px;
  border-radius: 10px;
  transition: background 0.15s ease;
}

.nav__menu a:hover { background: rgba(0, 0, 0, 0.04); }

.nav__cta--menu {
  margin-top: 8px;
  width: 100%;
  padding: 0 16px;
}

.nav.is-open .nav__menu { display: flex; }

@media (max-width: 860px) {
  .nav { width: calc(100% - 32px); top: 16px; }
  .nav__links,
  .nav__inner > .nav__cta { display: none; }
  .nav__toggle { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  .nav, .nav__toggle-bar { transition: none; }
}

/* ===================================================================
   Hero
   =================================================================== */
.hero {
  display: flex;
  justify-content: center;
  padding: 148px 100px 88px;
  background: var(--color-hero-bg);
  overflow: hidden;             /* clip the bleeding product image */
}

.hero__inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  width: 100%;
  max-width: var(--content-max);
}

/* ---- Left column ---- */
.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 32px;
  flex: 1 1 580px;
  max-width: 580px;
}

/* Toast */
.hero__toast {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--color-toast-border);
  border-radius: 16px;
  box-shadow:
    0 6px 12px rgba(255, 213, 43, 0.05),
    0 6px 12px rgba(0, 0, 0, 0.03);
}

.hero__toast-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-yellow);
  flex: none;
}

.hero__toast-label {
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.02em;
  color: var(--color-body);
}

/* Copy */
.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.75rem, 5.4vw, 4.5rem);   /* 44 -> 72 */
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}

.hero__subtitle {
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem); /* 17 -> 20 */
  line-height: 1.6;
  color: var(--color-body);
  max-width: 580px;
}

/* CTA button */
.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 56px;
  padding: 0 24px;
  background: var(--color-yellow);
  border: 1px solid var(--color-btn-border);
  border-radius: 16px;
  box-shadow:
    0 1px 3px 1px rgba(170, 119, 5, 0.3),
    inset 0 -5px 2px #BD8915,
    inset 0 0 3px 3px #FFF5DF;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.hero__cta-icon { flex: none; }

.hero__cta-label {
  font-weight: 600;
  font-size: 20px;
  line-height: 32px;
  color: var(--color-btn-ink);
}

.hero__cta:hover {
  filter: brightness(1.02);
  transform: translateY(-1px);
  box-shadow:
    0 4px 10px 1px rgba(170, 119, 5, 0.35),
    inset 0 -5px 2px #BD8915,
    inset 0 0 3px 3px #FFF5DF;
}

.hero__cta:active {
  transform: translateY(1px);
  box-shadow:
    0 1px 2px 0 rgba(170, 119, 5, 0.3),
    inset 0 -3px 2px #BD8915,
    inset 0 0 3px 3px #FFF5DF;
}

/* ===================================================================
   Install availability modal
   =================================================================== */
.install-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.install-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.install-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 19, 16, 0.42);
  backdrop-filter: blur(8px);
}

.install-modal__panel {
  position: relative;
  width: min(100%, 520px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 36px;
  background: #fff;
  border: 1px solid #E8E7E2;
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(20, 19, 16, 0.22);
  text-align: center;
}

.install-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #E8E7E2;
  border-radius: 999px;
  background: #FAF9F8;
  color: var(--color-body);
  cursor: pointer;
}

.install-modal__close svg {
  width: 18px;
  height: 18px;
}

.install-modal__badge {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: #FFD52B;
  box-shadow: 0 16px 36px rgba(255, 213, 43, 0.28);
}

.install-modal__badge img {
  width: 34px;
  height: 34px;
}

.install-modal__copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.install-modal__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 32px;
  line-height: 40px;
  color: var(--color-ink);
}

.install-modal__text {
  font-size: 17px;
  line-height: 28px;
  color: var(--color-body);
}

.install-modal__link {
  color: var(--color-ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.install-modal__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.install-modal__primary,
.install-modal__secondary {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0 20px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  text-decoration: none;
  cursor: pointer;
}

.install-modal__primary {
  border: 1px solid #E2B900;
  background: #FFD52B;
  color: var(--color-ink);
  box-shadow: 0 3px 0 #B48D00, 0 10px 20px rgba(255, 213, 43, 0.28);
}

.install-modal__secondary {
  border: 1px solid #E8E7E2;
  background: #fff;
  color: var(--color-body);
}

.install-modal-open {
  overflow: hidden;
}

@media (max-width: 520px) {
  .install-modal {
    padding: 18px;
  }

  .install-modal__panel {
    padding: 32px 22px 24px;
    border-radius: 20px;
  }

  .install-modal__title {
    font-size: 26px;
    line-height: 34px;
  }

  .install-modal__text {
    font-size: 16px;
    line-height: 26px;
  }

  .install-modal__actions {
    width: 100%;
  }

  .install-modal__primary,
  .install-modal__secondary {
    width: 100%;
  }
}

/* Browser support row */
.hero__browsers {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
}

.hero__browser-icons {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: none;
}

.browser-icon {
  width: 42px;
  height: 42px;
  flex: none;
}

.hero__browsers-text {
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.02em;
  color: var(--color-body);
}

/* ---- Right column (product image) ---- */
.hero__media {
  flex: 1 1 362px;
  max-width: 580px;
  position: relative;
  aspect-ratio: 580 / 766;   /* Figma frame */
}

/* Reproduce the Figma crop: image (981x1130) placed at left:-147 top:-182
   inside a 580x766 frame, expressed as proportions so it scales fluidly. */
.hero__media-img {
  position: absolute;
  top: -23.76%;     /* -182 / 766 */
  left: -25.34%;    /* -147 / 580 */
  width: 169.14%;   /*  981 / 580 */
  max-width: none;
  height: auto;
}

/* ===================================================================
   Reveal animation
   =================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
}

.is-ready [data-reveal] {
  animation: hero-reveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--reveal-delay, 0ms);
}

@keyframes hero-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    animation: none !important;
  }
  html { scroll-behavior: auto; }
}

/* ===================================================================
   Responsive
   =================================================================== */

/* Tablet - tighten padding, shrink image bleed */
@media (max-width: 1100px) {
  .hero { padding: 148px 56px 72px; }
  .hero__inner { gap: 32px; }
  .hero__media-img { left: -10%; width: 150%; }
}

/* Stack - single centered column, image last */
@media (max-width: 880px) {
  .hero { padding: 148px 32px 64px; }

  .hero__inner {
    flex-direction: column;
    align-items: center;
    gap: 48px;
  }

  .hero__content {
    align-items: center;
    text-align: center;
    max-width: 540px;
    flex: none;
    order: 0;
  }

  .hero__title { letter-spacing: -0.025em; }

  .hero__subtitle { max-width: 480px; }

  .hero__browsers {
    flex-direction: column;
    gap: 16px;
  }

  .hero__media {
    order: 1;
    width: 100%;
    max-width: 520px;
    height: 362px;  /* Figma frame height at 520px width */
    align-self: center;
  }

  .hero__media-img {
    position: absolute;
    transform: none;
    top: -140px;     /* -182 / 766 */
    width: 604px;
    height: 696px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .hero { padding: 148px 16px 56px; }
  .hero__toast-label { font-size: 14px; }
  .hero__title { font-size: clamp(2.25rem, 11vw, 3rem); }
  .hero__media-img {
    top: -109px;     /* -182 / 766 */
    left: -20%;       /* -147 / 580 */
    right: -20%;
    width: 550px;
    height: 633px;
    margin: 0 auto;
  }
}

/* ===================================================================
   Features (Section 2)
   =================================================================== */
.features {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 33px;
  padding: 80px 100px;
  background: #fff;
}

.features__inner {
  width: 100%;
  max-width: 1090px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 33px;
}

.features__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);    /* 32 -> 48 */
  line-height: 1.167;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--color-body);
}

.features__grid {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ---- Shared card surface ---- */
.feature-hero,
.feature-card {
  background: #FAF9F8;
  border-radius: 32px;
  overflow: hidden;
}

/* ---- Cropped media (reproduce Figma offsets proportionally) ---- */
.feature-hero__media,
.feature-card__media {
  position: relative;
  overflow: hidden;
}

.feature-hero__media > img,
.feature-card__media > img {
  position: absolute;
  height: auto;
  max-width: none;
}

/* aspect ratios from Figma frames */
.feature-card__media--sm { aspect-ratio: 347.33 / 215; }
.feature-card__media--lg { aspect-ratio: 533 / 239; }

.crop-bolt > img        { top: -38.57%; left: -38.18%; width: 165.45%; } /* 660x407 frame */
.crop-natural > img {
  box-sizing: border-box;
  top: 13.02%;
  left: calc(50% - 33.4% + 0.1%);
  width: 66.79%;
  height: 138.6%;
  background: #FFFFFF;
  border: 1px solid #DCDCDC;
  border-radius: 13.8146px;
}
.crop-flexible > img {
  top: 9.3%;
  left: 50%;
  width: 100.19%;
  height: 86.05%;
  transform: translateX(-50%);
}
.crop-project > img     { top: -17.21%; left: -21.55%; width: 143.09%; }
.crop-notification > img{ top: -46.44%; left: -45.03%; width: 193.06%; }
.crop-language > img    { top: -36.61%; left: -35.18%; width: 170.36%; }

/* ---- Row 1: hero feature card ---- */
.feature-hero {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

.feature-hero__media {
  flex: 0 0 60.55%;          /* 660 / 1090 */
  aspect-ratio: 660 / 407;
}

.feature-hero__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: 54px 24px;
}

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

.feature-hero__heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 32px;
  line-height: 40px;
  color: var(--color-ink);
}

.feature-hero__text {
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.02em;
  color: var(--color-body);
}

/* feature checklist */
.feat-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  isolation: isolate;        /* keep highlight ::before contained */
}

.feat-list__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.02em;
  color: var(--color-body);
}

.feat-list__icon { flex: none; }

/* hand-drawn yellow marker behind the shortcut */
.kbd-highlight {
  position: relative;
  white-space: nowrap;
}

.kbd-highlight::before {
  content: "";
  position: absolute;
  left: -7px;
  right: -7px;
  top: -2px;
  bottom: -3px;
  background: url("../assets/icons/Rectangle 536.svg") center/100% 100% no-repeat;
  z-index: -1;
}

/* ---- Rows 2 & 3: card grids ---- */
.feature-row {
  display: grid;
  gap: 24px;
}

.feature-row--3 { grid-template-columns: repeat(3, 1fr); }
.feature-row--2 { grid-template-columns: repeat(2, 1fr); }

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

.feature-card__media { width: 100%; }

.feature-card__content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.feature-card__heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 24px;
  line-height: 28px;
  color: var(--color-ink);
}

.feature-card__text {
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.02em;
  color: var(--color-body);
}

/* ---- Scroll reveal ---- */
[data-reveal-scroll] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal-scroll].in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal-scroll] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---- Features responsive ---- */
@media (max-width: 1100px) {
  .features { padding: 72px 56px; }
}

@media (max-width: 880px) {
  .features { padding: 64px 32px; gap: 28px; }
  .features__inner { gap: 28px; }

  /* Stack the hero feature card */
  .feature-hero { flex-direction: column; }
  .feature-hero__media {
    flex: none;
    width: 100%;
    aspect-ratio: 660 / 360;
  }
  .feature-hero__body { padding: 28px 24px 32px; }

  /* Three-up becomes one column */
  .feature-row--3 { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .feature-row--2 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .features { padding: 56px 20px; }
}

/* ===================================================================
   Install (Section 4)
   =================================================================== */
.install {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 100px;
  background: #fff;
}

.install__card {
  width: 100%;
  max-width: 1090px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
  padding: 48px 32px;
  background: #FAF9F8;
  border: 1px solid var(--color-border, #DAD9D2);
  border-radius: 32px;
}

.install__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 478px;
  text-align: center;
}

.install__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.75rem, 2.6vw, 2rem);   /* up to 32 */
  line-height: 1.25;
  color: var(--color-ink);
}

.install__sub {
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.02em;
  color: var(--color-body);
}

.install__browsers {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: 100%;
  max-width: 866px;
}

.install__label,
.install__note {
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--color-body);
}

.install__list {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 20px;
  width: 100%;
}

.store-card {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 32px;
  background: #fff;
  border-radius: 24px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.store-card img {
  width: 42px;
  height: 42px;
  flex: none;
}

.store-card span {
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--color-body);
}

.store-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* ---- Install responsive ---- */
@media (max-width: 1100px) {
  .install { padding: 72px 56px; }
}

@media (max-width: 880px) {
  .install { padding: 64px 32px; }
  .install__card { padding: 40px 24px; gap: 28px; }
  .install__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .install { padding: 56px 20px; }
  .install__card { padding: 32px 16px; }
  .store-card { padding: 28px 16px; }
}

/* ===================================================================
   FAQ (Section 5)
   =================================================================== */
.faq {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 100px;
  background: #fff;
}

.faq__inner {
  width: 100%;
  max-width: 739px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}

/* ---- Title with honeycomb backdrop ---- */
.faq__title {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-top: 24px;
}

.faq__honeycomb {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: 640px;
  height: 240px;
  opacity: 0.4;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='26'%3E%3Cpolygon points='15,2 24.5,7.5 24.5,18.5 15,24 5.5,18.5 5.5,7.5' fill='%23FFD52B'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='26'%3E%3Cpolygon points='15,2 24.5,7.5 24.5,18.5 15,24 5.5,18.5 5.5,7.5' fill='%23FFD52B'/%3E%3C/svg%3E");
  background-size: 30px 26px, 30px 26px;
  background-position: 0 0, 15px 13px;
  -webkit-mask: radial-gradient(ellipse 55% 70% at 50% 42%, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 72%);
          mask: radial-gradient(ellipse 55% 70% at 50% 42%, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 72%);
}

.faq__badge {
  position: relative;
  width: 98px;
  height: 98px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
}

.faq__hex {
  position: absolute;
  inset: 0;
  width: 98px;
  height: 98px;
  filter: drop-shadow(0 6px 16px rgba(255, 213, 43, 0.45));
}

.faq__badge-q {
  position: relative;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 60px;
  line-height: 72px;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}

.faq__heading {
  position: relative;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(2.25rem, 5vw, 3.75rem);   /* up to 60 */
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--color-ink);
}

/* ---- Accordion ---- */
.faq__list {
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 19px;
}

.faq-item {
  padding: 16px 24px;
  border-radius: 24px;
  background: transparent;
  transition: background 0.3s ease;
}

.faq-item:hover { background: #FFF6CF; }
.faq-item.open { background: #FFE371; }
.faq-item.open:hover { background: #FFE893; }

.faq-item__head {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.faq-item__q {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
  color: var(--color-ink);
}

.faq-item__chev {
  flex: none;
  width: 24px;
  height: 24px;
  transform: rotate(0deg);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item.open .faq-item__chev { transform: rotate(180deg); }

/* smooth height with grid-rows trick */
.faq-item__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item.open .faq-item__body { grid-template-rows: 1fr; }

.faq-item__inner {
  overflow: hidden;
  min-height: 0;
}

.faq-item__a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-ink);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.35s ease 0.05s, transform 0.35s ease 0.05s;
}

.faq-item__a:first-child { padding-top: 11px; }
.faq-item__a + .faq-item__a { padding-top: 16px; }

.faq-item.open .faq-item__a {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Contact row ---- */
.faq__contact {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.faq__contact-text {
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--color-body);
}

.faq__contact-action {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.faq__email {
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.01em;
  text-decoration: underline;
  color: var(--color-ink);
}

.faq__copy {
  position: relative;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #F3F3F1;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.18s ease;
}

.faq__copy:hover { background: #E8E7E2; }

.faq__copied {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 3px 8px;
  background: #151411;
  color: #fff;
  font-size: 12px;
  line-height: 18px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.faq__copy.copied .faq__copied {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .faq-item__body { transition: none; }
  .faq-item__chev { transition: none; }
  .faq-item__a { transition: none; }
}

/* ---- FAQ responsive ---- */
@media (min-width: 900px) {
  .faq__heading { white-space: nowrap; }
}

@media (max-width: 1100px) {
  .faq { padding: 72px 56px; }
}

@media (max-width: 880px) {
  .faq { padding: 64px 32px; gap: 28px; }
  .faq__inner { gap: 48px; }
  .faq-item__q { font-size: 18px; line-height: 24px; }
  .faq-item__a { font-size: 16px; line-height: 24px; }
}

@media (max-width: 480px) {
  .faq { padding: 56px 20px; }
  .faq__inner { gap: 40px; }
  .faq__honeycomb { width: 420px; height: 200px; }
  .faq__contact { gap: 12px; }
}

/* ===================================================================
   Newsletter (Section 6)
   =================================================================== */
.newsletter {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 100px;
  background: #fff;
}

.newsletter__inner {
  width: 100%;
  max-width: 571px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 19px;
}

.newsletter__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.newsletter__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.75rem, 2.6vw, 2rem);   /* up to 32 */
  line-height: 1.25;
  text-align: center;
  color: var(--color-ink);
}

.newsletter__sub {
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--color-body);
}

.newsletter__form {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 16px;
  padding: 12px 0;
}

.newsletter__field {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  height: 44px;
  border: 1px solid var(--color-border, #DAD9D2);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.18s ease;
}

.newsletter__field:focus-within { border-color: #A39F8F; }

.newsletter__icon { flex: none; display: inline-flex; }

.newsletter__input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  outline: none;
  background: none;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}

.newsletter__input::placeholder { color: #A39F8F; }

.newsletter__btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  background: var(--color-yellow);
  border: 1px solid var(--color-btn-border);
  border-radius: 12px;
  box-shadow:
    0 1px 3px 1px rgba(170, 119, 5, 0.3),
    inset 0 -4px 2px #BD8915,
    inset 0 0 2px 2px #FFF5DF;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.01em;
  color: var(--color-btn-ink);
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.newsletter__btn:hover { filter: brightness(1.02); transform: translateY(-1px); }
.newsletter__btn:active { transform: translateY(1px); }

.newsletter__note {
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--color-body);
}

.newsletter__note.is-success { color: #1f9d55; font-weight: 600; }

/* ===================================================================
   Footer (Section 7)
   =================================================================== */
.footer {
  background: var(--color-yellow);
  padding: 60px 100px 37px;
}

.footer__inner {
  max-width: 1312px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.footer__top {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 64px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 312px;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
}

.footer__logo img { height: 40px; width: auto; display: block; }

.footer__desc {
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.02em;
  color: var(--color-body);
}

.footer__cols {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 64px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer__heading {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 20px;
  line-height: 32px;
  color: #000;
}

.footer__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.02em;
  color: var(--color-body);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer__link:hover { color: var(--color-ink); text-decoration: underline; }

.footer__ext { width: 18px; height: 18px; flex: none; }

.footer__bottom {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 64px;
}

.footer__copy,
.footer__tagline {
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.02em;
  color: var(--color-body);
}

/* ---- Newsletter / Footer responsive ---- */
@media (max-width: 1100px) {
  .newsletter { padding: 72px 56px; }
  .footer { padding: 56px 56px 37px; }
}

@media (max-width: 880px) {
  .newsletter { padding: 64px 32px; }

  /* Stack the form: full-width input then full-width button */
  .newsletter__form { flex-direction: column; gap: 12px; }
  .newsletter__btn { width: 100%; height: 48px; }

  .footer { padding: 56px 32px 32px; }

  .footer__top { flex-direction: column; gap: 40px; }

  /* Product + Legal in two columns, Socials full width below */
  .footer__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
    width: 100%;
  }
  .footer__col--socials { grid-column: 1 / -1; }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .newsletter { padding: 56px 20px; }
  .footer { padding: 48px 20px 28px; }
}

/* ===== Hero: wordmark title + two actions (Sign / Install) ===== */
.hero__title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.hero__title-word {
  width: min(476px, 100%);
  height: auto;
  display: block;
}
.hero__title-rest { color: var(--color-ink); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.hero__cta--dark {
  background: #38362E;
  border: 1px solid #000000;
  box-shadow:
    0 2px 3px rgba(0, 0, 0, 0.34),
    inset 0 -3px 2px rgba(0, 0, 0, 0.78),
    inset 0 0 1px 2px rgba(255, 255, 255, 0.25);
}
.hero__cta--dark .hero__cta-label { color: #FFFFFF; }
.hero__cta--dark:hover {
  box-shadow:
    0 4px 10px 1px rgba(0, 0, 0, 0.3),
    inset 0 -3px 2px rgba(0, 0, 0, 0.78),
    inset 0 0 1px 2px rgba(255, 255, 255, 0.25);
}

@media (max-width: 640px) {
  .hero__content { width: 100%; }

  .hero__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .hero__cta {
    width: 100%;
  }
}
