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

:root {
  --green: #1D5A3A;
  --green-deep: #0E3B2E;
  --green-ink: #0A2A1F;
  --lime: #F3F57B;
  --ink: #111312;
  --ink-soft: #3B403D;
  --muted: #5E6662;
  --paper: #F6F7F2;
  --mint: #E2EEE3;
  --rule: #CDD5CF;
  --rule-dark: rgba(255, 255, 255, 0.18);
  --display: 'Bricolage Grotesque', 'Arial Narrow', sans-serif;
  --text: 'Manrope', system-ui, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 20; background: var(--lime); color: var(--ink); padding: 10px 16px; font-weight: 700; }
.skip:focus { left: 16px; }

h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 16ch;
}

h3 { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.2; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { background: #E6EA4F; }
.btn--green { background: var(--green); color: #fff; min-height: 44px; font-size: 15px; }
.btn--green:hover { background: var(--green-deep); }
.btn--line { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7); color: #fff; }
.btn--line:hover { box-shadow: inset 0 0 0 2px #fff; background: rgba(255, 255, 255, 0.08); }

/* Masthead */
.masthead { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--rule); }
.masthead__row { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.01em; }
.brand img { border-radius: 9px; }
.brand--light { color: #fff; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-soft); }
.site-nav a:not(.btn):hover { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
.menu-toggle { display: none; }

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    min-height: 44px;
    padding: 0 18px;
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    background: transparent;
    font: 700 15px var(--text);
    color: var(--ink);
    cursor: pointer;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 17px; }
  .site-nav .btn { margin-top: 16px; }
}

/* Hero */
.hero { position: relative; min-height: clamp(560px, 82vh, 820px); display: flex; align-items: center; background: var(--green-ink); color: #fff; overflow: hidden; }
.hero__photo { position: absolute; inset: 0; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 30, 20, 0.88) 0%, rgba(8, 30, 20, 0.55) 45%, rgba(8, 30, 20, 0) 70%); }
.hero__copy { position: relative; z-index: 1; padding-block: 96px; }
.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(46px, 7.4vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  max-width: 10.5ch;
}
.hero h1 em { font-style: normal; color: var(--lime); }
.hero__copy > p { margin-top: 28px; max-width: 44ch; font-size: 19px; color: #E6EBE8; }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.credit { position: absolute; right: var(--gutter); bottom: 16px; z-index: 1; font-size: 12px; color: rgba(255, 255, 255, 0.75); }
.credit a { color: #fff; }

@media (max-width: 720px) {
  .hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero__photo { position: relative; inset: auto; aspect-ratio: 4 / 3; }
  .hero__photo img { object-position: 72% 30%; }
  .hero::after { display: none; }
  .hero__copy { padding-block: 32px 64px; }
  .credit { top: calc(75vw - 28px); bottom: auto; }
}

/* Office */
.office { padding-block: clamp(72px, 10vw, 128px); }
.lead { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; padding-bottom: 40px; border-bottom: 2px solid var(--ink); }
.lead p { color: var(--ink-soft); max-width: 48ch; }
.ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; }
.ledger li { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; padding-block: 28px; border-bottom: 1px solid var(--rule); }
.ledger__no { grid-row: span 2; font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--green); font-variant-numeric: tabular-nums; padding-top: 4px; }
.ledger p { margin-top: 6px; color: var(--ink-soft); font-size: 16px; }

@media (max-width: 860px) {
  .lead { grid-template-columns: 1fr; }
  .ledger { grid-template-columns: 1fr; }
}

/* Member app */
.app { background: var(--green-deep); color: #fff; padding-block: clamp(72px, 10vw, 128px); }
.app__grid { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(40px, 7vw, 96px); align-items: center; }
.app__copy > p { margin-top: 20px; max-width: 50ch; color: #D5E2DA; }
.steps { margin-top: 36px; counter-reset: step; border-top: 1px solid var(--rule-dark); }
.steps li { counter-increment: step; position: relative; padding: 18px 0 18px 44px; border-bottom: 1px solid var(--rule-dark); color: #D5E2DA; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 21px; font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--lime); }
.steps b { color: #fff; }
.app__note { margin-top: 28px; font-weight: 700; color: var(--lime); }

.phone {
  width: 100%;
  max-width: 340px;
  justify-self: center;
  padding: 12px;
  border-radius: 48px;
  background: #0B0D0C;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}
.phone__screen { border-radius: 38px; background: #D3EADF; color: var(--ink); padding: 28px 18px 32px; min-height: 600px; }
.phone__top { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 22px; }
.phone__top img { border-radius: 8px; }
.phone__card { margin-top: 24px; background: var(--lime); border-radius: 30px; padding: 20px 20px 18px; text-align: center; }
.phone__sacco { text-align: left; font-weight: 700; font-size: 17px; }
.phone__label { margin-top: 18px; font-weight: 600; font-size: 13px; color: var(--ink-soft); }
.phone__amount { display: flex; align-items: center; justify-content: space-between; font-family: var(--display); font-weight: 800; font-size: 38px; line-height: 1.2; }
.phone__amount span { font-size: 30px; color: rgba(17, 19, 18, 0.6); width: 28px; }
.phone__amount b { letter-spacing: 0.08em; }
.phone__note { font-weight: 600; font-size: 13px; color: var(--ink-soft); }
.phone__dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.phone__dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(17, 19, 18, 0.2); }
.phone__dots i.on { width: 18px; background: var(--green); }
.phone__heading { margin-top: 28px; font-weight: 800; font-size: 17px; }
.phone__list { margin-top: 8px; background: #fff; border-radius: 22px; padding: 4px 16px; }
.phone__list li { display: flex; justify-content: space-between; gap: 12px; padding-block: 14px; font-weight: 600; font-size: 15px; }
.phone__list li + li { border-top: 1px solid #E3E8E4; }
.phone__list li span:last-child { color: var(--muted); font-weight: 500; }

@media (max-width: 860px) {
  .app__grid { grid-template-columns: 1fr; }
  .app__copy { order: -1; }
}

/* Start */
.start { padding-block: clamp(72px, 10vw, 128px); background: var(--mint); }
.timeline { margin-top: 48px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: stage; }
.timeline li { counter-increment: stage; padding-top: 20px; border-top: 2px solid var(--ink); }
.timeline li::before { content: counter(stage); display: block; font-family: var(--display); font-weight: 800; font-size: 56px; line-height: 1; color: var(--green); margin-bottom: 16px; }
.timeline p { margin-top: 8px; color: var(--ink-soft); font-size: 16px; }

@media (max-width: 860px) { .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .timeline { grid-template-columns: 1fr; } }

/* Pricing */
.pricing { padding-block: clamp(72px, 10vw, 128px); }
.table-scroll { margin-top: 8px; overflow-x: auto; }
.plans { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 16px; }
.plans th, .plans td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
.plans thead th { font-family: var(--display); font-weight: 800; font-size: 24px; padding-top: 28px; }
.plans tbody th { font-weight: 600; color: var(--ink-soft); width: 28%; }
.plans__price b { display: block; font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1.1; }
.plans__price span { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }
.plans__pick { background: #EEF0C9; }
.plans .yes { font-weight: 700; color: var(--green); }
.plans .no { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Contact */
.contact { background: var(--green); color: #fff; padding-block: clamp(72px, 10vw, 128px); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 64px; }
.contact__list { border-top: 1px solid var(--rule-dark); }
.contact__list div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding-block: 18px; border-bottom: 1px solid var(--rule-dark); }
.contact__list dt { font-weight: 600; color: #CFE0D5; }
.contact__list dd { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.3; }
.contact__list a { text-decoration: none; }
.contact__list a:hover { text-decoration: underline; }
.contact__actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 860px) {
  .contact__grid { grid-template-columns: 1fr; }
  .contact__actions { grid-column: 1; }
}

/* Footer */
.foot { background: var(--green-ink); color: #CFE0D5; padding-block: 32px; font-size: 15px; }
.foot__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.foot a { color: #fff; }
