/*
 * /start and /el/start: the poster intro page (phone first), plus the two thank-you pages.
 * Loaded after the site's template CSS. Every colour comes from the tokens below.
 * The navbar and footer keep the site's own styles; only the newsletter form is removed.
 */

:root {
  --st-flower: #faf8f5;
  --st-white: #ffffff;
  --st-moon: #d7cbbf;
  --st-field-line: #998a7b; /* 3.3:1 on white, WCAG 1.4.11 for field outlines */
  --st-lime: #e6f6ba;
  --st-cacao: #594a3c;
  --st-cacao-soft: #6b5b4c;
  --st-ink: #2c241d;
  --st-blue: #375bae;
  --st-blue-deep: #2c4a8f;
  --st-error: #c9372d;
  --st-error-wash: color-mix(in srgb, var(--st-error) 7%, var(--st-white));

  /* The site's own heading stack: Latin letters and digits in Libre Caslon Condensed, Greek in
     the Noto Serif Display subset (it has Greek glyphs only), as on every other Greek page. */
  --st-font-display: "Libre Caslon Condensed", "Noto Serif Display Greek", Georgia, serif;
  --st-font-body: "Instrument Sans Variable", "Inter Greek", Arial, sans-serif;

  --st-space-4: 4px;
  --st-space-8: 8px;
  --st-space-12: 12px;
  --st-space-20: 20px;
  --st-space-32: 32px;
  --st-space-56: 56px;

  --st-radius-pill: 999px;
  --st-radius-field: 14px;
  --st-radius-card: 24px;
  --st-radius-photo: 6px;

  --st-gutter: 16px;
  --st-nav-clearance: 84px;
}

.st {
  background-color: var(--st-flower);
  color: var(--st-cacao);
  font-family: var(--st-font-body);
  font-size: 16px;
  line-height: 1.5;
  padding: var(--st-nav-clearance) var(--st-gutter) var(--st-space-56);
}

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

.st-grid {
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: var(--st-space-32);
}

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

.st-label {
  margin: 0 0 var(--st-space-12);
  color: var(--st-blue);
  font-family: var(--st-font-body);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.st h1.st-title,
.st h2.st-title {
  margin: 0 0 var(--st-space-12);
  color: var(--st-ink);
  font-family: var(--st-font-display);
  font-size: 36px;
  line-height: 1.04;
  font-weight: 500;
  font-stretch: 87.5%;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

html[lang="en"] .st h1.st-title {
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.st-intro {
  margin: 0;
  max-width: 34em;
  color: var(--st-cacao);
  font-size: 16px;
  line-height: 1.5;
}

/* ---------- Form ---------- */

.st-form {
  margin: 0;
  scroll-margin-top: 96px;
}

.st-alert {
  margin: 0 0 var(--st-space-12);
  padding: var(--st-space-12) var(--st-space-12) var(--st-space-12) 14px;
  border: 1px solid var(--st-error);
  border-left-width: 4px;
  border-radius: 10px;
  background-color: var(--st-error-wash);
  color: var(--st-ink);
  font-size: 15px;
  line-height: 1.4;
}

.st-alert[hidden] {
  display: none;
}

.st-fields {
  display: grid;
  row-gap: var(--st-space-12);
}

.st-field {
  position: relative;
}

.st-input {
  display: block;
  width: 100%;
  height: 56px;
  margin: 0;
  padding: 24px 16px 6px;
  border: 1px solid var(--st-field-line);
  border-radius: var(--st-radius-field);
  background-color: var(--st-white);
  color: var(--st-ink);
  font-family: var(--st-font-body);
  font-size: 16px;
  line-height: 24px;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
  transition: border-color 0.15s ease;
}

textarea.st-input {
  height: 96px;
  min-height: 96px;
  padding-top: 28px;
  resize: vertical;
}

.st-input:hover {
  border-color: var(--st-cacao-soft);
}

.st-input:focus {
  outline: 2px solid var(--st-blue);
  outline-offset: 0;
  border-color: var(--st-blue);
}

.st-input[aria-invalid="true"] {
  border-color: var(--st-error);
}

/* Chrome and Safari autofill keep the white field */
.st-input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 40px var(--st-white) inset;
  -webkit-text-fill-color: var(--st-ink);
}

/* The label sits inside the field like a placeholder and floats up once the field is
   focused or filled (placeholder=" " keeps :placeholder-shown true while it is empty). */
.st-field-label {
  position: absolute;
  top: 17px;
  left: 17px;
  right: 17px;
  margin: 0;
  color: var(--st-cacao-soft);
  font-family: var(--st-font-body);
  font-size: 16px;
  line-height: 22px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.15s ease, color 0.15s ease;
}

.st-input:focus + .st-field-label,
.st-input:not(:placeholder-shown) + .st-field-label,
.st-input:-webkit-autofill + .st-field-label {
  transform: translateY(-10px) scale(0.75);
}

.st-input:focus + .st-field-label {
  color: var(--st-blue);
}

/* The goal textarea scrolls once the text is longer than three lines. This white strip sits
   under the floated label (and over the scrolled text), so the two never overlap. It stops short
   of the right edge so it never covers a scrollbar, and lets clicks through to the field. */
.st-field-area::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  right: 17px;
  height: 26px;
  border-top-left-radius: 13px;
  background-color: var(--st-white);
  pointer-events: none;
}

.st-help {
  margin: var(--st-space-8) 2px 0;
  color: var(--st-cacao-soft);
  font-size: 13px;
  line-height: 1.45;
}

.st-note {
  margin: var(--st-space-20) 2px var(--st-space-12);
  color: var(--st-cacao);
  font-size: 13px;
  line-height: 1.45;
}

.st-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  margin: 0;
  padding: 0 var(--st-space-20);
  border: 0;
  border-radius: var(--st-radius-pill);
  background-color: var(--st-blue);
  color: var(--st-flower);
  font-family: var(--st-font-body);
  font-size: 17px;
  line-height: 1;
  font-weight: 650;
  letter-spacing: 0.005em;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color 0.15s ease;
}

.st-submit:hover {
  background-color: var(--st-blue-deep);
}

.st-submit:focus-visible {
  outline: 2px solid var(--st-blue);
  outline-offset: 3px;
}

.st-submit:disabled {
  cursor: progress;
  background-color: var(--st-blue-deep);
}

.st-chat {
  margin: var(--st-space-12) 0 0;
  color: var(--st-blue);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
  text-align: center;
}

.st-chat [hidden] {
  display: none;
}

/* The chat links are short words in a text line; each gets a hit area of at least 44 px tall
   without changing the line's layout, and the separator keeps the two areas apart. */
.st-chat a.st-link {
  position: relative;
}

.st-chat a.st-link::after {
  content: "";
  position: absolute;
  top: -13px;
  bottom: -13px;
  left: -8px;
  right: -8px;
}

.st-chat [data-chat-sep] {
  margin: 0 var(--st-space-8);
}

.st a.st-link {
  color: var(--st-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.st a.st-link:hover {
  color: var(--st-blue-deep);
  text-decoration-thickness: 2px;
}

.st a.st-link:focus-visible {
  outline: 2px solid var(--st-blue);
  outline-offset: 2px;
  border-radius: 2px;
}

.st-privacy {
  margin: var(--st-space-12) 2px 0;
  color: var(--st-cacao-soft);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

/* Honeypot: off screen, out of the tab order, hidden from assistive tech */
.st-hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Reassurance ---------- */

.st-checks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  row-gap: var(--st-space-12);
}

.st-checks li {
  position: relative;
  padding-left: 32px;
  color: var(--st-cacao);
  font-size: 16px;
  line-height: 1.4;
}

.st-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--st-lime);
}

.st-checks li::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 5px;
  width: 5px;
  height: 9px;
  border: solid var(--st-cacao);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---------- Who I am ---------- */

.st-section h2.st-title {
  font-size: 28px;
  line-height: 1.1;
  margin-bottom: var(--st-space-20);
}

.st-who {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  column-gap: var(--st-space-20);
  align-items: start;
}

.st-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: var(--st-radius-photo);
  background-color: var(--st-moon);
}

.st-name {
  margin: 0 0 var(--st-space-8);
  color: var(--st-ink);
  font-size: 17px;
  line-height: 1.3;
  font-weight: 650;
}

.st-facts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  row-gap: var(--st-space-8);
}

.st-facts li {
  position: relative;
  padding-left: 14px;
  color: var(--st-cacao);
  font-size: 15px;
  line-height: 1.4;
}

.st-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background-color: var(--st-blue);
}

/* ---------- How it starts ---------- */

.st-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: st-step;
  display: grid;
  row-gap: var(--st-space-12);
}

.st-steps li {
  counter-increment: st-step;
  position: relative;
  min-height: 32px;
  padding: 4px 0 0 46px;
  color: var(--st-cacao);
  font-size: 16px;
  line-height: 1.45;
}

.st-steps li::before {
  content: counter(st-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border: 1px solid var(--st-moon);
  border-radius: 50%;
  background-color: var(--st-white);
  color: var(--st-blue);
  font-family: var(--st-font-display);
  font-size: 18px;
  line-height: 30px;
  font-weight: 500;
  text-align: center;
}

/* ---------- Thank-you pages ---------- */

.st-sent {
  padding-top: calc(var(--st-nav-clearance) + var(--st-space-32));
  padding-bottom: var(--st-space-56);
}

.st-sent .st-grid {
  max-width: 560px;
}

.st-sent h1.st-title {
  font-size: 40px;
}

.st-lead {
  margin: 0;
  color: var(--st-cacao);
  font-size: 18px;
  line-height: 1.45;
}

.st-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: var(--st-space-20);
  row-gap: var(--st-space-12);
  margin: 0;
}

.st a.st-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 var(--st-space-20);
  border-radius: var(--st-radius-pill);
  background-color: var(--st-blue);
  color: var(--st-flower);
  font-size: 16px;
  font-weight: 650;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.st a.st-button:hover {
  background-color: var(--st-blue-deep);
}

.st a.st-button:focus-visible {
  outline: 2px solid var(--st-blue);
  outline-offset: 3px;
}

/* ---------- Footer: the newsletter column is removed on these pages ---------- */

.st-body .footer-halves {
  grid-template-columns: minmax(0, 1fr);
}

/* ---------- Desktop ---------- */

@media screen and (min-width: 992px) {
  .st {
    padding: 128px 32px 96px;
  }

  .st-grid {
    max-width: 1120px;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: var(--st-space-56);
    row-gap: var(--st-space-56);
    align-items: start;
  }

  .st-hero { grid-column: 1; grid-row: 1; }
  .st-form-col { grid-column: 2; grid-row: 1 / span 4; align-self: stretch; }
  .st-reassure { grid-column: 1; grid-row: 2; }
  .st-who-section { grid-column: 1; grid-row: 3; }
  .st-how { grid-column: 1; grid-row: 4; }

  .st-card {
    position: sticky;
    top: 96px;
    padding: var(--st-space-32);
    border: 1px solid var(--st-moon);
    border-radius: var(--st-radius-card);
    background-color: var(--st-white);
  }

  .st h1.st-title {
    font-size: 52px;
    line-height: 1.02;
    margin-bottom: var(--st-space-20);
  }

  html[lang="en"] .st h1.st-title {
    font-size: 56px;
  }

  .st-intro {
    font-size: 17px;
  }

  .st-who {
    grid-template-columns: 160px minmax(0, 1fr);
    column-gap: var(--st-space-32);
  }

  .st-sent .st-grid {
    max-width: 640px;
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--st-space-32);
  }

  .st-sent h1.st-title {
    font-size: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .st-input,
  .st-field-label,
  .st-submit,
  .st a.st-button {
    transition: none;
  }
}
