/* siteasaan.app — the app's denim and brick, on paper (lib/src/presentation/core/styles). */

@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("fonts/barlow-400.woff") format("woff"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("fonts/barlow-500.woff") format("woff"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("fonts/barlow-600.woff") format("woff"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-display: swap; src: url("fonts/barlow-700.woff") format("woff"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 400; font-display: swap; src: url("fonts/barlow-condensed-400.woff") format("woff"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("fonts/barlow-condensed-600.woff") format("woff"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-700.woff") format("woff"); }

:root {
  --paper: #faf9f6;
  --sand: #e6e1d7;
  --ink: #1c2330;
  --ink2: #3d4350;
  --muted: #6d7280;
  --faint: #8e929c;
  --hair: rgba(28, 35, 48, .12);
  --frame: rgba(28, 35, 48, .16);
  --mark: rgba(28, 35, 48, .55);
  --denim: #34598f;
  --denim-deep: #1f3355;
  --denim-tint: #dde6f3;
  --tan: #c79a64;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --head: "Barlow Condensed", "Barlow", system-ui, sans-serif;
  --gutter: 20px;
  --measure: 720px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--body);
}

a { color: var(--denim); text-underline-offset: 3px; }
a:hover { color: var(--denim-deep); }
:focus-visible { outline: 2px solid var(--denim); outline-offset: 3px; }

.wrap { max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.wide { max-width: calc(1040px + 2 * var(--gutter)); }

/* ── the header: the tile and the wordmark, as the welcome screen sets them ── */

.top { border-bottom: 1px solid var(--hair); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.lockup { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.lockup img { width: 32px; height: 32px; display: block; }
.wordmark { font: 400 22px/1 var(--head); letter-spacing: .08em; }
.wordmark b { font-weight: 700; }
.top nav { display: flex; gap: 18px; font: 600 14px/1 var(--body); }
.top nav a { color: var(--ink2); text-decoration: none; padding: 10px 0; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

/* ── type ── */

h1, h2, h3 { font-family: var(--head); font-weight: 600; color: var(--ink); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(38px, 7vw, 56px); line-height: 1.04; letter-spacing: -.005em; }
h2 { font-size: 28px; line-height: 1.1; }
h3 { font-size: 20px; line-height: 1.2; }
p, li { text-wrap: pretty; }
p { margin: 0; }
.kicker { font: 700 12px/1.3 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); }
.lead { font-size: 18px; line-height: 1.5; color: var(--ink2); font-weight: 500; }
.small { font-size: 14px; color: var(--ink2); font-weight: 500; }

/* ── the blueprint frame: a hairline with registration marks at its corners ── */

.blueprint { position: relative; border: 1px solid var(--frame); }
.blueprint > i.c { position: absolute; width: 11px; height: 11px; pointer-events: none; }
.blueprint > i.c::before, .blueprint > i.c::after { content: ""; position: absolute; background: var(--mark); }
.blueprint > i.c::before { left: 5px; top: 0; width: 1px; height: 11px; }
.blueprint > i.c::after { left: 0; top: 5px; width: 11px; height: 1px; }
.blueprint > i.tl { left: -6px; top: -6px; }
.blueprint > i.tr { right: -6px; top: -6px; }
.blueprint > i.bl { left: -6px; bottom: -6px; }
.blueprint > i.br { right: -6px; bottom: -6px; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 26px;
  background: var(--denim); border-color: var(--denim); color: var(--paper);
  font: 600 19px/1 var(--head); letter-spacing: .02em; text-decoration: none;
}
.button:hover { background: var(--denim-deep); color: var(--paper); }
.button svg { width: 20px; height: 20px; flex: none; }

/* ── home ── */

.hero { padding: 56px 0 48px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; }
.hero-tile { width: 232px; height: 232px; display: none; }
@media (min-width: 900px) { .hero-tile { display: block; } }
.hero .kicker { margin-bottom: 14px; }
.hero h1 { max-width: 13em; }
.hero .lead { margin-top: 18px; max-width: 34em; }
.hero .cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 30px; }

.course { display: flex; gap: 4px; margin-top: 40px; }
.course i { display: block; width: 56px; height: 26px; background: var(--denim); }
.course i.free { background: none; border: 1px dashed rgba(28, 35, 48, .45); }

.section { padding: 48px 0; border-top: 1px solid var(--hair); }
.section > .wrap > h2 { margin-bottom: 8px; }
.section > .wrap > .lead { margin-bottom: 28px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card { padding: 20px 20px 22px; background: var(--paper); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink2); font-weight: 500; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.plan { padding: 22px; }
.plan-label {
  display: inline-flex; align-items: center; height: 40px; padding: 0 12px;
  box-shadow: inset 0 0 0 1.5px var(--ink);
  font: 600 24px/1 var(--head); letter-spacing: .1em; text-transform: uppercase;
}
.checks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 26px; color: var(--ink2); font-weight: 500; }
.checks li::before {
  content: ""; position: absolute; left: 1px; top: 6px; width: 12px; height: 6px;
  border-left: 1.5px solid var(--denim); border-bottom: 1.5px solid var(--denim);
  transform: rotate(-45deg);
}
.plan .small { margin-top: 16px; }

.urdu { font-family: "Noto Nastaliq Urdu", "Noto Naskh Arabic", serif; font-size: 1.05em; line-height: 1; }

/* ── reading pages: privacy, delete, terms ── */

.page { padding: 44px 0 56px; }
.page h1 { font-size: clamp(34px, 6vw, 44px); }
.page .updated { margin-top: 10px; color: var(--muted); font-size: 14px; font-weight: 500; }
.page .intro { margin-top: 18px; }
.page section { padding: 22px 0; border-bottom: 1px solid var(--hair); }
.page section:last-of-type { border-bottom: 0; }
.page h2 { font-size: 24px; margin-bottom: 10px; }
.page h3 { font-size: 19px; margin: 16px 0 6px; }
.page p, .page li { color: var(--ink2); }
.page p + p, .page ul + p, .page ol + p { margin-top: 12px; }
.page ul, .page ol { margin: 10px 0 0; padding-left: 22px; }
.page li + li { margin-top: 6px; }
.page strong { color: var(--ink); font-weight: 600; }

.summary { margin-top: 28px; padding: 6px 20px; }
.summary h2 { font-size: 20px; margin: 16px 0 6px; }
.summary p { padding-bottom: 14px; border-bottom: 1px solid var(--hair); }
.summary p:last-child { border-bottom: 0; }

.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps li { counter-increment: step; position: relative; padding-left: 40px; min-height: 28px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -1px;
  width: 28px; height: 28px; display: grid; place-items: center;
  background: var(--denim-tint); color: var(--denim-deep); font: 700 15px/1 var(--head);
}

.facts { display: grid; gap: 0; margin-top: 16px; }
.facts > div { display: grid; grid-template-columns: minmax(120px, 170px) 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--hair); }
.facts > div:last-child { border-bottom: 1px solid var(--hair); }
.facts dt { font: 700 12px/1.6 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.facts dd { margin: 0; color: var(--ink2); }

/* ── the foot ── */

.foot { border-top: 1px solid var(--hair); padding: 28px 0 40px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; font: 600 14px/1.4 var(--body); }
.foot nav a { color: var(--ink2); }
.foot p { color: var(--muted); font-size: 14px; font-weight: 500; }

@media (max-width: 560px) {
  .top nav { display: none; }
  .hero { padding-top: 40px; }
  .facts > div { grid-template-columns: 1fr; gap: 4px; }
  .button { width: 100%; }
}
