/* Kas kartu? — landing page styles */

@font-face {
  font-family: "Bricolage";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  src: url(fonts/bricolage-grotesque-latin-ext-standard-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  src: url(fonts/bricolage-grotesque-latin-standard-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face { font-family: "Instrument"; font-weight: 400; font-display: swap; src: url(fonts/instrument-sans-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument"; font-weight: 400; font-display: swap; src: url(fonts/instrument-sans-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF; }
@font-face { font-family: "Instrument"; font-weight: 500; font-display: swap; src: url(fonts/instrument-sans-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument"; font-weight: 500; font-display: swap; src: url(fonts/instrument-sans-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF; }
@font-face { font-family: "Instrument"; font-weight: 600; font-display: swap; src: url(fonts/instrument-sans-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument"; font-weight: 600; font-display: swap; src: url(fonts/instrument-sans-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF; }

:root {
  --snow: #edf1ef;     /* page background */
  --pine: #183a2c;     /* hero, primary dark */
  --pine-2: #224a39;   /* pine, raised */
  --ice: #a9cfd0;      /* quiet accent on pine */
  --marker: #f3c64b;   /* trail-marker yellow: CTA + plan slip */
  --ink: #102019;      /* body text */
  --moss: #55665e;     /* secondary text */
  --line: #c9d3cf;     /* hairlines on snow */
  --field-line: #74847d; /* input and pill borders, 3:1+ on white and snow */
  --field: #ffffff;
  --error: #a3271c;

  --display: "Bricolage", "Arial Narrow", system-ui, sans-serif;
  --body: "Instrument", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-3: 2.5rem;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--snow);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--marker); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- top bar ---------- */
.topbar { background: var(--pine); color: var(--snow); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.wordmark { font-family: var(--display); font-weight: 700; font-stretch: 85%; font-size: 1.25rem; text-decoration: none; letter-spacing: -0.01em; }
.lang { display: flex; gap: 2px; background: var(--pine-2); border-radius: 999px; padding: 3px; }
.lang button {
  font: 600 var(--step--1)/1 var(--body); color: var(--ice); background: transparent;
  border: 0; border-radius: 999px; padding: 8px 12px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--snow); color: var(--pine); }

/* ---------- hero ---------- */
.hero { background: var(--pine); color: var(--snow); padding: clamp(32px, 7vw, 88px) 0 clamp(56px, 9vw, 120px); overflow: hidden; }
.hero .wrap { display: grid; gap: clamp(32px, 5vw, 64px); grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.25fr 1fr; } }

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(4.5rem, 17vw, 11.5rem);
  line-height: 0.82;
  letter-spacing: -0.035em;
  color: var(--snow);
}
.hero .lead { margin: 28px 0 0; max-width: 34ch; font-size: var(--step-1); line-height: 1.45; color: #dfe8e3; }
.hero .actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.note { font-size: var(--step--1); color: var(--ice); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 1.125rem/1 var(--display); font-stretch: 90%;
  background: var(--marker); color: var(--pine);
  border: 0; border-radius: 12px; padding: 18px 28px; min-height: 56px;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 3px 0 #b8902a;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 #b8902a; }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #b8902a; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* the plan slip: an example post, the memorable element */
.slip-stage { position: relative; min-height: 270px; }
.slip {
  position: absolute; inset: 0 auto auto 0; width: min(100%, 440px);
  background: var(--marker); color: var(--pine);
  border-radius: 6px 6px 18px 6px;
  padding: 22px 24px 24px;
  transform: rotate(-2.5deg);
  box-shadow: 0 18px 40px rgba(6, 22, 15, .45);
  transition: opacity .45s ease, transform .45s ease;
}
.slip[hidden] { display: block; opacity: 0; transform: rotate(1deg) translateY(14px); pointer-events: none; }
.slip .tag { display: inline-block; font-size: var(--step--1); font-weight: 600; background: rgba(24, 58, 44, .12); padding: 3px 10px; border-radius: 999px; }
.slip .when { margin: 16px 0 4px; font-family: var(--display); font-weight: 600; font-stretch: 90%; font-size: 1.125rem; }
.slip .what { margin: 0; font-family: var(--display); font-weight: 800; font-stretch: 80%; font-size: clamp(1.75rem, 3.4vw, 2.25rem); line-height: 1.02; letter-spacing: -0.01em; }
.slip .who { margin: 18px 0 0; padding-top: 14px; border-top: 2px dashed rgba(24, 58, 44, .35); font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.slip .ask { font-family: var(--display); font-weight: 800; font-stretch: 85%; }

@media (max-width: 899px) { .slip-stage { min-height: 250px; margin-top: 8px; } .slip { left: 6px; } }

/* ---------- sections ---------- */
section { padding: clamp(56px, 8vw, 104px) 0; }
h2 {
  margin: 0 0 12px; font-family: var(--display); font-weight: 800; font-stretch: 85%;
  font-size: clamp(2rem, 5vw, var(--step-3)); line-height: 1.05; letter-spacing: -0.02em; color: var(--pine);
}
.section-lead { margin: 0; max-width: 56ch; color: var(--moss); font-size: var(--step-1); line-height: 1.45; }

.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 36px; counter-reset: step; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.steps li { counter-increment: step; border-top: 2px solid var(--pine); padding-top: 18px; }
.steps li::before {
  content: counter(step); display: block;
  font-family: var(--display); font-weight: 800; font-stretch: 75%;
  font-size: 4rem; line-height: .9; color: var(--pine); margin-bottom: 12px;
}
.steps h3 { margin: 0 0 6px; font-family: var(--display); font-weight: 700; font-stretch: 90%; font-size: var(--step-1); line-height: 1.2; }
.steps p { margin: 0; color: var(--moss); max-width: 34ch; }

.trust { background: var(--pine-2); color: var(--snow); }
.trust h2 { color: var(--snow); }
.trust .wrap { display: grid; gap: 32px; }
@media (min-width: 900px) { .trust .wrap { grid-template-columns: 1fr 1.2fr; align-items: start; } }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { padding: 16px 0; border-bottom: 1px solid rgba(169, 207, 208, .3); font-size: var(--step-1); line-height: 1.35; }
.facts li:first-child { padding-top: 4px; }

/* ---------- form ---------- */
.signup .wrap { max-width: 860px; }
form { margin-top: 40px; }
.grid { display: grid; gap: 22px 24px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: span 2; } }

label, legend { display: block; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.hint { display: block; font-weight: 400; font-size: var(--step--1); color: var(--moss); margin-top: 2px; }
.opt { color: var(--moss); font-weight: 400; }
input[type="text"], input[type="email"], input[type="tel"], select {
  width: 100%; font: 400 var(--step-0)/1.3 var(--body); color: var(--ink);
  background: var(--field); border: 1.5px solid var(--field-line); border-radius: 10px;
  padding: 13px 14px; min-height: 50px;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--moss) 50%), linear-gradient(135deg, var(--moss) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
input:focus, select:focus { border-color: var(--pine); outline: none; box-shadow: 0 0 0 3px rgba(243, 198, 75, .7); }
input[aria-invalid="true"], select[aria-invalid="true"], fieldset[aria-invalid="true"] .choice span { border-color: var(--error); }
fieldset[aria-invalid="true"] .choice span { border-width: 2px; }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 9px 15px;
  background: var(--field); border: 1.5px solid var(--field-line); border-radius: 999px;
  font-weight: 500; cursor: pointer; user-select: none;
}
.choice input:checked + span { background: var(--pine); border-color: var(--pine); color: var(--snow); }
.choice input:focus-visible + span { outline: 3px solid var(--marker); outline-offset: 2px; }
.other-input { margin-top: 10px; }

.consent { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-weight: 400; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--pine); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.submit-row { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.form-error { margin: 20px 0 0; color: var(--error); font-weight: 600; }
.form-error p { margin: 0; }
.form-error ul { margin: 6px 0 0; padding-left: 1.2em; }
.form-error a { color: var(--error); }
.form-error:empty { display: none; }
.field-error { display: block; margin-top: 6px; color: var(--error); font-size: var(--step--1); font-weight: 600; }
.field-error:empty { display: none; }

.thanks { margin-top: 40px; background: var(--pine); color: var(--snow); border-radius: 18px; padding: clamp(28px, 5vw, 48px); }
.thanks h3 { margin: 0 0 8px; font-family: var(--display); font-weight: 800; font-stretch: 80%; font-size: clamp(2rem, 6vw, 3rem); line-height: 1; }
.thanks p { margin: 0; max-width: 46ch; font-size: var(--step-1); color: #dfe8e3; }

/* ---------- two-step form ---------- */
.progress { margin: 40px 0 0; font-size: var(--step--1); font-weight: 600; color: var(--moss); text-transform: uppercase; letter-spacing: .06em; }
form { margin-top: 0; }
.step { margin-top: 16px; }
.step-title { margin: 0 0 24px; font-family: var(--display); font-weight: 700; font-stretch: 90%; font-size: var(--step-1); line-height: 1.2; color: var(--pine); }
.step-title:focus { outline: none; }
.btn-ghost { background: transparent; color: var(--pine); box-shadow: inset 0 0 0 2px var(--pine); }
.btn-ghost:hover, .btn-ghost:active { box-shadow: inset 0 0 0 2px var(--pine); }

/* ---------- thanks: invite a friend ---------- */
.thanks:focus { outline: none; }
.share { margin-top: 28px; padding-top: 24px; border-top: 2px dashed rgba(169, 207, 208, .35); }
.share p { margin: 0 0 16px; font-size: var(--step-0); }
.share-status { display: block; margin-top: 12px; color: var(--ice); font-size: var(--step--1); }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--moss); font-size: var(--step--1); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- privacy page ---------- */
.doc { padding: clamp(40px, 7vw, 80px) 0; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-family: var(--display); font-weight: 800; font-stretch: 80%; font-size: clamp(2.5rem, 7vw, 4rem); line-height: 1; color: var(--pine); margin: 0 0 24px; letter-spacing: -0.02em; }
.doc h2 { font-size: var(--step-2); margin-top: 40px; }
.doc p, .doc li { max-width: 68ch; }
.doc .updated { color: var(--moss); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
html { scroll-behavior: smooth; }
