/* Temployable coming-soon page.
   Plain CSS, mobile first. No build step, no framework. */

/* Plus Jakarta Sans, the app's own font, served from this site (licence:
   fonts/OFL.txt). One file holds every weight from 400 to 800, Latin letters. */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/PlusJakartaSans-latin-wght.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream:   #F7F3EA;
  --ink:     #1F3D34;
  --body:    #3C5249;
  --muted:   #5A6B63;
  --clay:    #A84A28;
  --clay-hi: #7E3419;
  --line:    #C6CFC7;
  --white:   #FFFFFF;
  --onDark:  #C7D6CE;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", "Helvetica Neue", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
@supports (min-height: 100svh) {
  .page { min-height: 100svh; }
}

/* ---------- masthead ---------- */

.masthead {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 26px 0 26px;
}

/* The app's logo, the same file (logo.svg). */
.logo {
  display: block;
  align-self: flex-start;
  width: auto;
  height: 28px;
}

.place {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- hero ---------- */

.hero {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 11px;
  padding: 12px 26px 14px 26px;
  max-width: 900px;
}

/* The front page's heading (its h1): as large as a phone allows while
   "Cover for childcare centres," still fits on one line, even at 320 wide. */
.eyebrow {
  margin: 0;
  max-width: none;
  line-height: 1.3;
  font-size: clamp(12px, 4vw, 16px);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clay);
}

h1 {
  margin: 0;
  font-size: clamp(30px, 8.6vw, 38px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.lede {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  color: var(--body);
  max-width: 34em;
}

/* "Coming soon", on its own line under the heading: calmer and smaller. */
.soon {
  margin: 0 0 4px 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Each half stays whole, so a narrow phone breaks at the comma
   rather than in the middle of a phrase. */
.eyebrow .half { display: inline-block; }

/* ---------- sign-up ---------- */

.signup {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 2px 0 0 0;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.signup label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.signup input[type="email"] {
  height: 52px;
  width: 100%;
  padding: 0 16px;
  font-family: inherit;
  font-size: 17px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.signup input[type="email"]::placeholder { color: #9AA8A0; }

.signup button {
  min-height: 52px;
  padding: 0 28px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  background: var(--clay);
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.signup button:hover { background: var(--clay-hi); }
.signup button:active { transform: translateY(1px); }

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

/* the honeypot: a real person never sees this, a bot fills it in */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.error {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--clay-hi);
}

/* ---------- illustration ---------- */

/* The picture is sized by its width, so its height is usually a fraction of a
   pixel. The browser blends that last part-row with the page behind it, which
   showed as a pale hairline where the water meets the footer. Pulling the
   footer up one pixel covers the blend at every window size. */
.scene { line-height: 0; margin-bottom: -1px; }
.scene svg { display: block; width: 100%; height: auto; }
.scene .scene-wide { display: none; }

/* ---------- footer ---------- */

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  font-size: 13px;
  color: var(--onDark);
  background: var(--ink);
  /* The page ends at the browser's own idea of the screen height, which on a
     phone can stop a fraction of a pixel short, or under Safari's see-through
     toolbar. That sliver showed the pale page as a white line under the
     footer. A shadow carries the footer's colour on below it; a shadow never
     makes the page scroll. */
  box-shadow: 0 50vh 0 50vh var(--ink);
}

.footer a {
  color: var(--onDark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer a:hover { color: var(--white); }

/* ---------- desktop ---------- */

@media (min-width: 820px) {
  .masthead {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 36px 72px 0 72px;
  }

  .logo { height: 34px; }
  .place { font-size: 13px; }

  .hero {
    gap: 20px;
    padding: 18px 72px;
    max-width: none;
  }

  .eyebrow { font-size: clamp(18px, 1.7vw, 24px); }
  .soon { font-size: 14px; }

  h1 {
    font-size: clamp(52px, 5.6vw, 78px);
    line-height: 1.02;
    max-width: 14em;
  }

  .lede {
    font-size: 20px;
    max-width: 34em;
  }

  .signup {
    flex-direction: row;
    align-items: flex-end;
    gap: 12px;
    margin-top: 8px;
  }

  .field {
    flex: 0 1 330px;
  }

  .signup button { height: 54px; }
  .signup input[type="email"] { height: 54px; }

  .note, .error { font-size: 14px; }

  .scene .scene-wide { display: block; }
  .scene .scene-narrow { display: none; }

  .footer {
    padding: 18px 72px;
  }
}

/* Laptop windows are wide but short, and the picture grows with the width.
   Below 860 tall the spacing tightens, the headline follows the height, and
   the picture gives up a strip of sky (never the sun), so each page fits on
   one screen. */
@media (min-width: 820px) and (max-height: 860px) {
  .masthead { padding-top: 18px; }
  .hero { gap: 10px; padding-top: 6px; padding-bottom: 4px; }
  h1 { font-size: clamp(36px, 7vh, 78px); }
  .tick { width: 44px; height: 44px; }
  .footer { padding-top: 10px; padding-bottom: 10px; }
  .scene .scene-wide { aspect-ratio: 1280 / 214; }
}

/* Shorter phones, and any phone whose browser bar eats more of the screen.
   Only padding-top/bottom is touched here so the cutout padding below still
   applies. Touch targets stay above 44px. */
@media (max-width: 819px) and (max-height: 730px) {
  .masthead { padding-top: 10px; }
  .hero { gap: 6px; padding-top: 6px; padding-bottom: 8px; }
  .lede { line-height: 1.4; }
  .signup { gap: 6px; }
  .signup input[type="email"],
  .signup button { height: 48px; min-height: 48px; }
  h1 { font-size: clamp(23px, 6.6vw, 28px); }
  .note { line-height: 1.4; font-size: 12px; }
  .footer { padding-top: 8px; padding-bottom: 8px; }
}

/* Very short screens. A phone held in landscape is about 915px wide, so this
   has to key off the height alone; a width limit here would never match it. */
@media (max-height: 560px) and (orientation: landscape) {
  .masthead { padding-top: 14px; }
  .hero { gap: 10px; padding-top: 10px; padding-bottom: 12px; }
  h1 { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.05; }
  .lede { font-size: 16px; }
}

/* The page now fills the whole screen (viewport-fit=cover in the head), which
   stops the browser leaving a black strip beside the camera in landscape. Add
   the cutout's own width back as padding so no words sit under it. The picture
   is allowed to run underneath; it is decoration. */
.masthead, .hero, .footer {
  padding-left: calc(26px + env(safe-area-inset-left, 0px));
  padding-right: calc(26px + env(safe-area-inset-right, 0px));
}

@media (min-width: 820px) {
  .masthead, .hero, .footer {
    padding-left: calc(72px + env(safe-area-inset-left, 0px));
    padding-right: calc(72px + env(safe-area-inset-right, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .signup button:active { transform: none; }
}

/* ---------- thank-you page ---------- */

.tick { display: block; }

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  text-decoration: none;
}

.ghost-button:hover {
  color: var(--cream);
  background: var(--ink);
}

.hero p:has(.ghost-button) { margin: 6px 0 0 0; }

/* Short phones held upright: an iPhone SE in Safari shows about 375 x 550.
   The place name moves beside the logo, the spacing tightens, and the
   picture gives up some sky so the whole page still fits on one screen. */
@media (max-width: 819px) and (max-height: 640px) and (orientation: portrait) {
  .masthead { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; }
  .hero { gap: 5px; padding-top: 4px; padding-bottom: 6px; }
  .lede { font-size: 15px; line-height: 1.4; }
  .scene .scene-narrow { height: 76px; }
}
