/* The features page (Site/features.html), on top of site.css: the app's five tabs in order, each with its real screen
   beside its list. docs/FEATURES.md is the source. */

:root {
  --orange: #FF9F0A;
  --new: #FFB84D;
  --new-bg: #2A2112;
}

article[id], .sub[id] { scroll-margin-top: 168px; }
section.tab-sec { scroll-margin-top: 128px; }
.site-nav a[aria-current] { color: var(--text); }

/* Hero: short, the list is the point */
.features-hero { padding-top: 56px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 24px; }
.features-hero h1 { font-size: clamp(44px, 6.4vw, 80px); max-width: 15ch; }
.features-hero .lede { font-size: 20px; max-width: 44ch; }

/* The tab bar, like the app's, under the site header */
.tab-nav { position: sticky; top: 63px; z-index: 9; background: rgba(11, 12, 16, 0.92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--tile-2); }
.tab-nav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-top: 8px; padding-bottom: 8px; }
.tab-nav a { flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none; color: var(--muted); font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 12px; }
.tab-nav a:hover { background: var(--tile); color: var(--text); }
.tab-nav svg { width: 22px; height: 22px; }
.tab-nav .mark { height: 11px; font-size: 10px; line-height: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--new); }

/* New in 1.0.2 */
.new-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 14px; padding-top: 40px; padding-bottom: 64px; }
.new-in a { display: flex; gap: 18px; align-items: center; text-decoration: none; background: var(--tile); border-radius: 22px; padding: 14px; min-width: 0; }
.new-in a:hover { background: var(--tile-2); color: var(--text); }
.new-in .phone { width: 92px; padding: 3px; box-shadow: inset 0 0 0 1px #77787D, 0 12px 24px rgba(0, 0, 0, 0.4); }
.new-in .phone::before, .new-in .phone::after { content: none; }
.new-in h3 { margin: 8px 0 4px; font-size: 20px; line-height: 1.2; }
.new-in p { margin: 0; font-size: 15px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* A tab */
.tab-sec { padding: 88px 0; border-top: 1px solid var(--tile-2); }
.tab-sec.band { background: var(--band); }
.tab-grid { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 64px; align-items: start; }
.tab-side { position: sticky; top: 168px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.tab-side .eyebrow { display: flex; align-items: center; gap: 10px; }
.tab-side h2 { font-size: clamp(36px, 4.2vw, 50px); text-wrap: balance; }
.tab-side .lede { font-size: 16px; }
.tab-side .phone { margin-top: 10px; }

/* A tab's features: one list, read top to bottom */
.feats { display: flex; flex-direction: column; min-width: 0; }
.sub { margin: 0; padding: 32px 0 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.sub:first-child { padding-top: 0; }
.feat { display: flex; flex-direction: column; gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--tile-2); }
.feat:target { box-shadow: -14px 0 0 -10px var(--red); }
.feat-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.feat h3 { margin: 0; font-size: 19px; line-height: 1.3; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; text-wrap: balance; }
.feat p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); max-width: 64ch; }
.anchor { flex: none; width: 32px; height: 32px; margin: -4px -6px 0 0; border: 0; border-radius: 10px; background: transparent; color: var(--faint); font: 700 16px "Space Grotesk", system-ui, sans-serif; cursor: pointer; }
.anchor:hover { background: var(--line); color: var(--text); }
.ways { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.path { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; font-size: 13px; font-weight: 500; color: var(--text); }
.path span { background: var(--tile-2); border-radius: 8px; padding: 4px 9px; }
.band .path span { background: #2A2D36; }
.path span + span::before { content: "›"; color: var(--faint); margin-right: 7px; }
.path .or { background: transparent !important; padding: 4px 2px; color: var(--faint); font-weight: 400; }
.path .or::before, .path .or + span::before { content: none !important; }
.tag { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--team-tint); color: var(--team-label); white-space: nowrap; }
.tag.new { background: var(--new-bg); color: var(--new); }
.tag.date { background: #2A2D36; color: var(--text); }

/* Outside the app: the lock screen, drawn */
.off-art { width: 100%; margin-top: 10px; background: #0B0C10; border: 1px solid var(--tile-2); border-radius: 24px; padding: 18px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.island { display: flex; align-items: center; gap: 10px; background: #000000; border-radius: 999px; padding: 7px 12px 7px 8px; font-weight: 700; box-shadow: 0 0 0 1px #24262D; align-self: center; white-space: nowrap; }
.island .num { width: 22px; height: 22px; border-radius: 7px; background: var(--team); display: grid; place-items: center; font-size: 12px; color: #FFFFFF; }
.island .flag { display: inline-flex; align-items: center; gap: 6px; color: var(--orange); }
.island .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; background: #1C1E25; }
.note img { width: 22px; height: 22px; border-radius: 6px; flex: none; margin-top: 1px; }
.note b { display: block; font-size: 13px; }
.note span { display: block; font-size: 12px; color: var(--muted); }
.note .when { margin-left: auto; font-size: 11px; color: var(--faint); flex: none; }
.off-art .widgets { gap: 8px; max-width: none; }
.off-art .widgets div { border-radius: 14px; padding: 8px; font-size: 15px; }
.off-art .widgets div:first-child { font-size: 18px; }
.off-art .widgets .wide { grid-column: span 2; aspect-ratio: auto; flex-direction: column; align-items: flex-start; justify-content: flex-end; font-size: 11px; color: var(--muted); font-weight: 500; }
.off-art .widgets .wide b { font-size: 15px; color: var(--text); }

.features-download { padding-top: 96px; border-top: 1px solid var(--tile-2); }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--text); color: var(--bg); font-weight: 700; font-size: 15px; padding: 12px 18px; border-radius: 12px; z-index: 30; max-width: calc(100% - 32px); }
[hidden] { display: none !important; }

@media (max-width: 900px) {
  .tab-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .tab-side { position: static; }
  .tab-side .phone, .off-art { display: none; }
  .tab-sec { padding: 64px 0; }
}
