/* Shop & tell: the "in development" page.
   Colours and lettering come from the logo rulebook (Keystone/02 - Business/Shop & tell logo/README.md).
   Coral is never used for small text. Buttons are coral with navy lettering, large and bold. */

/* Montserrat, kept on this site (not loaded from Google). One file covers every weight.
   Licence: SIL Open Font License 1.1, in assets/fonts/Montserrat-OFL.txt. */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #141E33;
  --navy-2: #1B2742;
  --navy-line: #2E3E63;
  --white: #EEF0F3;
  --paper: #F8F9FB;
  --line: #C9D0DC;
  --coral: #E4502F;
  --coral-hi: #EE6A4C;
  --sky: #2D9CFF;
  --deep: #1A73D9;
  --muted-on-navy: #9CACC0;
  --muted-on-white: #566175;
  --font: "Montserrat", "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue",
          Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
}

[hidden] { display: none !important; }

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

.wrap { width: min(100% - 2rem, 68rem); margin-inline: auto; }
.wrap.narrow > * { max-width: 42rem; }   /* shorter lines, on the same left edge as every other section */

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 7vw, 3.5rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; max-width: 62ch; }

a { color: inherit; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
.light :focus-visible { outline-color: var(--deep); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--white); color: var(--navy); padding: 0.6rem 1rem; border-radius: 0.5rem; font-weight: 700;
}
.skip:focus { top: 1rem; }

/* Top */
.top { padding: 1.5rem 0 0; }
.logo { width: min(100%, 26rem); margin-left: -1.6rem; }   /* the drawing has its own margin; this lines the & up with the text */

/* Hero */
.hero { padding: 2rem 0 4rem; }
.badge {
  display: inline-block; margin: 0 0 1.2rem; padding: 0.3rem 0.9rem;
  border: 2px solid var(--sky); border-radius: 99rem;
  color: var(--sky); font-size: 0.95rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.hero h1 { max-width: 16ch; }
.lead { font-size: 1.25rem; max-width: 56ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin: 2rem 0 0; }
.plain-link { color: var(--sky); font-weight: 700; }

/* Buttons */
.button {
  display: inline-block; cursor: pointer; border: 0; border-radius: 0.7rem;
  background: var(--coral); color: var(--navy);
  font: inherit; font-size: 1.2rem; font-weight: 700; line-height: 1.2; text-decoration: none;
  padding: 0.95rem 1.6rem; min-height: 3rem;
}
.button:hover { background: var(--coral-hi); }
.button.quiet { background: var(--navy); color: var(--white); font-size: 1.05rem; padding: 0.75rem 1.2rem; }
.button.quiet:hover { background: var(--navy-2); }

/* Sections */
section.light, section.dark { padding: 3.5rem 0; }
section.light { background: var(--white); color: var(--navy); }
section.light + section.light { padding-top: 0.5rem; margin-top: -1px; }
section.dark { background: var(--navy); color: var(--white); }

/* What you get */
.cards {
  list-style: none; margin: 1.5rem 0 0; padding: 0;
  display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.cards li {
  background: var(--paper); border: 1px solid var(--line); border-top: 5px solid var(--navy);
  border-radius: 0.8rem; padding: 1.3rem 1.3rem 0.6rem;
}
.cards p { color: #2B3550; }

/* Where it's up to */
.intro { color: var(--muted-on-navy); }
.two { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); margin-top: 1.5rem; }
.panel { background: var(--navy-2); border: 1px solid var(--navy-line); border-radius: 0.8rem; padding: 1.4rem 1.4rem 0.6rem; }
.ticks, .todo { list-style: none; margin: 0 0 1em; padding: 0; }
.ticks li, .todo li { position: relative; padding-left: 2rem; margin-bottom: 0.7rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0.25rem; top: 0.35em; width: 0.55rem; height: 0.95rem;
  border: solid var(--sky); border-width: 0 3px 3px 0; transform: rotate(45deg);
}
.todo li::before {
  content: ""; position: absolute; left: 0.1rem; top: 0.4em; width: 0.9rem; height: 0.9rem;
  border: 2px solid var(--muted-on-navy); border-radius: 50%;
}
.note { margin-top: 1.5rem; font-weight: 700; }

/* Apply */
.apply { padding-bottom: 4rem; }
.how {
  background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--deep);
  border-radius: 0.6rem; padding: 0.9rem 1.1rem;
}
.form { margin-top: 2rem; }
.field { margin: 0 0 1.5rem; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend, .after > label { display: block; font-weight: 700; margin-bottom: 0.4rem; padding: 0; }
.needed { font-weight: 500; color: var(--muted-on-white); }
.hint { margin: -0.2rem 0 0.5rem; color: var(--muted-on-white); font-size: 1rem; }
input[type="text"], textarea, select {
  width: 100%; font: inherit; color: var(--navy);
  background: #FFFFFF; border: 2px solid var(--muted-on-white); border-radius: 0.6rem; padding: 0.7rem 0.8rem;
}
select { appearance: auto; min-height: 3rem; }
textarea { resize: vertical; }
::placeholder { color: #6B7588; opacity: 1; }
.field > .check {
  display: flex; align-items: flex-start; gap: 0.75rem; margin: 0; padding: 0.55rem 0; font-weight: 500;
  cursor: pointer;
}
.check input {
  appearance: none; -webkit-appearance: none; flex: none;
  width: 1.6rem; height: 1.6rem; margin: 0.1rem 0 0;
  background: #FFFFFF; border: 2px solid var(--muted-on-white); border-radius: 0.35rem;
  display: grid; place-content: center; cursor: pointer;
}
.check input::before {
  content: ""; width: 0.9rem; height: 0.9rem; transform: scale(0); background: var(--white);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0, 43% 62%);
}
.check input:checked { background: var(--navy); border-color: var(--navy); }
.check input:checked::before { transform: scale(1); }
.check small { color: var(--muted-on-white); font-size: 1rem; }
.after {
  margin-top: 2rem; background: var(--paper); border: 1px solid var(--line); border-radius: 0.8rem;
  padding: 1.3rem;
}
.copy-box { font-size: 1rem; margin-bottom: 1rem; background: var(--white); }
.copied { margin-left: 0.75rem; font-weight: 700; }
.or { margin-top: 2rem; }

/* Footer */
.foot { background: var(--navy); border-top: 1px solid var(--navy-line); padding: 2.5rem 0 3rem; color: var(--white); }
.foot p { margin-bottom: 0.5em; }
.foot a { color: var(--sky); }
.wordmark { width: 11rem; margin: 0 0 1rem -0.9rem; }
.small { color: var(--muted-on-navy); font-size: 1rem; }

/* Privacy and other plain pages */
.page { padding: 2rem 0 4rem; }
.page h1 { font-size: clamp(1.9rem, 6vw, 2.75rem); }
.page h2 { font-size: 1.4rem; margin-top: 2rem; }
.page li { margin-bottom: 0.5rem; max-width: 60ch; }
.page a { color: var(--sky); }
.back { display: inline-block; margin-bottom: 1.5rem; color: var(--sky); font-weight: 700; }

@media (min-width: 48rem) {
  .top { padding-top: 2.5rem; }
  .hero { padding: 3rem 0 6rem; }
  section.light, section.dark { padding: 5rem 0; }
  section.light + section.light { padding-top: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
