/* Rukiga website. Built to the app's design rules (CLAUDE.md, "Design")
   with the app's own values from mobile/lib/theme.dart: AppColors,
   AppSpace, AppRadius and the text sizes. Add no colour, size, gap or
   corner here that the app does not have.
   - White panels on a cool blue-grey ground; panels stand out by tone,
     never by outlines or shadows.
   - One lead element: the navy card, like the Summary's month total.
   - Things you press are fully round; things that hold content have soft
     corners (panels 16, tiles 12, sheets 24).
   - Rows carry a brand-blue symbol in a pale-blue tile (IconTile); divider
     lines start where the row text starts.
   - Everything left-aligned. No gradients, no animation. Tappable things
     at least 48 high. */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/fonts/Inter-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("/fonts/Inter-Bold.woff2") format("woff2"); }

:root {
  /* AppColors */
  --ground: #F3F5F9;
  --panel: #FFFFFF;
  --ink: #171A21;
  --muted: #5A6070;
  --deep: #102456;
  --brand: #1B3A8F;
  --brand-tint: #E3E9F8;
  --on-deep: #FFFFFF;
  --on-deep-muted: #C9D3F0;
  --deep-rule: rgba(201, 211, 240, 0.30);  /* 0x4DC9D3F0 */
  --rule: #E4E8F0;
  --focus: rgba(27, 58, 143, 0.25);        /* 0x401B3A8F */
  /* AppSpace */
  --xs: 4px;
  --sm: 8px;
  --mid: 12px;
  --md: 16px;
  --lg: 24px;
  --edge: 20px;
  --touch: 48px;
  /* AppRadius */
  --r-panel: 16px;
  --r-tile: 12px;
  --r-sheet: 24px;
  --r-pill: 999px;
  /* IconTile */
  --tile: 40px;
  /* Width of a screen picture */
  --phone: 280px;
}

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

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

/* bodyLarge: 16, regular, 1.4. Figures are equal width, as in the app. */
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

img { display: block; max-width: 100%; height: auto; }
p { margin: 0; }
p + p { margin-top: var(--mid); }
ul { list-style: none; margin: 0; padding: 0; }

/* displaySmall 34 / headlineSmall 24 / titleMedium 16 / titleSmall 14 */
h1, h2, h3 { margin: 0; font-weight: 700; }
h1 { font-size: 34px; line-height: 1.18; letter-spacing: -0.6px; }
h2 { font-size: 24px; line-height: 1.25; letter-spacing: -0.3px; }
h3 { font-size: 16px; line-height: 1.35; font-weight: 600; }

a { color: var(--brand); }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: var(--xs); }

.wrap { width: min(1040px, 100% - 2 * var(--edge)); margin-inline: auto; }

.skip {
  position: absolute; left: var(--edge); top: -100px;
  display: inline-flex; align-items: center; min-height: var(--touch);
  padding: 0 var(--md); border-radius: var(--r-pill);
  background: var(--panel); font-weight: 600;
}
.skip:focus { top: var(--sm); }

/* Top bar: the name only, until there is a logo. */
.bar { padding: var(--md) 0; }
.wordmark {
  display: inline-flex; align-items: center; min-height: var(--touch);
  font-size: 20px; font-weight: 700; letter-spacing: -0.2px;
  color: var(--deep); text-decoration: none;
}

/* The lead card: navy, white words, like the Summary's month total. */
.lead {
  background: var(--deep);
  color: var(--on-deep);
  border-radius: var(--r-panel);
  padding: var(--lg);
  display: grid;
  gap: var(--lg);
}
.lead-intro { margin-top: var(--md); }
.lead-status {
  margin-top: var(--lg);
  padding-top: var(--md);
  border-top: 1px solid var(--deep-rule);
  color: var(--on-deep-muted);
  font-size: 14px;
}

/* Screens from the app. The screen's own ground sets it apart by tone. */
.phone { margin: 0; width: min(var(--phone), 100%); }
.phone img { border-radius: var(--r-sheet); }

/* One panel per feature. */
.panel { background: var(--panel); border-radius: var(--r-panel); }
.feature {
  margin-top: var(--md);
  padding: var(--lg);
  display: grid;
  gap: var(--lg);
}
.feature-text h2 { margin-bottom: var(--mid); }
.feature-text p { color: var(--muted); max-width: 36em; }

/* SectionTitle: titleSmall in muted, then the panel. */
.section-title {
  margin: var(--lg) 0 0;
  padding: var(--lg) var(--xs) var(--sm);
  font-size: 14px; line-height: 1.35; font-weight: 600; color: var(--muted);
  letter-spacing: 0;
}

/* Rows with an IconTile, like NavRow without the arrow. */
.rows { padding: var(--xs) 0; }
.row { display: flex; gap: var(--md); padding: var(--md) var(--md) 0; }
.row-text { flex: 1; padding-bottom: var(--md); }
.row:not(:last-child) .row-text { border-bottom: 1px solid var(--rule); }
.row-text p { margin-top: var(--xs); color: var(--muted); font-size: 14px; }
.icon-tile {
  flex: none;
  width: var(--tile); height: var(--tile);
  border-radius: var(--r-tile);
  background: var(--brand-tint);
  display: grid; place-items: center;
}
.icon-tile svg { fill: var(--brand); }

/* Footer: footnote size, muted. */
.foot { margin-top: calc(2 * var(--touch)); padding: var(--lg) 0 var(--touch); color: var(--muted); font-size: 13px; }
.foot .wordmark { min-height: 0; font-size: 16px; margin-bottom: var(--xs); }

/* Page not found */
.missing { padding: var(--lg) 0 calc(2 * var(--touch)); }
.missing p { margin: var(--md) 0 var(--lg); color: var(--muted); }

/* Main action: solid brand blue, fully round. */
.button {
  display: inline-flex; align-items: center; min-height: var(--touch);
  padding: 0 var(--lg); border-radius: var(--r-pill);
  background: var(--brand); color: var(--on-deep);
  font-weight: 600; text-decoration: none;
}

/* Wider screens: words on the left, the screen on the right. */
@media (min-width: 800px) {
  .lead, .feature {
    grid-template-columns: 1fr var(--phone);
    align-items: center;
    gap: var(--touch);
    padding: var(--touch);
  }
  .rows { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--md); }
  .row:nth-last-child(2):nth-child(odd) .row-text { border-bottom: 0; }
}
