/* Sweeet website. Plain CSS, no scripts. Colours from the app (src/theme/tokens.ts) and the brand
   pack's night blue (#0F1A2B). Light or dark follows the visitor's phone or computer setting. */

@font-face {
  font-family: 'Hanken Grotesk';
  src: url('/assets/fonts/HankenGrotesk_400Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('/assets/fonts/HankenGrotesk_600SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/assets/fonts/BricolageGrotesque_600SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --night: #0f1a2b; /* brand night blue: the bar and the home page's top */
  --mist: #e6ecf5; /* brand mist: text on night blue */
  --bg: #f1f3f7;
  --surface: #ffffff;
  --ink: #0e121b;
  --muted: #596175;
  --hairline: #dde1ea;
  --accent: #c2570b;
  --sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Bricolage Grotesque', var(--sans);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #090d16;
    --surface: #101623;
    --ink: #eef1f8;
    --muted: #8d96ab;
    --hairline: #232c40;
    --accent: #ff9a4d;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--accent);
  text-underline-offset: 2px;
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* The top bar: the plate logo on night blue, the same in light and dark. */
.bar {
  background: var(--night);
  padding: 10px 16px;
}
.bar a {
  display: inline-block;
}
.bar img {
  width: 132px;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 8px;
  background: var(--surface);
  padding: 8px 12px;
  z-index: 1;
}

main,
.foot-in {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Home page top: the full logo on night blue. */
.hero {
  background: var(--night);
  color: var(--mist);
  text-align: center;
  padding: 40px 16px 48px;
}
.hero img {
  width: min(300px, 78vw);
  margin: 0 auto;
}
.tagline {
  margin: 18px 0 0;
  /* the intro below keeps its own top space (1.25rem) */
  font: 600 1.05rem/1.4 var(--sans);
  letter-spacing: 0.02em;
  opacity: 0.85;
}
.intro {
  max-width: 34em;
  margin: 1.25rem auto 0;
  font-size: 1.05rem;
  line-height: 1.55;
}
.soon {
  display: inline-block;
  margin-top: 22px;
  padding: 8px 16px;
  border: 1px solid rgba(230, 236, 245, 0.35);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Home: the cards (free report, Yeah Nah). Bordered, with the icon beside the heading, the same on
   phones and laptops. main's 16px side padding keeps them off the screen edges; 28px between them. */
.card {
  margin: 28px 0;
  padding: 18px 18px 6px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 24px;
}
.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
/* A fixed box, so both headings start at the same place whatever the icon's shape. */
.card-icon {
  flex: none;
  width: 34px;
  display: flex;
  justify-content: center;
}
.card h2 {
  margin: 0;
  font-size: 1.35rem;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
h1 {
  font-size: 2rem;
  margin: 32px 0 4px;
}
h2 {
  font-size: 1.3rem;
  margin: 36px 0 8px;
}
h3 {
  font-size: 1.05rem;
  margin: 24px 0 6px;
}
p,
ul,
ol {
  margin: 0 0 14px;
}
ul,
ol {
  padding-left: 1.25em;
}
li {
  margin-bottom: 6px;
}
.updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.lead {
  font-size: 1.08rem;
}
.box {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 16px 18px 4px;
  margin: 16px 0;
}
.box h2,
.box h3 {
  margin-top: 0;
}
.home main {
  padding-top: 0;
}
.contact {
  font-weight: 600;
}

footer {
  margin-top: 48px;
  border-top: 1px solid var(--hairline);
  padding: 20px 0 32px;
  color: var(--muted);
  font-size: 0.92rem;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-bottom: 10px;
}
footer nav a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  padding: 6px 0; /* a comfortable tap target */
}
footer nav a:hover {
  text-decoration: underline;
}
footer p {
  margin: 0;
}

@media (min-width: 720px) {
  body {
    font-size: 18px;
  }
  h1 {
    font-size: 2.4rem;
  }
  .hero {
    padding: 64px 16px 72px;
  }
}
