/* ==========================================================================
   Vflow — Landing Page
   Type:  Safiro (Regular 400 / Medium 500 / Bold 700)
   ========================================================================== */

@font-face {
  font-family: "Safiro";
  src: url("../fonts/safiro-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Safiro";
  src: url("../fonts/safiro-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Safiro";
  src: url("../fonts/safiro-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---- Design tokens -------------------------------------------------- */
:root {
  --gradient-bg:  linear-gradient(37deg, #FDF9CC 0%, #C7E4CF 100%); /* yellow → green, 37° */
  --color-ink:    #00304A; /* navy — headline colour, from the Vflow core palette */
  --color-muted:  #454F51; /* charcoal — labels, dividers, contact copy */
  --color-accent: #FF4500; /* highlighter — the one signature accent colour */
  --color-line:   rgba(69, 79, 81, 0.16);

  --font: "Safiro", "Helvetica Neue", Arial, sans-serif;

  --measure-md: 40rem;   /* line length for mid-weight statements */

  --space-section: clamp(4.5rem, 11vw, 8.5rem);
}

/* ---- Reset / base ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--gradient-bg);
  color: var(--color-ink);
  font-family: var(--font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

address { font-style: normal; }

::selection { background: var(--color-accent); color: #fff; }

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

main, .site-header, .newsletter, .site-footer {
  max-width: 1400px;
  margin-inline: auto;
}

/* ---- Header / logo ----------------------------------------------------- */
.site-header {
  display: flex;
  justify-content: center;
  padding: clamp(2.25rem, 6vw, 3.75rem) 1.5rem clamp(1.25rem, 4vw, 2rem);
}

.logo-link { display: inline-flex; }

.logo {
  width: clamp(120px, 15vw, 176px);
  height: auto;
}

/* ---- Eyebrow label ------------------------------------------------------ */
.eyebrow {
  display: inline-block;
  margin: 0 0 clamp(0.9rem, 2.2vw, 1.5rem);
  font-family: var(--font);
  font-weight: 500;
  font-size: clamp(0.8rem, 1.05vw, 0.95rem);
  letter-spacing: 0.02em;
  color: var(--color-muted);
}

/* ---- Statement sections ------------------------------------------------ */
.statement {
  text-align: center;
  padding: var(--space-section) 1.5rem;
}

.headline {
  margin: 0 auto;
  font-weight: 700;
  color: var(--color-ink);
}

.headline--lg {
  font-size: clamp(2.15rem, 6vw, 5rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.headline--md {
  max-width: var(--measure-md);
  font-size: clamp(1.4rem, 3.4vw, 2.5rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.statement--hero { padding-top: clamp(2rem, 6vw, 3rem); }

/* ---- Visual (full-bleed) sections --------------------------------------- */
.visual {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: clamp(1rem, 4vw, 2rem) 0;
}

.visual picture {
  display: block;
  width: 100%;
}

.visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3072 / 5504;
  object-fit: cover;
  background: var(--color-line);
}

/* ---- Newsletter ----------------------------------------------------------- */
.newsletter {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem 0;
}

.newsletter-copy {
  max-width: 34rem;
  margin: 0 auto clamp(2.25rem, 5vw, 3.25rem);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.55;
  color: var(--color-ink);
  text-wrap: balance;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.75rem, 4vw, 2.5rem);
  max-width: 26rem;
  margin: 0 auto;
}

.newsletter-field {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.newsletter-label {
  display: block;
  margin: 0 0 0.65rem;
  font-family: var(--font);
  font-weight: 500;
  font-size: clamp(0.8rem, 1.05vw, 0.95rem);
  letter-spacing: 0.02em;
  color: var(--color-muted);
}

.newsletter-form input[type="email"] {
  width: 100%;
  max-width: 22rem;
  text-align: center;
  padding: 0.85rem 0.25rem;
  border: none;
  border-bottom: 1.5px solid var(--color-muted);
  background: transparent;
  color: var(--color-ink);
  font-family: var(--font);
  font-size: 0.95rem;
  border-radius: 0;
  transition: border-color 0.2s ease;
}
.newsletter-form input[type="email"]::placeholder { color: var(--color-muted); opacity: 0.6; }
.newsletter-form input[type="email"]:focus-visible {
  outline: none;
  border-color: var(--color-accent);
}

.newsletter-form button {
  -webkit-appearance: none;
  appearance: none;
  flex: 0 0 auto;
  padding: 0.85rem 2.25rem;
  border: none;
  border-radius: 3px;
  background: var(--color-accent);
  color: #000000;
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.newsletter-form button:hover,
.newsletter-form button:focus-visible { background: #D83B00; }
.newsletter-form button:disabled { opacity: 0.5; cursor: default; }

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

.newsletter-status {
  min-height: 1.4em;
  margin: 1.25rem 0 0;
  font-size: 0.85rem;
  color: var(--color-ink);
}
.newsletter-status.is-error { color: var(--color-accent); }

/* ---- Footer -------------------------------------------------------------- */
.site-footer {
  text-align: center;
  border-top: 1px solid var(--color-line);
  margin-top: clamp(1rem, 4vw, 2rem);
  padding: clamp(3rem, 7vw, 5rem) 1.5rem clamp(2.5rem, 6vw, 4rem);
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
}

.social-link {
  display: inline-flex;
  color: var(--color-muted);
  transition: color 0.2s ease;
}
.social-link:hover,
.social-link:focus-visible { color: var(--color-accent); }

.footer-label { margin-bottom: 1.1rem; }

address {
  font-size: clamp(0.85rem, 1.3vw, 0.95rem);
  line-height: 1.9;
  color: var(--color-muted);
}

address a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease;
}
address a:hover,
address a:focus-visible { color: var(--color-accent); }

.copyright {
  margin: clamp(1.75rem, 4vw, 2.5rem) 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: var(--color-muted);
  opacity: 0.7;
}

/* ---- Scroll reveal ------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---- Small screens --------------------------------------------------------- */
@media (max-width: 420px) {
  .statement { padding-left: 1.25rem; padding-right: 1.25rem; }
}
