/* Around site. Self-contained tokens (not tied to the app theme,
   since the design system is being reworked). Specs from Figma:
   Inter (-5% tracking) for body + headline, Averia Serif Libre (-7%) for the
   "Around" wordmark, background #FDF9F8. Type + spacing scale fluidly via clamp(). */

:root {
  --bg: #FDF9F8;
  --ink: #1A1A18;        /* near-black: headline, emphasis, footer */
  --ink-soft: #6E6A67;   /* grey body text */
  --line: #E7E2DF;       /* input border */
  --placeholder: #A8A29E;
  --btn: #161413;        /* button black */
  --btn-text: #FFFFFF;
  --err: #C0392B;        /* restrained red for errors */
  --radius: 14px;
  --maxw: 480px;
  --tracking: -0.05em;   /* -5% */
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  letter-spacing: var(--tracking);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(48px, 12vw, 80px) clamp(22px, 6vw, 32px);
}

.logo {
  display: block;
  height: clamp(46px, 13vw, 62px);
  width: auto;
  margin-bottom: clamp(28px, 9vw, 40px);
}

.headline {
  font-weight: 700;
  font-size: clamp(27px, 8vw, 40px);
  line-height: 1.15;
  letter-spacing: var(--tracking);
  margin: 0 0 clamp(20px, 6vw, 28px);
  color: var(--ink);
}

.intro {
  font-weight: 500;
  font-size: clamp(16px, 4.6vw, 20px);
  line-height: 1.5;
  color: var(--ink-soft);
}
.intro p { margin: 0 0 clamp(16px, 5.5vw, 22px); }
.intro p:last-child { margin-bottom: 0; }
.intro strong { color: var(--ink); font-weight: 700; }

.form {
  margin-top: clamp(26px, 8vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field { display: flex; flex-direction: column; }

.form input[type="text"],
.form input[type="tel"] {
  width: 100%;
  font-family: inherit;
  font-weight: 500;
  font-size: clamp(16px, 4.3vw, 18px);   /* >=16px so iOS doesn't zoom on focus */
  letter-spacing: var(--tracking);
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 17px 20px;
  outline: none;
  transition: border-color .15s ease;
}
.form input::placeholder { color: var(--placeholder); }
.form input:focus { border-color: var(--ink); }
.form input.invalid { border-color: var(--err); }
.form input:disabled { background: #fff; opacity: 1; }

/* Phone field with a fixed "+31 6" prefix the user can't edit */
.phone-wrap {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 20px;
  transition: border-color .15s ease;
}
.phone-wrap:focus-within { border-color: var(--ink); }
.phone-wrap.invalid { border-color: var(--err); }
.phone-prefix {
  font-weight: 500;
  font-size: clamp(16px, 4.3vw, 18px);
  letter-spacing: var(--tracking);
  color: var(--ink);
  padding-right: 8px;
  white-space: nowrap;
  user-select: none;
}
.phone-wrap input[type="tel"] {
  border: none;
  background: transparent;
  border-radius: 0;
  padding: 17px 0;
  flex: 1;
  min-width: 0;
}

.err {
  margin: 6px 4px 0;
  font-size: clamp(13px, 3.5vw, 14px);
  font-weight: 500;
  letter-spacing: var(--tracking);
  color: var(--err);
  display: none;
}
.err.show { display: block; }
.err-form { margin: 12px 4px 0; }

.btn {
  margin-top: 2px;
  width: 100%;
  font-family: inherit;
  font-weight: 600;
  font-size: clamp(16px, 4.5vw, 19px);
  letter-spacing: var(--tracking);
  color: var(--btn-text);
  background: var(--btn);
  border: none;
  border-radius: var(--radius);
  padding: 18px 20px;
  cursor: pointer;
  transition: opacity .15s ease, transform .05s ease;
}
.btn:hover { opacity: .92; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { cursor: default; }
.btn[disabled]:hover { opacity: 1; }

.consent {
  margin: 14px auto 0;
  max-width: 300px;
  text-align: center;
  font-size: clamp(11px, 3vw, 12.5px);
  line-height: 1.4;
  letter-spacing: var(--tracking);
  color: var(--ink-soft);
}

.footer {
  margin-top: clamp(28px, 8vw, 40px);
  font-weight: 500;
  font-size: clamp(16px, 4.5vw, 19px);
  line-height: 1.5;
  color: var(--ink);
}
.footer p { margin: 0; }
.footer a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

/* keep the e-mail and its copy icon glued together on one line */
.email-wrap { white-space: nowrap; }

.copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  padding: 2px;
  border: none;
  background: none;
  color: var(--ink-soft);
  cursor: pointer;
  vertical-align: middle;
  border-radius: 6px;
  transition: color .15s ease;
}
.copy:hover { color: var(--ink); }
.copy svg { display: block; width: clamp(15px, 4vw, 17px); height: auto; }

.copied {
  margin-left: 8px;
  font-size: clamp(13px, 3.6vw, 15px);
  color: var(--ink-soft);
  opacity: 0;
  transition: opacity .15s ease;
}
.copied.show { opacity: 1; }

/* honeypot: off-screen, never seen or tabbed to by people */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* visually hidden but read by screen readers + used by autofill */
.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;
}
