/* ==========================================================================
   Olsson — coming soon
   No build step, no dependencies. Everything scales with clamp(), so there
   are no fixed breakpoints: the layout is continuous from 320px to 4K.
   ========================================================================== */

:root {
  /* Brand */
  --accent: #A73F30;
  --accent-dark: #7E2E22;
  --secondary: #D4826F;
  --cream: #F4F0E4;
  --ink: #39424E;
  --muted: #4F5866;
  --tint: #F3E3DE;
  --tint-deep: #E3B3A7;

  /* Derived */
  --field-bg: #FBF8EF;
  --field-border: #C3BEB0;
  --hairline: rgba(57, 66, 78, 0.16);
  --hairline-strong: rgba(57, 66, 78, 0.22);
  --on-accent-soft: #F4E4DF;
  --on-ink-soft: #C9CDD4;

  /* Type */
  --font-display: Arial, Helvetica, sans-serif;
  --font-body: Calibri, Carlito, system-ui, -apple-system, sans-serif;

  /* Rhythm */
  --gutter: clamp(24px, 5vw, 96px);
  --measure: 1400px;
  --section-y: clamp(72px, 7vw, 132px);
  --radius: 4px;
}

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

/* Several components below set display, which would otherwise beat the
   [hidden] attribute and leave hidden elements on screen. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(17px, 1.45vw, 26px);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.signup__honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* The one measure every section shares */
.shell {
  width: min(var(--measure), 100%);
  margin-inline: auto;
}

/* --------------------------------------------------------------- Hero --- */

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* Full viewport, but capped so a 4K display doesn't leave the content
     stranded in a sea of cream. */
  min-height: max(620px, min(100svh, 1120px));
  padding: clamp(36px, 3.6vw, 72px) var(--gutter) clamp(56px, 6vw, 120px);
}

/* Sized and offset in vw so the mark is square and its centre sits just
   outside the bottom-right corner at every width — what enters the hero is
   the top-left arc, cropped by two edges. */
.hero__mark {
  position: absolute;
  right: -36vw;
  bottom: -34vw;
  width: clamp(700px, 84vw, 2600px);
  color: var(--tint-deep);
  opacity: 0.85;
  pointer-events: none;
}

.hero__mark svg {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: 50% 50%;
  animation: spin 420s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.hero__spacer { flex-grow: 1; min-height: clamp(48px, 6vw, 160px); }

.hero__content {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2vw, 40px);
}

.wordmark { display: block; align-self: flex-start; color: var(--ink); }
.wordmark__svg { display: block; height: clamp(26px, 2.1vw, 44px); width: auto; }

.hero__title {
  /* 14ch tracks the font size, so the line always breaks after "New city." */
  max-width: 14ch;
  font-size: clamp(44px, 6vw, 128px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero__lede {
  max-width: 45ch;
  font-size: clamp(17px, 1.6vw, 30px);
  line-height: 1.6;
  color: var(--muted);
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(13px, 1.05vw, 19px);
  letter-spacing: 0.16em;
  color: var(--accent);
}

/* ------------------------------------------------------------- Signup --- */

.signup {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(640px, 100%);
}

.signup__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}

.signup__field {
  flex: 1 1 240px;
  height: clamp(52px, 4vw, 72px);
  padding-inline: 18px;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.25vw, 22px);
  color: var(--ink);
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
}

.signup__field::placeholder { color: #7A828D; opacity: 1; }

.btn {
  flex: 0 0 auto;
  height: clamp(52px, 4vw, 72px);
  padding-inline: clamp(24px, 2.4vw, 44px);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(16px, 1.25vw, 22px);
  letter-spacing: 0.02em;
  color: var(--cream);
  background: var(--accent);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}

.btn:hover { background: var(--accent-dark); }

.signup__error {
  font-size: clamp(14px, 1.05vw, 19px);
  color: var(--accent);
}

.signup__micro {
  max-width: 56ch;
  font-size: clamp(13px, 1vw, 18px);
  line-height: 1.5;
  color: var(--muted);
}

.signup__done {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(640px, 100%);
  padding: clamp(18px, 1.6vw, 30px) clamp(20px, 1.8vw, 34px);
  background: var(--tint);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(16px, 1.3vw, 24px);
}

.signup__doneMark { width: 24px; height: 24px; flex-shrink: 0; color: var(--accent); }

/* Signup on the accent band */
.signup--cream .signup__field {
  color: var(--cream);
  background: rgba(244, 240, 228, 0.1);
  border-color: rgba(244, 240, 228, 0.55);
}
.signup--cream .signup__field::placeholder { color: var(--cream); opacity: 0.85; }
.signup--cream .signup__micro { color: var(--on-accent-soft); }
.signup--cream .signup__error { color: #FBEFEC; }
.signup--cream :focus-visible { outline-color: var(--cream); }

.btn--cream { color: var(--accent); background: var(--cream); }
.btn--cream:hover { background: #EBE3D0; }

.cta .signup__done {
  background: none;
  border: 1px solid rgba(244, 240, 228, 0.55);
  color: var(--cream);
}
.cta .signup__doneMark { color: var(--cream); }

/* ----------------------------------------------------------- Sections --- */

.section { padding: var(--section-y) var(--gutter); }

.section--idea,
.section--promises { border-top: 1px solid var(--hairline); }

.section__title {
  max-width: 26ch;
  font-size: clamp(28px, 2.9vw, 58px);
  line-height: 1.12;
}

/* The idea: two columns that stack on their own when there isn't room */
.idea {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 4vw, 80px);
  align-items: flex-start;
}

.idea__title {
  flex: 1 1 420px;
  max-width: 20ch;
  font-size: clamp(30px, 3.2vw, 64px);
  line-height: 1.06;
}

.idea__body {
  flex: 1 1 420px;
  max-width: 62ch;
  color: var(--muted);
}

/* --------------------------------------------------------- Promises ---- */

.section--promises .shell {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 4.4vw, 80px);
}

/* auto-fit lands on 3 columns on desktop, 2 on tablet, 1 on phone */
.promises {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  column-gap: clamp(28px, 3.4vw, 64px);
  row-gap: clamp(40px, 4vw, 76px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.promise {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 0.9vw, 18px);
  padding-top: clamp(18px, 1.6vw, 30px);
  border-top: 1px solid var(--hairline-strong);
}

.promise__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.promise__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(12px, 0.95vw, 17px);
  letter-spacing: 0.2em;
  color: var(--accent);
}

.promise__mark {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent);
  opacity: 0.6;
}

.promise__title {
  font-size: clamp(20px, 1.6vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.promise__body {
  max-width: 42ch;
  font-size: clamp(16px, 1.2vw, 22px);
  line-height: 1.58;
  color: var(--muted);
}

/* -------------------------------------------------------------- CTA ---- */

.cta { background: var(--accent); }

.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 1.6vw, 28px);
  text-align: center;
}

.cta__title {
  max-width: 22ch;
  font-size: clamp(32px, 3.4vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--cream);
}

.cta__body {
  max-width: 46ch;
  line-height: 1.6;
  color: var(--on-accent-soft);
}

.cta .signup { align-items: center; margin-top: clamp(6px, 0.8vw, 16px); }
.cta .signup__row { width: 100%; }

/* ----------------------------------------------------------- Owners ---- */

.owners {
  padding: clamp(28px, 2.8vw, 52px) var(--gutter);
  background: var(--tint);
}

.owners__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 1.6vw, 40px);
}

.owners__text {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: clamp(8px, 1.1vw, 20px);
  font-size: clamp(16px, 1.3vw, 23px);
  color: var(--muted);
}

.owners__lead {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.5vw, 27px);
  letter-spacing: -0.01em;
  color: var(--ink);
}

.owners__link {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(16px, 1.3vw, 23px);
  border-bottom: 1px solid rgba(167, 63, 48, 0.4);
  padding-block: 4px;
}

/* ----------------------------------------------------------- Footer ---- */

.footer {
  padding: clamp(44px, 4.4vw, 88px) var(--gutter);
  background: var(--ink);
  color: var(--on-ink-soft);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(24px, 3vw, 56px);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.3vw, 24px);
}

.footer__logo {
  display: block;
  height: clamp(30px, 2.4vw, 50px);
  width: auto;
  color: var(--cream);
}

.footer__line { font-size: clamp(16px, 1.3vw, 23px); }

.footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(10px, 1vw, 18px);
  font-size: clamp(15px, 1.2vw, 21px);
}

.footer__links a {
  color: var(--cream);
  border-bottom: 1px solid rgba(244, 240, 228, 0.35);
}

.footer__links a:hover { color: #fff; }

.footer :focus-visible { outline-color: var(--cream); }

/* ---------------------------------------------------------- Motion ----- */

/* Only hide content when JS is there to reveal it again. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero__mark svg { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
