:root {
  --ink: #10211b;
  --muted: #5f706a;
  --line: #d9e6df;
  --paper: #fbfdfb;
  --soft: #eef7ef;
  --mint: #75d66f;
  --aqua: #18b7c7;
  --gold: #f2c15c;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(16, 33, 27, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 56px);
  color: var(--white);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a,
.site-footer a {
  opacity: 0.86;
}

.site-nav a:hover,
.site-footer a:hover {
  opacity: 1;
}

.hero {
  position: relative;
  display: grid;
  min-height: 86vh;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
  overflow: hidden;
  padding: 112px clamp(20px, 5vw, 72px) 58px;
  color: var(--white);
  background:
    linear-gradient(115deg, rgba(16, 33, 27, 0.94), rgba(16, 33, 27, 0.72)),
    url("/assets/app-icon.png") center / cover no-repeat;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 130px;
  content: "";
  background: linear-gradient(180deg, rgba(251, 253, 251, 0), var(--paper));
  pointer-events: none;
}

.hero-backdrop {
  position: absolute;
  right: -7vw;
  top: 12vh;
  width: min(620px, 48vw);
  opacity: 0.18;
  transform: rotate(-8deg);
}

.hero-copy,
.phone-stage {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(3.6rem, 8vw, 7.5rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 620px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
}

.hero-actions,
.section-heading + .button {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 12px 18px;
  font-weight: 850;
}

.button.primary {
  color: var(--ink);
  background: var(--mint);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.phone-stage {
  position: relative;
  min-height: 510px;
}

.phone-shell {
  position: absolute;
  top: -8px;
  right: min(4vw, 40px);
  width: min(360px, 78vw);
  border: 10px solid #12241e;
  border-radius: 34px;
  background: #12241e;
  box-shadow: var(--shadow);
  transform: rotate(4deg);
}

.phone-top {
  width: 92px;
  height: 18px;
  margin: 10px auto 8px;
  border-radius: 8px;
  background: #263a33;
}

.app-screen {
  min-height: 620px;
  overflow: hidden;
  border-radius: 22px;
  padding: 22px;
  color: var(--ink);
  background: #f6fbf7;
}

.screen-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.screen-header span {
  color: var(--muted);
  font-weight: 800;
}

.screen-header strong {
  color: #0f5b43;
  font-size: 2.5rem;
  line-height: 1;
}

.selector-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.selector-row span,
.input-grid label,
.clean-list div,
.save-bar {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.selector-row span {
  padding: 10px 8px;
  text-align: center;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.selector-row .selected {
  color: var(--ink);
  border-color: #a9df9f;
  background: #e9f9e7;
}

.input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.input-grid label {
  display: grid;
  gap: 8px;
  padding: 16px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.input-grid strong {
  color: var(--ink);
  font-size: 1.55rem;
}

.clean-list {
  display: grid;
  gap: 10px;
}

.clean-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 16px;
  font-weight: 800;
}

.clean-list span {
  color: var(--muted);
}

.save-bar {
  margin-top: 22px;
  padding: 16px;
  color: var(--ink);
  text-align: center;
  font-weight: 900;
  background: var(--mint);
  border-color: #69c864;
}

.summary-strip {
  position: relative;
  z-index: 2;
  display: grid;
  max-width: 1120px;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: -34px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.summary-strip div {
  padding: 22px clamp(18px, 3vw, 34px);
  background: var(--white);
}

.summary-strip strong {
  display: block;
  margin-bottom: 4px;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1;
}

.summary-strip span {
  color: var(--muted);
  font-weight: 800;
}

.section,
.workflow {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(76px, 10vw, 128px) clamp(20px, 4vw, 40px);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-heading p,
.workflow > div p,
.update-section p {
  color: var(--muted);
  font-size: 1.08rem;
}

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

.feature-card {
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--white);
}

.feature-mark {
  display: inline-flex;
  margin-bottom: 42px;
  color: #0e7b86;
  font-size: 0.78rem;
  font-weight: 900;
}

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 1.22rem;
  line-height: 1.12;
}

.feature-card p {
  color: var(--muted);
  font-weight: 650;
}

.workflow {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: clamp(26px, 5vw, 78px);
  align-items: start;
  background: var(--soft);
  max-width: none;
}

.workflow > div,
.steps {
  width: min(100%, 560px);
}

.workflow > div {
  justify-self: end;
}

.steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
  border: 1px solid #cfe2d6;
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.steps span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: var(--ink);
  background: var(--gold);
  font-weight: 900;
}

.steps p {
  margin: 3px 0 0;
  color: var(--muted);
  font-weight: 750;
}

.update-section {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.update-section .section-heading {
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(20px, 4vw, 56px);
  color: rgba(255, 255, 255, 0.86);
  background: var(--ink);
}

.site-footer strong {
  display: block;
  margin-bottom: 4px;
  color: var(--white);
}

.site-footer p {
  margin: 0;
  max-width: 420px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 800;
}

.legal-page {
  min-height: 100vh;
  background: var(--paper);
}

.legal-page .site-header {
  position: static;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.legal-main {
  width: min(880px, calc(100% - 40px));
  margin: 0 auto;
  padding: 68px 0 96px;
}

.legal-main h1 {
  max-width: none;
  margin-bottom: 16px;
  color: var(--ink);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
}

.legal-main h2 {
  margin: 42px 0 12px;
  font-size: 1.45rem;
  line-height: 1.15;
}

.legal-main p,
.legal-main li {
  color: var(--muted);
  font-size: 1rem;
}

.legal-main a {
  color: #0d7882;
  font-weight: 800;
}

@media (max-width: 940px) {
  .site-header {
    position: absolute;
  }

  .site-nav {
    display: none;
  }

  .hero {
    min-height: 82vh;
    grid-template-columns: 1fr;
    padding-top: 104px;
    padding-bottom: 92px;
  }

  .hero-copy {
    max-width: 620px;
  }

  .phone-stage {
    position: absolute;
    right: -78px;
    bottom: -156px;
    width: 350px;
    min-height: 0;
    opacity: 0.54;
    z-index: 0;
    pointer-events: none;
  }

  .phone-shell {
    position: relative;
    top: auto;
    right: auto;
    width: 300px;
    transform: rotate(4deg);
  }

  .summary-strip,
  .feature-grid,
  .workflow,
  .update-section {
    grid-template-columns: 1fr;
  }

  .update-section {
    display: grid;
  }

  .workflow > div,
  .steps {
    width: 100%;
  }

  .workflow > div {
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .hero {
    padding-right: 18px;
    padding-left: 18px;
  }

  h1 {
    font-size: clamp(3.1rem, 17vw, 4.3rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .summary-strip {
    width: calc(100% - 28px);
  }

  .summary-strip div {
    padding: 18px;
  }

  .app-screen {
    min-height: 510px;
    padding: 18px;
  }

  .phone-stage {
    right: -112px;
    bottom: -138px;
    width: 300px;
  }

  .phone-shell {
    width: 264px;
  }

  .screen-header strong {
    font-size: 2rem;
  }

  .site-footer {
    display: grid;
  }
}
