/* finoro.es holding site. Colours, sizes and copy come from es-site/design. */

/* Manrope variable font, self-hosted (SIL OFL 1.1, see ../fonts/OFL.txt).
   Subsets copied from @fontsource-variable/manrope 5.3.0. */
@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(../fonts/manrope-cyrillic-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(../fonts/manrope-latin-ext-wght-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: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(../fonts/manrope-latin-wght-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;
}

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

[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: 'Manrope Variable', Manrope, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #ece6d3;
  color: #2f3e46;
}

a { color: #7f6420; }
a:hover { color: #354f52; }
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid #354f52;
  outline-offset: 3px;
}
a:focus-visible { border-radius: 4px; }
input::placeholder { color: #6f7772; }

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(60% 70% at 72% 40%, #e9d9ab 0%, #f1ecdd 55%, #ece6d3 100%);
  position: relative;
  overflow: hidden;
}

/* Watermark: media queries only. It sits first in the DOM, so header, main
   and footer (position: relative) paint above it. */
.watermark {
  position: absolute;
  right: -6vw;
  top: 50%;
  transform: translateY(-50%);
  width: min(62vw, 720px);
  height: auto;
  opacity: 0.13;
  pointer-events: none;
}
@media (max-width: 1023.98px) {
  .watermark { opacity: 0.10; }
}
@media (max-width: 639.98px) {
  .watermark { width: 300px; top: 88%; opacity: 0.06; }
}

.site-header {
  position: relative;
  display: flex;
  align-items: center;
  padding: 28px clamp(20px, 5vw, 64px);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo svg { flex-shrink: 0; }
.logo-word {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  color: #354f52;
}
.logo-word span { color: #c9a961; }

.site-main {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 24px clamp(20px, 5vw, 64px) 64px;
}

.stack {
  max-width: 620px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.stack.msg { gap: 16px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #354f52;
  padding: 6px 14px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(53, 79, 82, .2);
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.badge i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #c9a961;
}

h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 58px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: #2f3e46;
  text-wrap: balance;
}
h1 .gold { color: #c9a961; }
.msg h1 {
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: #354f52;
  font-weight: 500;
  max-width: 500px;
  text-wrap: pretty;
}
.msg .lead { max-width: none; }

.back-link {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #354f52;
}

/* Signup form. DOM order is email, honeypot, checkbox label, button, error
   (keyboard order); `order` puts the button beside the email field. */
.signup-form {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 10px;
}
.field {
  order: 1;
  flex: 1 1 240px;
  min-width: 0;
  font: inherit;
  font-size: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(53, 79, 82, .35);
  background: rgba(255, 255, 255, .85);
  color: #2f3e46;
}
.field:focus { border-color: #354f52; }
.btn {
  order: 2;
  flex: 1 0 auto;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 10px;
  border: 0;
  background: #354f52;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 24px #2c474440;
}
.btn:hover { background: #2c4244; }
.btn:disabled { opacity: .7; cursor: progress; }
.consent {
  order: 3;
  flex-basis: 100%;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.5;
  color: #4a5753;
  cursor: pointer;
}
.consent input {
  margin: 3px 0 0;
  width: 16px;
  height: 16px;
  accent-color: #354f52;
  flex-shrink: 0;
}
.form-error {
  order: 4;
  flex-basis: 100%;
  font-size: 13px;
  font-weight: 600;
  color: #9a3d29;
}
.form-error:empty { display: none; }
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.js-note {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #9a3d29;
}

/* Success card */
.card {
  width: 100%;
  max-width: 500px;
  padding: 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(53, 79, 82, .18);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card-head { display: flex; flex-direction: column; gap: 4px; }
.card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #354f52;
}
.card-title:focus { outline: none; }
.card-sub { margin: 0; font-size: 14px; color: #4a5753; }
.card hr {
  height: 1px;
  border: 0;
  margin: 0;
  background: rgba(53, 79, 82, .14);
}
.chip-group { display: flex; flex-direction: column; gap: 10px; }
.chip-q { font-size: 14px; font-weight: 700; color: #2f3e46; }
.chip-q span { font-weight: 500; color: #5a6560; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid rgba(53, 79, 82, .35);
  background: rgba(255, 255, 255, .85);
  color: #354f52;
}
.chip[aria-pressed="true"] {
  border-color: #354f52;
  background: #354f52;
  color: #fff;
}
.chip-status { font-size: 13px; color: #4a5753; }
.chip-status:empty { display: none; }

.diaspora {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  line-height: 1.5;
  color: #5a6560;
}
.diaspora p { margin: 0; }

/* Legal pages */
.legal {
  max-width: 680px;
  width: 100%;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 16px;
  line-height: 1.7;
  color: #2f3e46;
}
.legal h1 {
  margin: 0 0 4px;
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.legal .updated { margin: 0; font-size: 14px; color: #5a6560; }
.legal section { display: flex; flex-direction: column; gap: 8px; }
.legal h2 {
  margin: 12px 0 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: #354f52;
}
.legal p { margin: 0; text-wrap: pretty; }
.legal ul { margin: 0; padding-left: 22px; }
.legal li { margin: 2px 0; }

.site-footer {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 20px clamp(20px, 5vw, 64px);
  border-top: 1px solid rgba(53, 79, 82, .14);
  font-size: 13px;
  color: #5a6560;
}
.site-footer div,
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
