/* Sababi website. Colours from sababi-mvp ui/lib/theme/tokens.dart (Palette.day). System fonts only: nothing external. */
:root {
  color-scheme: light;
  --bg: #ffffff;        /* bg */
  --ink: #1a1e26;       /* ink */
  --ink2: #434a56;      /* ink2 */
  --ink3: #4f5765;      /* ink3 */
  --line: #d0d5dd;      /* cardLine */
  --divider: #e6e9ee;   /* divider */
  --hover: #eff1f4;     /* hover */
  --accent: #3d48a8;    /* mark: brand indigo, 7.8:1 on white */
  --accent-fill: #5e6ad2; /* markLit */
  --slot-bg: #fcf1dc;   /* checkBg: marks an unfilled slot */
  --slot-ink: #8a5a00;  /* check */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--font);
}
a { color: var(--accent); }
a:hover { color: var(--accent-fill); }
img { max-width: 100%; display: block; }

.wrap { max-width: 920px; margin: 0 auto; padding: 0 16px; }

/* header */
.top { border-bottom: 1px solid var(--divider); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.logo img { height: 26px; width: auto; }
.top nav { display: flex; gap: 20px; font-size: 15px; }
.top nav a { color: var(--ink2); text-decoration: none; }
.top nav a:hover { color: var(--ink); }

/* sections */
section { padding: 56px 0; border-bottom: 1px solid var(--divider); }
section:last-of-type { border-bottom: 0; }
h1 { font-size: 40px; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 20px; }
h2 { font-size: 26px; line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 20px; }
h3 { font-size: 19px; margin: 0 0 4px; }
p { margin: 0 0 16px; max-width: 62ch; color: var(--ink2); }

.button {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 8px;
  margin-top: 8px;
}
.button:hover { background: var(--accent-fill); color: #ffffff; }

/* team */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.founder {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}
.founder[hidden] { display: none; }
.photo {
  width: 120px; height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
}
.photo-slot {
  width: 120px; height: 120px;
  border-radius: 50%;
  margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 12px; padding: 12px;
}
.role { color: var(--ink3); font-size: 15px; margin-bottom: 12px; }

/* legal pages */
.legal { padding: 48px 0 64px; }
.legal h2 { font-size: 20px; margin-top: 32px; }
.legal dl { margin: 0; }
.legal dt { font-weight: 600; margin-top: 16px; }
.legal dd { margin: 0; color: var(--ink2); }
.legal ul { color: var(--ink2); padding-left: 20px; }

/* footer */
footer { border-top: 1px solid var(--divider); padding: 24px 0 40px; font-size: 15px; color: var(--ink3); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; }
footer a { color: var(--ink2); }

/* An unfilled slot: remove the class "slot" when the text is filled in. Search for "[" and "slot" before going live. */
.slot {
  background: var(--slot-bg);
  color: var(--slot-ink);
  border: 1px dashed var(--slot-ink);
  border-radius: 6px;
  padding: 2px 6px;
  font-weight: 600;
}
div.slot, p.slot { display: block; padding: 12px 14px; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  h1 { font-size: 30px; }
  h2 { font-size: 22px; }
  section { padding: 40px 0; }
  .top .wrap { height: 60px; }
  .logo img { height: 22px; }
  .top nav { gap: 14px; font-size: 14px; }
  .top nav .hide-sm { display: none; }
}
.photo-slot.slot { border-radius: 50%; padding: 16px; font-size: 11px; overflow-wrap: anywhere; }

/* intro and product */
.lead { font-size: 20px; color: var(--ink); }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 8px 40px; margin: 8px 0 16px; }
.features h3 { margin-bottom: 6px; }
.note { font-size: 15px; color: var(--ink3); }
@media (max-width: 600px) { .lead { font-size: 18px; } }
