/* LinkHive landing page. Tokens mirror DESIGN.md and lib/core/theme/app_colors.dart. */

/* Fonts: bundled from assets/fonts (OFL, licenses next to the files). Script fonts load only when their characters appear. */
@font-face { font-family: "Anek Latin"; src: url("../fonts/AnekLatin-Medium.woff2") format("woff2"), url("../fonts/AnekLatin-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Anek Latin"; src: url("../fonts/AnekLatin-SemiBold.woff2") format("woff2"), url("../fonts/AnekLatin-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Anek Latin"; src: url("../fonts/AnekLatin-Bold.woff2") format("woff2"), url("../fonts/AnekLatin-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Anek Latin"; src: url("../fonts/AnekLatin-ExtraBold.woff2") format("woff2"), url("../fonts/AnekLatin-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Anek Devanagari"; src: url("../fonts/AnekDevanagari-SemiBold.woff2") format("woff2"), url("../fonts/AnekDevanagari-SemiBold.ttf") format("truetype"); font-weight: 500 800; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CFF, U+A8E0-A8FF; }
@font-face { font-family: "Anek Gujarati"; src: url("../fonts/AnekGujarati-SemiBold.woff2") format("woff2"), url("../fonts/AnekGujarati-SemiBold.ttf") format("truetype"); font-weight: 500 800; font-display: swap; unicode-range: U+0A80-0AFF; }
@font-face { font-family: "Readex Pro"; src: url("../fonts/ReadexPro-SemiBold.woff2") format("woff2"), url("../fonts/ReadexPro-SemiBold.ttf") format("truetype"); font-weight: 500 800; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }

:root {
  --ink: #1E1E1E; --page: #ECE2D5; --bg: #FFFFFF; --surface: #FFFFFF; --muted: #F3F4F6;
  --text: #1E1E1E; --text2: #4B5563; --text3: #9CA3AF; --border: #1E1E1E;
  --primary: #1E1E1E; --on-primary: #FFFFFF; --frame: #1E1E1E; --band: #1E1E1E;
  --mint: #B5E4CA; --peach: #FFDAB9; --sky: #BBE4FB; --rose: #FFD1DC; --lemon: #FDF0A6; --appicon: #FAE5D7;
  --green: #D1FADF; --orange: #FEF0C7; --blue: #D1E9FF; --return: #F4EBFF;
  --success: #22C55E; --warning: #F59E0B; --error: #EF4444; --scrim: rgba(30,30,30,.45);
  --host: #2563EB; --wall: #BBE4FB; /* home widget: link blue (widget_colors.xml) and the wallpaper behind it */
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #0B0B0B; --bg: #121212; --surface: #1E1E1E; --muted: #2C2C2C;
    --text: #E5E7EB; --text2: #A3A3A3; --text3: #737373; --border: #E5E7EB;
    --primary: #FFFFFF; --on-primary: #1E1E1E; --frame: #3A3A3A; --scrim: rgba(0,0,0,.6);
    --host: #93C5FD; --wall: #24323B;
    color-scheme: dark;
  }
}
:root[data-theme="dark"], .dk {
  --page: #0B0B0B; --bg: #121212; --surface: #1E1E1E; --muted: #2C2C2C;
  --text: #E5E7EB; --text2: #A3A3A3; --text3: #737373; --border: #E5E7EB;
  --primary: #FFFFFF; --on-primary: #1E1E1E; --frame: #3A3A3A; --scrim: rgba(0,0,0,.6);
  --host: #93C5FD; --wall: #24323B;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--page); color: var(--text);
  font-family: "Anek Latin", "Anek Devanagari", "Anek Gujarati", "Readex Pro", system-ui, sans-serif;
  font-weight: 500; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--success); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--surface); border: 2px solid var(--border); border-radius: 100px; padding: 8px 16px; font-weight: 700; }
.skip:focus { left: 16px; }
svg.i { width: 22px; height: 22px; fill: currentColor; flex: none; }
svg.i.sm { width: 18px; height: 18px; }
svg.i.xs { width: 14px; height: 14px; }
svg.i.lg { width: 28px; height: 28px; }

/* ── Layout ─────────────────────────────────────────────── */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
section.s { padding: 24px 0 88px; }
section[id] { scroll-margin-top: 84px; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--text2); margin-bottom: 12px; }
h2.h { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; letter-spacing: -1.4px; line-height: 1.05; max-width: 760px; }
.lead { font-size: 18px; line-height: 1.55; color: var(--text2); max-width: 620px; margin-top: 14px; }
.hl { background: var(--return); color: var(--ink); border: 2px solid var(--ink); border-radius: 12px; padding: 0 10px; box-shadow: 3px 3px 0 var(--ink); display: inline-block; transform: rotate(-1.5deg); }

/* Buttons (NeoBrutalistButton) */
.btn { height: 52px; padding: 0 24px; border-radius: 100px; border: 2px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 16px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 4px 4px 0 var(--mint); text-decoration: none; cursor: pointer; transition: transform .1s ease-out, box-shadow .1s ease-out; white-space: nowrap; }
.btn.primary { background: var(--primary); color: var(--on-primary); box-shadow: 4px 4px 0 var(--success); }
.btn:active { transform: translate(4px, 4px); box-shadow: none; }
.btn:disabled { cursor: default; }
.btn.soon:active { transform: none; box-shadow: 4px 4px 0 var(--success); }
.btn.sm { height: 44px; padding: 0 18px; font-size: 14px; }
.btn.icon { width: 44px; padding: 0; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.cta-note { font-size: 13px; font-weight: 600; color: var(--text2); margin-top: 14px; }

/* Top bar */
.bar { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 2px solid var(--border); }
.bar .wrap { height: 68px; display: flex; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; letter-spacing: -.6px; text-decoration: none; }
.logo .mk { width: 38px; height: 38px; border-radius: 12px; border: 2px solid var(--ink); background: var(--appicon); display: grid; place-items: center; color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.bar nav { display: flex; gap: 22px; margin-left: auto; }
.bar nav a { text-decoration: none; font-size: 15px; font-weight: 700; color: var(--text2); }
.bar nav a:hover { color: var(--text); }
.bar .acts { display: flex; gap: 12px; align-items: center; }
@media (max-width: 820px) { .bar nav { display: none; } .bar .acts { margin-left: auto; } }

/* Hero */
.hero { padding: 72px 0 96px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 72px); font-weight: 800; letter-spacing: -2.4px; line-height: 1; }
.hero .sub { font-size: 19px; line-height: 1.55; color: var(--text2); max-width: 540px; margin-top: 22px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; list-style: none; }
.fact { height: 32px; padding: 0 12px; border-radius: 100px; border: 2px solid var(--border); background: var(--surface); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.fact.lang { background: var(--blue); color: var(--ink); border-color: var(--ink); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero .art { position: relative; justify-self: center; }
.hero .notif { position: absolute; left: -96px; top: 120px; width: 250px; z-index: 3; transform: rotate(-3deg); }
.hero .stamp { position: absolute; right: -34px; top: 150px; z-index: 3; transform: rotate(6deg); }
@media (max-width: 860px) {
  .hero { padding-top: 48px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero .notif { left: -20px; top: 40px; }
  .hero .stamp { right: -6px; }
}
.ntf { background: var(--surface); border: 2px solid var(--border); border-radius: 16px; padding: 12px 14px; box-shadow: 4px 4px 0 var(--lemon); display: flex; gap: 10px; }
.ntf .ap { width: 32px; height: 32px; border-radius: 10px; background: var(--appicon); border: 2px solid var(--ink); display: grid; place-items: center; color: var(--ink); flex: none; }
.ntf small { font-size: 11px; font-weight: 700; color: var(--text3); letter-spacing: .3px; display: block; }
.ntf b { font-size: 14px; font-weight: 800; display: block; margin-top: 1px; }
.ntf span { font-size: 13px; color: var(--text2); display: block; line-height: 1.35; margin-top: 2px; }
.stampchip { background: var(--return); color: var(--ink); border: 2px solid var(--ink); border-radius: 100px; padding: 8px 16px; font-size: 18px; font-weight: 800; box-shadow: 4px 4px 0 var(--ink); display: inline-flex; gap: 6px; align-items: center; }

/* Problem */
.graves { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.grave { background: var(--surface); border: 2px solid var(--border); border-radius: 16px; padding: 22px; box-shadow: 4px 4px 0 var(--rose); }
.grave .top { display: flex; gap: 12px; align-items: center; }
.av { width: 40px; height: 40px; border-radius: 12px; border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 800; color: var(--ink); flex: none; }
.grave h3 { font-size: 20px; font-weight: 700; letter-spacing: -.3px; }
.grave dl { margin-top: 18px; display: grid; gap: 8px; }
.grave dl div { display: flex; justify-content: space-between; font-size: 15px; font-weight: 600; border-top: 2px solid var(--muted); padding-top: 8px; }
.grave dd.no { color: var(--error); font-weight: 800; }
.grave dd.yes { color: var(--success); font-weight: 800; }
.fix { margin-top: 28px; background: var(--return); color: var(--ink); border: 2px solid var(--ink); border-radius: 16px; padding: 18px 22px; display: flex; gap: 14px; align-items: center; font-size: 18px; font-weight: 700; box-shadow: 4px 4px 0 var(--ink); }
@media (max-width: 860px) { .graves { grid-template-columns: 1fr; } }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; list-style: none; }
.step { background: var(--surface); border: 2px solid var(--border); border-radius: 20px; padding: 24px 24px 0; overflow: hidden; display: flex; flex-direction: column; }
.step .n { width: 36px; height: 36px; border-radius: 10px; border: 2px solid var(--ink); background: var(--lemon); color: var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 16px; }
.step h3 { font-size: 22px; font-weight: 800; letter-spacing: -.5px; margin-top: 16px; }
.step p { font-size: 15px; line-height: 1.5; color: var(--text2); margin-top: 6px; }
.step .crop { margin-top: 24px; height: 300px; overflow: hidden; display: flex; justify-content: center; }
.step .crop .phone { zoom: .588; border-bottom: 0; border-radius: 46px 46px 0 0; box-shadow: none; }
.step .crop.end { align-items: flex-end; }
.step .crop.end .phone { border-bottom: 4px solid var(--frame); border-top: 0; border-radius: 0 0 46px 46px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Features */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.feat { background: var(--surface); border: 2px solid var(--border); border-radius: 16px; padding: 24px; }
.feat .ic { width: 48px; height: 48px; border-radius: 14px; border: 2px solid var(--ink); display: grid; place-items: center; color: var(--ink); }
.feat h3 { font-size: 20px; font-weight: 800; letter-spacing: -.4px; margin-top: 18px; }
.feat p { font-size: 15px; line-height: 1.5; color: var(--text2); margin-top: 6px; }
.feat.ret { background: var(--return); }
.feat.ret h3, .feat.ret p { color: var(--ink); }
.sh-mint { box-shadow: 4px 4px 0 var(--mint); } .sh-peach { box-shadow: 4px 4px 0 var(--peach); }
.sh-sky { box-shadow: 4px 4px 0 var(--sky); } .sh-rose { box-shadow: 4px 4px 0 var(--rose); }
.sh-lemon { box-shadow: 4px 4px 0 var(--lemon); } .sh-ink { box-shadow: 4px 4px 0 var(--ink); }
.f-blue { background: var(--blue); } .f-green { background: var(--green); } .f-orange { background: var(--orange); }
.f-purple { background: var(--return); } .f-rose { background: var(--rose); } .f-lemon { background: var(--lemon); }
.f-mint { background: var(--mint); } .f-sky { background: var(--sky); } .f-peach { background: var(--peach); } .f-white { background: #fff; }
@media (max-width: 960px) { .feats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .feats { grid-template-columns: 1fr; } }

/* Screens strip */
.strip { display: flex; gap: 36px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 44px 16px 28px; margin: 0 -16px; scrollbar-width: thin; }
.strip figure { flex: none; scroll-snap-align: center; }
.strip figcaption { text-align: center; font-size: 15px; font-weight: 700; margin-top: 18px; }
.strip figcaption span { display: block; font-size: 13px; color: var(--text2); font-weight: 600; margin-top: 2px; }

/* Use cases */
.uses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.use { background: var(--surface); border: 2px solid var(--border); border-radius: 16px; padding: 20px; }
.use h3 { font-size: 18px; font-weight: 800; letter-spacing: -.3px; }
.use p { font-size: 15px; color: var(--text2); line-height: 1.5; margin-top: 6px; }
.use .ex { margin-top: 14px; border: 2px solid var(--border); border-radius: 12px; padding: 10px 12px; display: flex; gap: 10px; align-items: center; background: var(--bg); }
.use .ex .av { width: 30px; height: 30px; border-radius: 8px; font-size: 13px; border: 0; }
.use .ex div { min-width: 0; }
.use .ex b { font-size: 13px; font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.use .ex small { font-size: 12px; color: var(--text2); font-weight: 600; }
@media (max-width: 960px) { .uses { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .uses { grid-template-columns: 1fr; } }

/* Under the hood */
.hood { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; margin-top: 44px; align-items: start; }
.diagram { background: var(--surface); border: 2px solid var(--border); border-radius: 20px; padding: 28px; box-shadow: 4px 4px 0 var(--sky); }
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 10px; align-items: center; }
.flow2 { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.node { border: 2px solid var(--border); border-radius: 12px; padding: 12px; text-align: center; background: var(--bg); }
.node b { display: block; font-size: 15px; font-weight: 800; }
.node small { display: block; font-size: 12px; color: var(--text2); font-weight: 600; margin-top: 2px; line-height: 1.3; }
.node.k { background: var(--lemon); color: var(--ink); border-color: var(--ink); }
.node.k small { color: var(--ink); }
.node.half { max-width: 50%; }
.arr { font-size: 22px; font-weight: 800; color: var(--text2); text-align: center; }
.down { font-size: 22px; font-weight: 800; color: var(--text2); line-height: 1; margin: 6px 0; }
.down.r { text-align: right; padding-right: 15%; }
.down.l { text-align: left; padding-left: 15%; }
.legendl { margin-top: 18px; font-size: 13px; color: var(--text2); line-height: 1.6; }
.hi-list { display: grid; gap: 14px; }
.hi-item { background: var(--surface); border: 2px solid var(--border); border-radius: 16px; padding: 16px 18px; }
.hi-item h3 { font-size: 16px; font-weight: 800; }
.hi-item p { font-size: 14px; color: var(--text2); line-height: 1.5; margin-top: 4px; }
.tech { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; list-style: none; }
.tech li { height: 34px; padding: 0 14px; border-radius: 100px; border: 2px solid var(--border); background: var(--surface); font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; }
@media (max-width: 960px) { .hood { grid-template-columns: 1fr; } }
@media (max-width: 620px) {
  .flow, .flow2 { grid-template-columns: 1fr; }
  .arr { transform: rotate(90deg); }
  .node.half { max-width: none; }
  .down.r, .down.l { text-align: center; padding: 0; }
}

/* Maker */
.maker { background: var(--surface); border: 2px solid var(--border); border-radius: 20px; padding: 28px; display: flex; gap: 24px; align-items: center; box-shadow: 4px 4px 0 var(--peach); margin-top: 32px; flex-wrap: wrap; }
.maker .ph { width: 88px; height: 88px; border-radius: 24px; border: 2px solid var(--ink); background: var(--mint); color: var(--ink); display: grid; place-items: center; font-size: 30px; font-weight: 800; flex: none; }
.maker > div { flex: 1; min-width: 240px; }
.maker h2 { font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
.maker p { font-size: 16px; color: var(--text2); line-height: 1.5; margin-top: 4px; max-width: 560px; }
.maker .links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* Final band + footer */
.band { background: var(--band); color: #fff; border-top: 2px solid var(--border); border-bottom: 2px solid var(--border); padding: 80px 0; text-align: center; }
.band h2 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; letter-spacing: -1.6px; line-height: 1.05; }
.band p { font-size: 18px; color: #D1D5DB; margin-top: 12px; }
.band .ctas { justify-content: center; }
.band .btn { border-color: #fff; }
.band .btn.primary { background: #fff; color: var(--ink); }
.band .btn:not(.primary) { background: var(--band); color: #fff; box-shadow: 4px 4px 0 var(--sky); }
footer { padding: 28px 0 40px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 14px; color: var(--text2); font-weight: 600; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* ── Phone mockup (mirrors the app as built) ───────────────
   Drawn in the app's own dp: the screen inside is 390 wide, so a number below is the
   number in lib/ (AppSpacing, AppTypography, NeoBrutalistButton...). zoom shrinks the
   whole phone to the 300px the layout wants. Change a value here only after the app changes. */
.phone {
  width: 398px; height: 822px; zoom: .7538; border: 4px solid var(--frame); border-radius: 46px; background: var(--bg);
  overflow: hidden; position: relative; display: flex; flex-direction: column; box-shadow: 8px 8px 0 var(--frame);
  color: var(--text); text-align: left; flex: none; font-size: 15px; line-height: 1.4;
}
.phone svg.i { width: 24px; height: 24px; }
.phone svg.i.s20 { width: 20px; height: 20px; }
.phone svg.i.s18 { width: 18px; height: 18px; }
.phone svg.i.lg { width: 32px; height: 32px; }
.phone svg.i.dn { transform: rotate(90deg); } /* expand_more: the sprite's chevron points right */
.phone > img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
/* A real screenshot sets the frame height itself, so any phone aspect ratio fits. */
.phone.shot { height: auto; }
.phone.shot > img { height: auto; }

.phone .status { height: 28px; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; flex: none; }
.phone .ahdr { height: 56px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; position: relative; }
.phone .ahdr b { position: absolute; left: 0; right: 0; text-align: center; font-size: 18px; font-weight: 700; letter-spacing: -.2px; line-height: 1.35; pointer-events: none; }
.phone .pb { flex: 1; overflow: hidden; padding: 8px 20px 0; position: relative; }

/* NeoBrutalistButton: the face plus a same-size layer 3px right and 4px down (custom_button.dart).
   The layer is the primary colour by default, the surface for "out", green for "ok" and "ink". */
.phone .nb { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 16px; border: 2px solid var(--border); border-radius: 100px; background: var(--surface); color: var(--text); font-size: 15px; font-weight: 700; letter-spacing: .3px; line-height: 1.5; flex: none; --gap: var(--primary);
  /* offset layer = border-coloured shape with the gap colour inside it, 2px in */
  box-shadow: 3px 4px 0 -2px var(--gap), 3px 4px 0 0 var(--border); }
.phone .nb.out { --gap: var(--surface); }
.phone .nb.ok { --gap: var(--success); }
.phone .nb.ink { background: var(--primary); color: var(--on-primary); --gap: var(--success); }
.phone .nb.circ { width: 44px; height: 44px; padding: 0; border-radius: 50%; }
.phone .nb.sq { width: 44px; height: 44px; padding: 0; border-radius: 16px; }
.phone .nb.s44 { height: 44px; }
.phone .nb.fl { flex: 1; min-width: 0; }

/* Links: search, quick chips, Source / Category / Sort */
.phone .field { height: 55px; border: 2px solid var(--border); border-radius: 12px; background: var(--surface); display: flex; align-items: center; gap: 12px; padding: 0 16px 0 12px; color: var(--text2); font-size: 15px; font-weight: 500; }
.phone .field svg { color: var(--text); }
.phone .quick { display: flex; gap: 8px; margin-top: 14px; }
.phone .qc { flex: none; height: 38px; padding: 0 8px 0 14px; border-radius: 100px; border: 2px solid var(--border); background: var(--surface); font-size: 14px; font-weight: 700; letter-spacing: .2px; display: inline-flex; align-items: center; gap: 6px; }
.phone .qc em { font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: .5px; padding: 1px 7px; border-radius: 100px; background: var(--muted); }
.phone .qc.on { background: var(--primary); color: var(--on-primary); box-shadow: 3px 3px 0 var(--mint); }
.phone .qc.on em { background: var(--on-primary); color: var(--primary); }
.phone .qc.ret em { background: var(--return); color: var(--ink); }
.phone .drops { display: flex; gap: 8px; margin-top: 10px; }
.phone .drop { flex: 1; min-width: 0; height: 42px; border-radius: 12px; border: 2px solid var(--border); background: var(--surface); font-size: 13px; font-weight: 700; letter-spacing: .2px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 12px; white-space: nowrap; }
.phone .month { margin: 24px 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--text); line-height: 1.4; }

/* LinkCard (link_card.dart). On the Links tab it sits on a mint offset box ("sw"); in the Inbox it has none. */
.phone .cards { display: grid; gap: 16px; }
.phone .card { border: 2px solid var(--border); border-radius: 16px; background: var(--surface); padding: 16px; display: flex; gap: 12px; align-items: flex-start; position: relative; }
.phone .card.sw { box-shadow: 3px 4px 0 -2px var(--mint), 3px 4px 0 0 var(--border); }
.phone .av { width: 38px; height: 38px; border-radius: 10px; border: 0; display: grid; place-items: center; font-size: 15px; font-weight: 700; color: #1E1E1E; flex: none; }
.phone .f-neutral { background: var(--muted); color: var(--text); }
.phone .ct { flex: 1; min-width: 0; }
.phone .t { font-size: 15px; font-weight: 500; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.phone .hrow { display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.phone .hst { font-size: 13px; font-weight: 600; letter-spacing: .2px; line-height: 1.4; color: var(--primary); }
.phone .pri { font-size: 11px; font-weight: 600; letter-spacing: .5px; line-height: 1.4; padding: 2px 8px; border-radius: 100px; background: var(--muted); color: var(--text); }
.phone .pri.hi { background: var(--orange); color: #1E1E1E; }
.phone .tags { display: flex; align-items: center; gap: 4px; margin-top: 8px; min-height: 19px; }
.phone .chip { font-size: 11px; font-weight: 700; letter-spacing: .5px; line-height: 1.4; padding: 2px 8px; border-radius: 100px; background: var(--muted); color: #9CA3AF; }
.phone .chip.pur { background: var(--return); color: #1E1E1E; font-weight: 600; }
.phone .time { margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: .5px; line-height: 1.4; color: #9CA3AF; }
.phone .more { margin: 4px 0 0 8px; flex: none; }
.phone .card .dot { position: absolute; top: 10px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--warning); }

/* Floating nav (app_bottom_nav.dart) and the + button above it */
.phone .pnav { position: absolute; left: 16px; right: 16px; bottom: 16px; height: 64px; border-radius: 100px; border: 2px solid var(--border); background: var(--surface); box-shadow: 4px 4px 0 var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 8px; z-index: 2; }
.phone .pnav .it { height: 48px; min-width: 56px; padding: 0 16px; border-radius: 100px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--text); position: relative; }
.phone .pnav .it.on { background: var(--primary); color: var(--on-primary); padding: 0 18px; }
.phone .pnav .bdg { position: absolute; top: 4px; right: 6px; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 100px; background: var(--orange); color: #1E1E1E; border: 2px solid #1E1E1E; font-size: 12px; font-weight: 700; line-height: 16px; text-align: center; }
.phone .fab { position: absolute; right: 16px; bottom: 96px; width: 56px; height: 56px; z-index: 2; }

/* Today (today_screen.dart): one card that fills the page, then Snooze / Archive and Open */
.phone .pb.tdy { display: flex; flex-direction: column; padding: 20px 20px 100px; }
.phone .tcard { flex: 1; min-height: 0; overflow: hidden; border: 2px solid var(--border); border-radius: 20px; background: var(--surface); padding: 24px; display: flex; flex-direction: column; justify-content: center; }
.phone .tcard .img { aspect-ratio: 16/9; border-radius: 14px; background: var(--blue); display: grid; place-items: center; flex: none; }
.phone .tcard .img.g { background: var(--green); }
.phone .tcard .play { width: 56px; height: 56px; border-radius: 50%; background: #fff; color: #1E1E1E; display: grid; place-items: center; }
.phone .tcard h4 { margin-top: 24px; font-size: 20px; font-weight: 700; letter-spacing: -.3px; line-height: 1.3; }
.phone .tcard .hline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 4px; }
.phone .tcard p { margin-top: 16px; font-size: 15px; font-weight: 500; line-height: 1.5; }
.phone .prow { display: flex; gap: 8px; margin-top: 24px; }
.phone .prow .nb { flex: 1; min-width: 0; }
.phone .tdy > .open { width: 100%; margin-top: 8px; }

/* Inbox (inbox_screen.dart): a plain card, then Add details and delete under it */
.phone .pb.inb { padding: 24px 20px 0; display: grid; gap: 24px; align-content: start; }
.phone .ibx { display: grid; gap: 8px; }
.phone .ibx .acts { display: flex; gap: 8px; }
.phone .ibx .acts .nb.ok { flex: 1; height: 44px; min-width: 0; }

/* "Already saved" bar (saved_link_snackbar.dart): a floating snackbar above the + button */
.phone .snack { position: absolute; left: 16px; right: 16px; bottom: 172px; z-index: 3; background: var(--surface); border: 2px solid var(--border); border-radius: 16px; padding: 14px 16px; display: grid; gap: 8px; }
.phone .snack .sr { display: flex; gap: 8px; align-items: flex-start; }
.phone .snack .mb { width: 32px; height: 32px; border-radius: 50%; background: var(--return); border: 2px solid var(--border); color: #1E1E1E; display: grid; place-items: center; flex: none; }
.phone .snack .sx { flex: 1; font-size: 15px; font-weight: 600; line-height: 1.5; }
.phone .snack .sa { display: flex; gap: 8px; justify-content: flex-end; }

/* Android share sheet (the system's, not the app's) */
.phone .scrim { position: absolute; inset: 0; background: var(--scrim); z-index: 2; }
.phone .osheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; background: var(--surface); border-top: 2px solid var(--border); border-radius: 28px 28px 0 0; padding: 16px 24px 32px; }
.phone .osheet .grab { width: 40px; height: 5px; border-radius: 100px; background: var(--text3); margin: 0 auto 16px; }
.phone .osheet h5 { font-size: 15px; font-weight: 700; color: var(--text2); }
.phone .apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.phone .apps div { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--text2); text-align: center; }
.phone .apps i { width: 56px; height: 56px; border-radius: 16px; background: var(--muted); display: grid; place-items: center; font-style: normal; font-weight: 800; color: var(--text2); }
.phone .apps .me i { background: var(--appicon); border: 2px solid var(--ink); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.phone .apps .me { color: var(--text); }
.phone .vid { aspect-ratio: 16/9; background: var(--muted); border-radius: 12px; display: grid; place-items: center; color: var(--text3); }
.phone .ln { height: 12px; border-radius: 100px; background: var(--muted); margin-top: 12px; }

/* Home screen widget (TodayGlanceWidget.kt): no border or shadow, a surface, a brand row, two stat pills */
.phone .home { background: var(--wall); padding: 0; }
.phone:has(.home) { background: var(--wall); } /* the wallpaper runs under the status bar */
.phone .widget { margin: 44px 16px 0; background: var(--surface); border-radius: 24px; padding: 16px; min-height: 170px; display: flex; flex-direction: column; }
.phone .widget .wb { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--text2); }
.phone .widget .ico { width: 22px; height: 22px; border-radius: 6px; background: var(--appicon); color: var(--ink); display: grid; place-items: center; }
.phone .widget .wk { margin-top: 12px; font-size: 12px; font-weight: 700; color: var(--text3); text-transform: uppercase; }
.phone .widget .wt { margin-top: 7px; font-size: 20px; font-weight: 700; line-height: 1.25; }
.phone .widget .wh { margin-top: 6px; font-size: 14px; font-weight: 500; color: var(--host); }
.phone .widget .wp { display: flex; gap: 8px; margin-top: auto; padding-top: 14px; }
.phone .widget .wp span { padding: 7px 13px; border-radius: 100px; border: 1.5px solid var(--border); font-size: 13px; font-weight: 700; color: #1E1E1E; }
.phone .widget .wp .o { background: var(--orange); }
.phone .widget .wp .b { background: var(--blue); }
.phone .icons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 36px 28px 0; }
.phone .icons i { aspect-ratio: 1; border-radius: 18px; background: rgba(255,255,255,.55); border: 2px solid rgba(30,30,30,.15); }
