:root {
  --black: #111111;
  --ink: #222222;
  --muted: #666666;
  --line: #e9e9e9;
  --surface: #ffffff;
  --surface-soft: #fafafa;
  --yellow: #f8d818;
  --orange: #ff7a1a;
  --red: #8c1414;
  --green: #1f7a3a;
  --green-dark: #0d3b23;
  --green-soft: #eef8ed;
  --shadow: 0 24px 70px rgba(17, 17, 17, 0.1);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(248, 216, 24, 0.18), transparent 30rem),
    radial-gradient(circle at top right, rgba(31, 122, 58, 0.14), transparent 28rem),
    var(--surface);
}

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

p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
  margin: 0;
}

h1,
h2,
h3 {
  color: var(--black);
  letter-spacing: -0.045em;
  margin: 0;
}

/* Large display headings — landing page only (not legal docs) */
.hero-copy h1 {
  font-size: clamp(3rem, 8vw, 6.7rem);
  line-height: 0.96;
}

.section-heading h2,
.two-column > div h2,
.app-section .app-grid > div > h2 {
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.05;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.2;
}

.container {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 96px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(233, 233, 233, 0.85);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #000000;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.brand-logo {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  object-fit: contain;
  display: block;
  object-position: center;
}

.brand-text {
  display: inline-block;
  transform: translateY(1px);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #333333;
  font-weight: 600;
}

.nav-links a {
  font-size: 0.95rem;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.nav-cta,
.button.primary {
  color: #ffffff;
  background: #000000;
  box-shadow: 0 14px 30px rgba(17, 17, 17, 0.18);
}

.button.secondary {
  color: #111111;
  background: #ffffff;
  border: 1px solid var(--line);
}

.button:hover,
.nav-cta:hover {
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  padding: 10px 16px;
  font: inherit;
  font-weight: 800;
}

.hero {
  padding-top: 86px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
  align-items: center;
  gap: 44px;
}

.eyebrow {
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy {
  display: grid;
  gap: 24px;
}

.hero-text {
  max-width: 660px;
  font-size: 1.15rem;
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.hero-stats div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  color: #000000;
  font-size: 1.35rem;
}

.hero-stats span {
  color: var(--muted);
  margin-top: 6px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.hero-visual {
  position: relative;
  min-height: 560px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(140deg, rgba(248, 216, 24, 0.22), transparent 36%),
    linear-gradient(220deg, rgba(31, 122, 58, 0.18), transparent 36%),
    #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.image-hero {
  aspect-ratio: 3 / 2;
  min-height: auto;
  padding: 0;
  transform: translateY(-118px);
  border-radius: var(--radius-xl);
  isolation: isolate;
}

.hero-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-xl);
  object-fit: contain;
  object-position: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: var(--green-soft);
}

.phone {
  position: relative;
  z-index: 2;
  width: 255px;
  min-height: 510px;
  padding: 30px 18px 18px;
  border: 8px solid #111111;
  border-radius: 38px;
  background: #ffffff;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.25);
}

.phone-speaker {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 74px;
  height: 8px;
  border-radius: 999px;
  background: #111111;
  transform: translateX(-50%);
}

.app-card {
  min-height: 335px;
  padding: 20px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(248, 216, 24, 0.25), transparent 38%),
    linear-gradient(145deg, #ffffff 0%, #f6fff3 100%);
  border: 1px solid #e4f1e3;
}

.mini-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
}

.mini-logo {
  width: 22px;
  height: 24px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  transform: rotate(-14deg);
}

.app-card h2 {
  color: var(--green-dark);
  font-size: 2.2rem;
}

.app-card p {
  margin-top: 12px;
  color: var(--green);
  font-weight: 700;
}

.coin-row {
  display: flex;
  gap: 8px;
  margin-top: 28px;
}

.coin-row span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #ffffff;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffd84d, #f2a600);
  border: 3px solid #f7c32d;
  font-weight: 900;
}

.phone-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.phone-tabs span {
  padding: 10px 4px;
  color: var(--muted);
  border-radius: 12px;
  background: #f7f7f7;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

.paper-stack {
  position: absolute;
  left: -28px;
  bottom: 76px;
  z-index: 1;
  width: 170px;
  height: 220px;
}

.paper-stack span {
  position: absolute;
  width: 132px;
  height: 178px;
  border: 1px solid #e6d8b9;
  border-radius: 12px;
  background: #fff8df;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.1);
}

.paper-stack span:nth-child(1) {
  transform: rotate(-16deg);
}

.paper-stack span:nth-child(2) {
  transform: translate(18px, 8px) rotate(-5deg);
}

.paper-stack span:nth-child(3) {
  transform: translate(34px, 20px) rotate(8deg);
  background: linear-gradient(#fff8df, #f5e6a7);
}

.leaf-badge {
  position: absolute;
  right: 30px;
  top: 36px;
  z-index: 2;
  width: 136px;
  height: 136px;
  display: grid;
  place-items: center;
  color: var(--green-dark);
  border-radius: 50%;
  border: 1px solid #dbeed9;
  background: #f5fff3;
  font-weight: 800;
  text-align: center;
}

.two-column,
.app-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1fr);
  align-items: center;
  gap: 56px;
}

.two-column > div:first-child,
.app-grid > div:first-child {
  display: grid;
  gap: 18px;
}

.flow-card,
.download-card,
.profile-card,
.feature-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(17, 17, 17, 0.07);
}

.flow-card {
  padding: 14px;
}

.flow-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 4px 16px;
  padding: 20px;
  border-radius: 18px;
}

.flow-step + .flow-step {
  border-top: 1px solid var(--line);
}

.flow-step span {
  grid-row: span 2;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #000000;
  border-radius: 50%;
  background: var(--yellow);
  font-weight: 900;
}

.flow-step strong {
  color: #000000;
  font-size: 1.1rem;
}

.section-heading {
  max-width: 740px;
  display: grid;
  gap: 16px;
  margin-bottom: 36px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  min-height: 245px;
  padding: 24px;
}

.feature-card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 28px;
  color: #000000;
  border-radius: 14px;
  background: var(--yellow);
  font-weight: 900;
}

.feature-card h3 {
  margin-bottom: 12px;
}

.tinted {
  background:
    linear-gradient(180deg, rgba(238, 248, 237, 0.75), rgba(255, 255, 255, 0.96)),
    #ffffff;
}

.user-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  gap: 28px;
}

.profile-card {
  padding: 22px;
}

.profile-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.avatar {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  color: #000000;
  border-radius: 50%;
  background: var(--yellow);
  font-size: 1.6rem;
  font-weight: 900;
}

.profile-top strong,
.profile-top span {
  display: block;
}

.profile-top strong {
  color: #000000;
  font-size: 1.25rem;
}

.profile-top span {
  color: var(--muted);
  margin-top: 4px;
  font-size: 0.9rem;
}

.profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.profile-row:last-child {
  border-bottom: 0;
}

.profile-row span {
  color: #222222;
  font-weight: 700;
}

.profile-row strong {
  color: var(--green);
  font-size: 0.92rem;
}

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

.benefit-list div {
  padding: 26px;
  border: 1px solid #dcefd9;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
}

.benefit-list h3 {
  margin-bottom: 10px;
}

.app-section {
  background: #111111;
}

.app-section h2,
.app-section h3 {
  color: #ffffff;
}

.app-section p {
  color: #cfcfcf;
}

.app-section .eyebrow {
  color: var(--yellow);
}

.instagram-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 28px;
  border: 1px solid #333333;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 20% 20%, rgba(248, 216, 24, 0.12), transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(255, 122, 26, 0.12), transparent 55%),
    #181818;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.instagram-icon {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: linear-gradient(135deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
  flex: 0 0 auto;
}

.instagram-lens {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26px;
  height: 26px;
  border: 4px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.instagram-dot {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
}

.instagram-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--yellow);
  font-weight: 800;
}

@media (max-width: 760px) {
  .instagram-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

.footer {
  padding: 38px 0;
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.footer p {
  max-width: 500px;
  margin-top: 12px;
}

.footer strong,
.footer a {
  display: block;
}

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

.footer strong {
  margin-bottom: 10px;
}

.footer a:not(.brand) {
  color: var(--muted);
  margin-top: 8px;
}

@media (max-width: 980px) {
  .hero-grid,
  .two-column,
  .app-grid,
  .user-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: auto;
  }

  .image-hero {
    transform: none;
  }

  /* Hero image uses object-fit: contain; hide green decoration so letterboxing stays white */
  .hero-visual.image-hero {
    background: #ffffff;
  }

  .hero-visual.image-hero::before {
    display: none;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, 1140px);
  }

  .section {
    padding: 72px 0;
  }

  .nav {
    min-height: 68px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

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

  .nav-links a {
    padding: 14px;
  }

  .nav-cta {
    margin-top: 8px;
  }

  .hero {
    padding-top: 54px;
  }

  .hero-stats,
  .cards,
  .benefit-list {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: auto;
  }

  /* Padding exposed the parent's green tint around contained images; keep flush for clean radius */
  .image-hero {
    padding: 0;
  }

  .phone {
    width: 230px;
    min-height: 460px;
  }

  .leaf-badge,
  .paper-stack {
    transform: scale(0.82);
  }

  .footer-grid {
    display: grid;
  }
}
