/* Oak — marketing site.
 *
 * Plain CSS, no build step, no framework, so Albert can change a sentence or a colour without
 * running anything. The palette and the type pairing are lifted from src/styles.css on purpose:
 * the site and the product should feel like one thing to somebody who sees the page and then the
 * login screen ten seconds later.
 *
 * Fonts are self-hosted and preloaded rather than pulled from Google, because the audience is on
 * Tanzanian mobile data and a blocking round-trip to fonts.gstatic.com is the slowest thing on
 * an otherwise very small page.
 */

@font-face {
  font-family: 'Manrope';
  src: url('fonts/manrope-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-display: swap; font-style: normal;
}
@font-face {
  font-family: 'Manrope';
  src: url('fonts/manrope-latin-700-normal.woff2') format('woff2');
  font-weight: 700; font-display: swap; font-style: normal;
}
@font-face {
  font-family: 'Fraunces';
  src: url('fonts/fraunces-latin-600-normal.woff2') format('woff2');
  font-weight: 600; font-display: swap; font-style: normal;
}

:root {
  --primary: #23262F;
  --sidebar: #1C1F27;
  --accent: #C9A24B;
  --accent-light: #E0BC6B;
  --ivory: #F2ECDD;
  --bg: #F5F4F0;
  --ink: #23262F;
  --muted: #767C88;
  --line: #E6E4DE;
  --card: #fff;
  --ok: #2E7D5B;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1100px;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--ink); }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
section { padding: clamp(2.5rem, 7vw, 5rem) 0; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 42ch; }
.muted { color: var(--muted); }

/* Focus rings stay visible. This costs nothing and the app is held to the same standard. */
a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- header ---------- */
.site-head {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; margin-right: auto; }
.brand img { width: 38px; height: 38px; display: block; }
.brand b { font-family: var(--font-display); font-size: 1.5rem; line-height: 1; }
.brand span { display: block; font-size: .68rem; color: var(--muted); letter-spacing: .02em; }

.btn {
  display: inline-block;
  padding: .62rem 1.15rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  /* "Log in" broke across two lines in a 360px header, which reads as a mistake before anyone
     has read a word of the copy. A button label is one line or it is nothing. */
  white-space: nowrap;
}

/* At 360px the wordmark, the tagline and two buttons cannot all fit. The tagline is the part
   nobody needs in order to act, so it is the part that goes. */
@media (max-width: 460px) {
  .brand span span { display: none; }
  .brand b { font-size: 1.3rem; }
  .site-head .btn { padding: .55rem .8rem; font-size: .88rem; }
  .site-head .wrap { gap: .5rem !important; }
}
.btn.primary { background: var(--accent); color: var(--sidebar); }
.btn.primary:hover { background: var(--accent-light); }
.btn.ghost { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn.ghost:hover { border-color: var(--accent); }
.btn.lg { padding: .85rem 1.6rem; font-size: 1.05rem; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.hero h1 { max-width: 16ch; }
.hero .lead { font-size: 1.22rem; max-width: 48ch; }
.hero-shot {
  margin-top: clamp(1.8rem, 4vw, 2.8rem);
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -24px rgba(35, 38, 47, .45);
  overflow: hidden;
  background: var(--card);
}
.hero-shot img { display: block; width: 100%; height: auto; }

/* ---------- the problem ---------- */
.problem { background: var(--sidebar); color: var(--ivory); }
.problem h2 { color: var(--ivory); }
.problem p { max-width: 60ch; color: #CFCBC1; }
.problem strong { color: var(--accent-light); }

/* ---------- feature blocks ---------- */
.features { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
.feature { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 820px) {
  .feature { grid-template-columns: 1fr 1.25fr; }
  .feature.flip .feature-text { order: 2; }
}
.feature img {
  display: block; width: 100%; height: auto;
  border-radius: 10px; border: 1px solid var(--line);
  background: var(--card);
}
.feature-text p { color: var(--muted); margin-bottom: 0; }
.tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .35rem;
}

/* ---------- why oak ---------- */
.why { background: var(--ivory); }
.why-grid { display: grid; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 700px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
.why-item {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1.1rem 1.25rem;
}
.why-item h3 { margin-bottom: .25rem; }
.why-item p { margin: 0; color: var(--muted); font-size: .97rem; }
.why-punch {
  margin-top: 1.5rem; padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--accent); background: var(--card);
  font-family: var(--font-display); font-size: clamp(1.1rem, 2.4vw, 1.4rem); line-height: 1.4;
}

/* ---------- pricing ---------- */
.price-scroll { overflow-x: auto; margin-top: 1.5rem; }
table.prices { border-collapse: collapse; width: 100%; min-width: 480px; background: var(--card); }
table.prices th, table.prices td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
table.prices th { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
table.prices td.amount { text-align: right; font-weight: 700; white-space: nowrap; }
table.prices tr:last-child td { border-bottom: 0; }
.addon {
  margin-top: 1rem; padding: 1rem 1.25rem; background: var(--card);
  border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px;
}
.addon b { display: block; }
.addon p { margin: .25rem 0 0; color: var(--muted); font-size: .95rem; }

/* ---------- cta + footer ---------- */
.cta { text-align: center; }
.cta h2 { max-width: 20ch; margin-inline: auto; }
.cta p { max-width: 46ch; margin-inline: auto; color: var(--muted); }

.site-foot {
  background: var(--sidebar); color: #CFCBC1;
  padding: 2.5rem 0; font-size: .95rem;
}
.site-foot a { color: var(--ivory); }
.foot-grid { display: grid; gap: 1.5rem; }
@media (min-width: 700px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-foot h3 { color: var(--ivory); font-size: .95rem; margin-bottom: .5rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: .3rem; }
.foot-legal { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid #2C303A; font-size: .85rem; }

/* ---------- prose (privacy) ---------- */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
