/* Fonts for the web app, served from this site (the page policy allows fonts from 'self' only). All four are variable fonts under the SIL Open
   Font License 1.1 (texts in /fonts/LICENSES.txt). A font file is fetched only when the page uses a glyph from its unicode-range, so an English
   visitor downloads Inter (48 KB) and an Urdu visitor Noto Nastaliq Urdu (239 KB) on top of it.
     English, Spanish : Inter
     Urdu             : Noto Nastaliq Urdu (the traditional Nastaliq hand, the way Urdu is read in print and on phones)
     Hindi            : Noto Sans Devanagari
     Bangla           : Noto Sans Bengali */
@font-face { font-family: "LPG Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/inter-latin-wght-normal.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; }
@font-face { font-family: "LPG Nastaliq"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/noto-nastaliq-urdu-arabic-wght-normal.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: "LPG Devanagari"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/noto-sans-devanagari-devanagari-wght-normal.woff2") format("woff2");
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "LPG Bengali"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/noto-sans-bengali-bengali-wght-normal.woff2") format("woff2");
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1; }

/* Latin letters and digits are Inter in every language, so brand names, numbers and prices look the same everywhere; the script's own font
   takes over for its own letters. */
body, html[lang="en"] body, html[lang="es"] body { font-family: "LPG Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
html[lang="hi"] body { font-family: "LPG Inter", "LPG Devanagari", system-ui, "Nirmala UI", "Segoe UI", sans-serif; line-height: 1.7; }
html[lang="bn"] body { font-family: "LPG Inter", "LPG Bengali", system-ui, "Nirmala UI", "Segoe UI", sans-serif; line-height: 1.7; }
html[lang="ur"] body { font-family: "LPG Inter", "LPG Nastaliq", "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Noto Naskh Arabic", system-ui, "Segoe UI", Tahoma, sans-serif; line-height: 2.1; }
button, input, textarea, select { font-family: inherit; }

/* Nastaliq is written on a slanting baseline with tall, deep strokes: it needs a little more size and a lot more line height, or the
   letters collide and get clipped by tight headings, buttons and badges. */
html[lang="ur"] body { font-size: 16.5px; }
html[lang="ur"] body.landing { font-size: 17.5px; }
html[lang="ur"] h1, html[lang="ur"] h2, html[lang="ur"] h3, html[lang="ur"] h4 { line-height: 1.85; }
html[lang="ur"] .btn, html[lang="ur"] button, html[lang="ur"] .pill, html[lang="ur"] .chip, html[lang="ur"] .tag, html[lang="ur"] .langpick summary { line-height: 1.9; }
html[lang="ur"] .hero h1 { line-height: 1.7; }
html[lang="ur"] table.t th, html[lang="ur"] .nav .wrap > ul a, html[lang="ur"] .side a, html[lang="ur"] .bottom a { line-height: 1.8; }
html[lang="ur"] input, html[lang="ur"] textarea { line-height: 1.6; }
html[lang="hi"] h1, html[lang="hi"] h2, html[lang="hi"] h3, html[lang="bn"] h1, html[lang="bn"] h2, html[lang="bn"] h3 { line-height: 1.45; }

/* Nastaliq letters hang below and beyond the line box. Anything that crops to the box cuts them off, so for Urdu:
   - the highlighted words in the hero use plain colour, not a gradient clipped to the text box (that dropped the first letter of
     "کسی بھی اسکرین سے");
   - one-line labels that end in an ellipsis get room above and below, so no stroke is shaved off. */
html[lang="ur"] .hero h1 em { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--lime); padding-inline: .2em; }
html[lang="ur"] .rank-name, html[lang="ur"] .item.recent .body strong { padding-block: .4em; }
html[lang="ur"] .tile, html[lang="ur"] .step, html[lang="ur"] .faq summary, html[lang="ur"] .faq p { line-height: 2; }

/* Small print is where Nastaliq suffers most: its strokes need room. Nothing in Urdu is set below 15.5 px (the Latin layout uses 12 to 14 px for
   captions, hints and labels), and it never gets smaller than 90% of what it sits in. */
html[lang="ur"] body :is(.sub, .fine, .sample, .muted, small, .hint, .safe, .alert, .why-google, .hero-proof, .l2, .kv dt, .legend, .pill, .chip, .tag, label,
    .ticks li, .faq p, .step p, .tile p, .lead, .lede, .nav .wrap > ul a, .btn, .langpick summary, .langpick li a, table.t td, table.t th, .side a, .bottom a,
    .trust small, .eyebrow, .bar span, .kp small) { font-size: max(15.5px, .9em); }
html[lang="ur"] .btn.small { font-size: 15px; }
html[lang="ur"] .bottom a { font-size: 13.5px; }
html[lang="ur"] .fastest { font-size: 12.5px; line-height: 1.7; padding: 1px 12px 3px; top: -15px; }
html[lang="ur"] .google-wrap { margin-top: 16px; }

/* Tracking and capitals are Latin ideas. Letter-spacing pulls apart the joined letters of Urdu and the conjuncts of Hindi and Bangla, and negative
   tracking (the headings use it) makes them collide. Headings are given the line height their script needs, and it must win over the
   page's tight Latin heading rules. */
html[lang="ur"] *, html[lang="hi"] *, html[lang="bn"] * { letter-spacing: normal !important; text-transform: none !important; }
html[lang="ur"] body :is(h1, h2, h3, h4) { line-height: 2.2 !important; }
html[lang="ur"] body .hero h1 { line-height: 1.6 !important; }
html[lang="hi"] body :is(h1, h2, h3, h4), html[lang="bn"] body :is(h1, h2, h3, h4) { line-height: 1.45 !important; }
html[lang="hi"] body .hero h1, html[lang="bn"] body .hero h1 { line-height: 1.3 !important; }
html[lang="ur"] body .eyebrow { font-size: 15.5px; }

/* Big Urdu headings: Nastaliq is far taller than Latin at the same size, so the section headings come down a size and their lines get room. */
html[lang="ur"] .landing h2.title, html[lang="ur"] .cta h2 { font-size: clamp(24px, 3.4vw, 32px); }
html[lang="ur"] .hero h1 { font-size: clamp(30px, 5.2vw, 50px); }
html[lang="ur"] .signin-card h2 { font-size: 22px; }
html[lang="ur"] .tile h3, html[lang="ur"] .step h3 { font-size: 19px; }
html[lang="ur"] p, html[lang="ur"] li { line-height: 2.2; }
/* the sample screen in the landing page's "at a glance" block is a drawing of the app, with small type of its own: same rule, a little lower */
html[lang="ur"] body .preview :is(b, span, small, strong, i) { font-size: max(13.5px, .9em); }
html[lang="ur"] body .btn.small { font-size: 15px; }
html[lang="ur"] body .fastest { font-size: 13.5px; line-height: 1.8; top: -17px; }
html[lang="ur"] body .bottom a { font-size: 13.5px; }
html[lang="ur"] body :is(.trust span, .trust small, .compare span, .compare li, footer span, footer a, footer nav a, .linklike.quiet, .contact small, .contact strong, .hero-proof span) { font-size: max(15.5px, .9em); }

/* The signed-in screens: the plan strip and plan card, key/value lists, rows, legends, chips, tiles and tabs */
html[lang="ur"] body :is(.ps-date, .ps-pitch, .ps-plan, .pc-math .lbl, .pc-math small, .pc-steps li, .pc-body p, .kv dt, .kv dd, .item .l1, .item .l2, .empty,
    .legend span, .donut-legend span, .rank-name, .rank .sub, .live-label, .live-delta, .insights li, .stock-type small, .seg a, .quick a, .dash-date,
    .dash-pill, .msg, .menu .sub, .card .sub, .alert span, .welcome-steps li, .stock-type strong) { font-size: max(15px, .9em); }
html[lang="ur"] body :is(.pc-body h3, .card h3, .sub-title) { font-size: 16px; }

