:root {
  color-scheme: light;
  --bg: #f3faf5;
  --paper: #ffffff;
  --ink: #102019;
  --muted: #62736a;
  --line: #d9e7dd;
  --green: #0b7f67;
  --green-dark: #075541;
  --mint: #dff7ea;
  --yellow: #f4c84f;
  --coral: #ef765c;
  --blue: #386b9a;
  --blue-soft: #e8f1fb;
  --shadow: 0 22px 50px rgba(16, 32, 25, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 74px;
  padding: 14px clamp(18px, 5vw, 74px);
  color: #ffffff;
  background: rgba(12, 31, 24, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
}

.brand,
.main-nav,
.hero-actions,
.merchant-actions,
.download-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 900;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.main-nav {
  gap: clamp(14px, 3vw, 30px);
  color: rgba(255, 255, 255, 0.84);
  font-weight: 750;
}

.main-nav a,
.footer-cta a {
  transition: color 160ms ease;
}

.main-nav a:hover,
.footer-cta a:hover {
  color: var(--yellow);
}

.header-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  font-weight: 900;
  line-height: 1.1;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.header-action {
  padding: 0 18px;
  background: #ffffff;
  color: var(--ink);
}

.button {
  min-width: 176px;
  padding: 0 20px;
  border: 1px solid transparent;
}

.button:hover,
.header-action:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--green);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(11, 127, 103, 0.24);
}

.button-primary:hover {
  background: var(--green-dark);
}

.button-secondary {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--line);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: clamp(24px, 5vw, 60px);
  min-height: min(760px, 82svh);
  align-items: end;
  padding: 132px clamp(18px, 5vw, 74px) 42px;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(16, 32, 25, 0.94) 0%, rgba(16, 32, 25, 0.78) 48%, rgba(16, 32, 25, 0.2) 100%),
    url("assets/instahorro_splash_art.webp") center right / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 20%;
  background: linear-gradient(180deg, rgba(243, 250, 245, 0), var(--bg));
  pointer-events: none;
}

.hero-content,
.quick-panel {
  position: relative;
  z-index: 2;
}

.hero-content {
  width: min(760px, 100%);
}

.hero-logo {
  width: 178px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: 5rem;
  line-height: 0.98;
}

h2 {
  margin-bottom: 18px;
  font-size: 3rem;
  line-height: 1.08;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.22rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.24rem;
}

.hero-actions,
.merchant-actions,
.download-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.quick-panel {
  display: grid;
  gap: 12px;
  align-self: end;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.quick-panel div {
  display: grid;
  gap: 3px;
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
}

.quick-panel strong {
  font-size: 1.06rem;
}

.quick-panel span {
  color: var(--muted);
}

.section {
  padding: clamp(60px, 8vw, 110px) clamp(18px, 5vw, 74px);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 32px;
}

.section-heading p,
.feature-copy p,
.preview-copy p,
.download-section p,
.merchant-content p,
.footer-cta p {
  color: var(--muted);
  font-size: 1.12rem;
}

.steps-grid,
.benefit-list,
.merchant-steps {
  display: grid;
  gap: 16px;
}

.steps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.steps-grid article,
.benefit-list article,
.merchant-steps article {
  display: grid;
  gap: 8px;
  min-height: 168px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 32px rgba(16, 32, 25, 0.07);
}

.steps-grid article:nth-child(2) {
  background: var(--blue-soft);
}

.steps-grid article:nth-child(3) {
  background: #fff7df;
}

.steps-grid span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green);
  color: #ffffff;
  font-weight: 950;
}

.steps-grid p,
.merchant-steps span,
.benefit-list p {
  color: var(--muted);
}

.benefit-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  background: #ffffff;
}

.feature-copy {
  position: sticky;
  top: 104px;
}

.benefit-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.benefit-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--mint);
  color: var(--green-dark);
  font-size: 1.35rem;
  font-weight: 950;
}

.benefit-list article:nth-child(2) .benefit-icon {
  background: #fff0d0;
  color: #805710;
}

.benefit-list article:nth-child(3) .benefit-icon {
  background: #ffe5df;
  color: #9b3a25;
}

.benefit-list article:nth-child(4) .benefit-icon {
  background: var(--blue-soft);
  color: var(--blue);
}

.app-preview-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1fr);
  gap: clamp(30px, 7vw, 92px);
  align-items: center;
}

.phone-preview {
  width: min(100%, 330px);
  margin-inline: auto;
  padding: 18px;
  border-radius: 38px;
  background: #102019;
  box-shadow: var(--shadow);
}

.phone-top {
  width: 116px;
  height: 16px;
  margin: 0 auto 14px;
  border-radius: 0 0 12px 12px;
  background: #294139;
}

.phone-screen {
  display: grid;
  gap: 16px;
  min-height: 520px;
  padding: 22px;
  border-radius: 28px;
  background: #f8fbf7;
}

.app-card,
.app-search,
.app-row,
.app-grid div {
  border-radius: 8px;
}

.app-card-hero {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px;
  color: #ffffff;
  background: var(--green);
}

.app-card-hero img {
  width: 62px;
  height: 62px;
  border-radius: 8px;
}

.app-card-hero span {
  display: block;
  color: rgba(255, 255, 255, 0.82);
}

.app-card-hero strong {
  display: block;
  font-size: 1.78rem;
  line-height: 1.1;
}

.app-search,
.app-row {
  background: #ffffff;
  border: 1px solid var(--line);
}

.app-search {
  padding: 14px 16px;
  color: var(--muted);
}

.app-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 72px;
  padding: 16px;
}

.app-row span {
  color: var(--muted);
}

.app-row strong {
  color: var(--green);
  font-size: 1.35rem;
}

.accent-row strong {
  color: #9b3a25;
}

.app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.app-grid div {
  min-height: 94px;
  padding: 16px;
  color: #ffffff;
  font-weight: 900;
}

.app-grid div:first-child {
  background: var(--coral);
}

.app-grid div:last-child {
  background: var(--blue);
}

.merchant-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.8fr);
  gap: 30px;
  margin: clamp(34px, 6vw, 74px);
  padding: clamp(34px, 6vw, 62px);
  border-radius: 8px;
  color: #ffffff;
  background: #102019;
  box-shadow: var(--shadow);
}

.merchant-section .button-secondary {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.26);
}

.merchant-content p,
.merchant-steps span {
  color: rgba(255, 255, 255, 0.76);
}

.merchant-steps article {
  min-height: 120px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.download-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  background: #ffffff;
}

.footer-cta {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  padding: clamp(42px, 8vw, 88px) clamp(18px, 5vw, 74px);
}

.footer-cta img {
  width: 160px;
}

.footer-cta a {
  color: var(--green-dark);
  font-weight: 900;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 74px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer a {
  color: var(--green-dark);
  font-weight: 900;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
}

.legal-main {
  background: var(--bg);
}

.legal-hero {
  padding: 140px clamp(18px, 5vw, 74px) 54px;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(16, 32, 25, 0.96), rgba(16, 32, 25, 0.72)),
    url("assets/instahorro_splash_art.webp") center right / cover no-repeat;
}

.legal-hero h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 7vw, 5.6rem);
}

.legal-hero p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.2rem;
}

.legal-hero span {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.legal-content {
  width: min(1040px, calc(100% - 36px));
  margin: clamp(32px, 5vw, 58px) auto;
}

.legal-section {
  padding: 0 0 30px;
  border-bottom: 1px solid var(--line);
}

.legal-section + .legal-section {
  padding-top: 30px;
}

.legal-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.legal-section a {
  color: var(--green-dark);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-list {
  display: grid;
  gap: 10px;
  padding-left: 22px;
}

.data-table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: #ffffff;
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: #ffffff;
  background: var(--green-dark);
}

@media (max-width: 1040px) {
  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2.55rem;
  }

  .hero,
  .steps-grid,
  .benefit-section,
  .benefit-list,
  .app-preview-section,
  .merchant-section,
  .download-section {
    grid-template-columns: 1fr;
  }

  .quick-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feature-copy {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    row-gap: 12px;
    color: var(--ink);
    background: rgba(243, 250, 245, 0.98);
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    flex-wrap: wrap;
    gap: 8px 14px;
    overflow-x: visible;
    padding-bottom: 2px;
    color: var(--muted);
    font-size: 0.95rem;
    white-space: normal;
  }

  .header-action {
    grid-column: 2;
    grid-row: 1;
    min-height: 42px;
    padding: 0 14px;
    background: var(--ink);
    color: #ffffff;
  }

  .hero {
    gap: 20px;
    min-height: auto;
    padding-top: 32px;
    padding-bottom: 28px;
    background:
      linear-gradient(180deg, rgba(16, 32, 25, 0.92) 0%, rgba(16, 32, 25, 0.78) 58%, rgba(16, 32, 25, 0.34) 100%),
      url("assets/instahorro_splash_art.webp") center bottom / cover no-repeat;
  }

  .hero-logo {
    width: 148px;
    margin-bottom: 18px;
  }

  h1 {
    font-size: 3.08rem;
    line-height: 1.02;
  }

  h2 {
    font-size: 2.18rem;
  }

  .hero-copy {
    font-size: 1.08rem;
  }

  .quick-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
  }

  .quick-panel div {
    padding: 10px;
  }

  .quick-panel strong {
    font-size: 0.95rem;
  }

  .quick-panel span {
    font-size: 0.86rem;
  }

  .button {
    width: 100%;
  }

  .hero-actions .button {
    width: auto;
    min-width: 0;
    flex: 1 1 150px;
  }

  .phone-preview {
    width: min(100%, 292px);
  }

  .phone-screen {
    min-height: 460px;
    padding: 18px;
  }

  .app-card-hero {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .app-card-hero img {
    width: 52px;
    height: 52px;
  }

  .merchant-section {
    margin-inline: 18px;
  }

  .footer-cta {
    grid-template-columns: 1fr;
  }

  .footer-cta img {
    width: 132px;
  }

  .site-footer {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .legal-hero {
    padding-top: 54px;
  }
}

@media (max-width: 420px) {
  .main-nav {
    gap: 6px 12px;
    font-size: 0.9rem;
  }

  h1 {
    font-size: 2.62rem;
  }

  h2 {
    font-size: 1.92rem;
  }

  .app-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
