/* The public landing page at `/`. It is the first thing a visitor without an
   account sees, so it has to say what Yawmi is in a few seconds.

   Everything here reads the tokens in styles.css: same paper ground, same ink,
   same spacing and radii, the app's own buttons. No new tokens. The one thing
   added is the heading face: Baloo Bhaijaan 2 is already in public/fonts but
   styles.css never declares it, so it is declared here and applied only inside
   `.home`. Class names are prefixed `home-` so nothing collides with the app's
   own (.bar, .sheet, .row, .report ...). */

@font-face {
  font-family: "Baloo Bhaijaan 2";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/baloo-bhaijaan-2-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1,
    U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF,
    U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Baloo Bhaijaan 2";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/baloo-bhaijaan-2-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

.home {
  --font-heading: "Baloo Bhaijaan 2", var(--font-body);
  /* styles.css reserves room for the app's fixed dock; this page has none. */
  padding-bottom: 0;
}
:where(.home) :where(p, ol, ul) { margin: 0; padding: 0; }
:where(.home) :where(ol, ul) { list-style: none; }

.home-top, .home main, .home-foot {
  max-width: 1040px;
  margin: 0 auto;
  padding-inline: var(--space-4);
}

/* Top line: the mark, and the way in for someone who already has an account. */
.home-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-4);
}
.home-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--tap);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
}
.home-brand img { display: block; border-radius: var(--radius-sm); }
.home-login {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}
.home-brand:focus-visible, .home-login:focus-visible, .home-foot a:focus-visible {
  outline: 2px solid var(--attn);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Hero ---------------------------------------------------------------------- */
.home-hero {
  display: flex;
  flex-direction: column-reverse;
  gap: var(--space-4);
  padding-block: var(--space-6) var(--space-8);
}
.home h1 {
  font-size: clamp(40px, 11vw, 76px);
  font-weight: 700;
  line-height: 1.25;
}
/* Emphasis is an underline in the pen, as in the app. */
.home h1 u {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 5px;
  text-underline-offset: 12px;
  white-space: nowrap;
}
.home-lead {
  margin-top: var(--space-6);
  font-size: 19px;
  line-height: 1.9;
  max-width: 34em;
}
.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.home-actions .btn { min-height: 54px; padding-inline: var(--space-6); font-size: 1.05rem; }
/* The brand violet, not the app's ink: on the page that sells Yawmi the main
   button carries the logo's colour. --bg on --accent is 5.5:1 light, 7.7:1 dark. */
.home-actions .btn--primary { flex: 1 1 100%; background: var(--accent); color: var(--bg); }
.home-actions .btn--ghost { flex: 1 1 100%; }

.home-hero__art { display: flex; justify-content: center; }
/* The app's drawings: stroke-only, round, coloured by the pen. */
.home .drawing { display: block; overflow: visible; color: var(--ink); width: 170px; max-width: 50%; }
.home .drawing path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.home .drawing .kb { stroke: var(--k-blue); }
.home .drawing .ky { stroke: var(--k-yellow); }
.home .drawing .ko { stroke: var(--k-orange); }
.home .drawing .kbr { stroke: var(--k-brown); }

/* Sections ------------------------------------------------------------------ */
.home-section { padding-block: var(--space-8); border-top: 1px dashed var(--line); }
.home h2 { font-size: clamp(28px, 6vw, 38px); font-weight: 700; }

.home-steps {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-6);
}
.home-steps li { display: flex; align-items: baseline; gap: var(--space-4); }
.home-steps__n {
  flex: 0 0 auto;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 44px;
  line-height: 1;
  min-width: 34px;
  text-align: center;
  text-decoration: underline;
  text-decoration-thickness: 4px;
  text-underline-offset: 8px;
}
.home-steps li:nth-child(1) .home-steps__n { text-decoration-color: var(--k-blue); }
.home-steps li:nth-child(2) .home-steps__n { text-decoration-color: var(--k-red); }
.home-steps li:nth-child(3) .home-steps__n { text-decoration-color: var(--k-yellow); }
.home-steps li:nth-child(4) .home-steps__n { text-decoration-color: var(--k-green); }
.home-steps p { font-size: 18px; }

.home-why {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-6);
}
.home-why h3 { font-size: 23px; font-weight: 700; }
.home-why p { font-size: 17px; margin-top: var(--space-1); }


.home-foot {
  padding-block: var(--space-6) var(--space-8);
  border-top: 1px dashed var(--line);
  text-align: center;
  font-size: 15px;
}
.home-foot a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

/* A long document on the same paper: the privacy notice. */
.home-doc { max-width: 760px; padding-block: var(--space-6) var(--space-8); }
.home-doc h1 { font-size: clamp(32px, 8vw, 48px); }
.home-doc__meta { margin-top: var(--space-2); color: var(--ink-soft); font-size: 15px; }
.home-doc section { padding-block: var(--space-6); border-top: 1px dashed var(--line); margin-top: var(--space-6); }
.home-doc h2 { font-size: clamp(22px, 5vw, 28px); }
.home-doc h3 { font-size: 19px; font-weight: 700; margin-top: var(--space-6); }
.home-doc p, .home-doc li { font-size: 17px; line-height: 1.9; }
.home-doc p { margin-top: var(--space-3); }
.home-doc ul, .home-doc ol { margin-top: var(--space-3); padding-inline-start: 1.2em; display: grid; gap: var(--space-2); }
.home-doc ul { list-style: disc; }
.home-doc ol { list-style: arabic-indic; }
.home-doc a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Wider than a phone -------------------------------------------------------- */
@media (min-width: 560px) {
  .home-actions .btn--primary, .home-actions .btn--ghost { flex: 0 0 auto; }
  .home-why { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .home-top, .home main, .home-foot { padding-inline: var(--space-8); }
  .home-hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
    padding-block: 64px 72px;
  }
  .home-hero__text { flex: 1 1 auto; }
  .home-hero__art { flex: 0 0 300px; }
  .home .drawing { width: 300px; max-width: 100%; }
  .home-lead { font-size: 21px; }
  .home-section { padding-block: 56px; }
  .home-steps { grid-template-columns: repeat(4, 1fr); gap: var(--space-8); }
  .home-steps li { flex-direction: column; align-items: flex-start; gap: var(--space-4); }
  .home-why { gap: var(--space-8); }
}

/* Nothing on this page moves by itself. The app's buttons carry a short press
   transition from styles.css; a visitor who asked for less motion gets none. */
@media (prefers-reduced-motion: reduce) {
  .home a.btn { transition: none; }
}

/* A sample report, set like a quotation, for the owner reading the page. */
.home-sample { margin: var(--space-6) 0 0; }
.home-sample blockquote {
  margin: 0;
  padding: var(--space-4);
  border-inline-start: 4px solid var(--accent);
  border-radius: var(--radius-sm, 8px);
  background: var(--surface, rgba(0, 0, 0, 0.04));
}
.home-sample blockquote p { font-size: 19px; line-height: 1.9; }
.home-sample figcaption { margin-top: var(--space-2); font-size: 15px; color: var(--ink-soft, inherit); opacity: 0.8; }
.home-cta .home-lead { margin-top: var(--space-3); }
