/* Flexo Tech web: clean, product-first, Flexo's own tokens and brand blue.
   Type is the visitor's system font (served by their device, never by us). */
:root {
  --bg: #ffffff; --bg-alt: #f3f5f8; --card: #ffffff; --fg: #12151b; --muted: #636b78; --line: #e3e7ee;
  --brand: #0b3fc1; --brand-hover: #0a36a3; --brand-soft: #edf2ff; --ok: #0b7a3e; --wa: #128c4a;
  --radius: 1.25rem; --radius-sm: .75rem; --shadow: 0 2px 6px rgb(16 24 40 / .04), 0 12px 32px rgb(16 24 40 / .07);
  --font: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0a0c11; --bg-alt: #12151c; --card: #161a22; --fg: #eef1f6; --muted: #98a1b0; --line: #262b36;
    --brand: #6f97ff; --brand-hover: #8eadff; --brand-soft: #16203a; --ok: #5fd38f; --wa: #25d366;
    --shadow: 0 2px 6px rgb(0 0 0 / .3), 0 12px 32px rgb(0 0 0 / .35); }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
body { margin: 0; font: 17px/1.5 var(--font); letter-spacing: -.01em; background: var(--bg); color: var(--fg); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--card); padding: .5rem 1rem; z-index: 9; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.ok { color: var(--ok); font-weight: 600; }

/* Top bar: thin, frosted */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.top .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 3rem; }
.brand { display: flex; align-items: center; gap: .45rem; font-weight: 650; font-size: .95rem; color: var(--fg); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 26px; height: 26px; }
.top nav { overflow-x: auto; scrollbar-width: none; margin-left: auto; }
.top nav ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.top nav a { display: block; padding: .35rem 0; color: color-mix(in srgb, var(--fg) 80%, transparent); white-space: nowrap; font-size: .8rem; }
.top nav a:hover, .top nav a[aria-current] { color: var(--fg); text-decoration: none; }

/* Type scale */
.content { padding-top: 1.5rem; padding-bottom: 5rem; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.08; letter-spacing: -.025em; font-weight: 700; margin: 1rem 0 .75rem; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.25rem); line-height: 1.12; letter-spacing: -.02em; font-weight: 700; margin: 4rem 0 1.25rem; }
.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.45; color: var(--muted); max-width: 44rem; }
.crumbs { font-size: .8rem; color: var(--muted); margin-top: .5rem; }

/* Buttons: pills */
.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--brand); color: #fff; font-weight: 500; font-size: 1rem; padding: .75rem 1.4rem; border-radius: 999px; min-height: 44px; transition: background .2s; }
.btn:hover { background: var(--brand-hover); text-decoration: none; }
.btn.ghost, .btn.glass { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.btn.ghost:hover, .btn.glass:hover { background: var(--brand-soft); }
.btn.small { padding: .4rem .95rem; font-size: .85rem; min-height: 0; }

/* Price tables: quiet rows on a soft panel */
.table { overflow-x: auto; background: var(--bg-alt); border-radius: var(--radius); margin: 1.25rem 0; padding: .25rem .5rem .5rem; }
table { width: 100%; border-collapse: collapse; }
caption { text-align: left; font-weight: 650; font-size: 1.05rem; padding: 1rem .75rem .5rem; }
th, td { padding: .85rem .75rem; border-top: 1px solid var(--line); text-align: left; vertical-align: middle; }
thead th { border-top: 0; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
tbody th { font-weight: 600; min-width: 14rem; }
tbody th a { color: var(--fg); }
.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.traits { display: block; font-weight: 400; font-size: .82rem; color: var(--muted); margin-top: .1rem; }

.points { padding-left: 1.2rem; max-width: 44rem; }
.points li { margin: .6rem 0; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; }
.chips a { display: block; padding: .45rem 1rem; border-radius: 999px; background: var(--bg-alt); color: var(--fg); font-size: .9rem; }
.chips a:hover { background: var(--brand-soft); color: var(--brand); text-decoration: none; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1rem; list-style: none; padding: 0; }
.cards a { display: block; height: 100%; padding: 1.5rem; border-radius: var(--radius); background: var(--bg-alt); color: var(--fg); transition: transform .3s, box-shadow .3s; }
.cards a:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.cards strong { display: block; font-size: 1.1rem; letter-spacing: -.015em; margin-bottom: .4rem; }
.cards span { font-size: .9rem; color: var(--muted); }

/* Variant page */
.buy { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1.25rem; align-items: end; background: var(--bg-alt); border-radius: var(--radius); padding: 1.5rem; margin: 1.5rem 0; }
.buy p { margin: 0; }
.label { font-size: .82rem; color: var(--muted); }
.price { font-size: 1.75rem; font-weight: 700; letter-spacing: -.02em; }
.spec { display: grid; grid-template-columns: max-content 1fr; gap: .75rem 2rem; max-width: 40rem; padding: 0; margin: 0; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; }

.prose { max-width: 42rem; font-size: 1.05rem; }
.prose h2 { margin-top: 2.5rem; font-size: 1.6rem; }
.prose table { background: var(--bg-alt); border-radius: var(--radius-sm); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; max-width: 44rem; }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.3rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: .6rem 0 0; color: var(--muted); }

/* Footer: small grey type */
.foot { background: var(--bg-alt); padding: 2.5rem 0 6rem; font-size: .8rem; color: var(--muted); }
.foot .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2rem; }
.foot strong { color: var(--fg); font-weight: 600; }
.foot ul { padding-left: 0; list-style: none; }
.foot li { margin: .35rem 0; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--fg); }
.foot .chips a { background: var(--card); color: var(--muted); font-size: .8rem; padding: .3rem .8rem; }
address { font-style: normal; line-height: 1.7; }

.wa-float { position: fixed; right: 1.25rem; bottom: 1.25rem; background: var(--wa); color: #fff; font-weight: 600; font-size: .95rem; padding: .8rem 1.2rem; border-radius: 999px; box-shadow: 0 8px 24px rgb(0 0 0 / .2); z-index: 6; }
.wa-float:hover { text-decoration: none; filter: brightness(1.06); }

/* Below 40rem each price row is a card: name, then stock and prices side by side. */
@media (max-width: 40rem) {
  .table thead { display: none; }
  .table tr { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem 1rem; padding: .9rem .75rem; border-top: 1px solid var(--line); align-items: center; }
  .table th, .table td { display: block; border: 0; padding: 0; }
  .table tbody th { grid-column: 1 / -1; min-width: 0; }
  .table .num { text-align: left; font-weight: 600; }
  .table .num::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 400; color: var(--muted); }
}

/* Home hero: centred headline over the phone scene (original SVG, see build.mjs). Ink in both themes. */
.hero-ink { background: radial-gradient(90% 70% at 50% 85%, #10307a 0%, #071433 55%, #04091a 100%); color: #eef1f6; overflow: hidden; text-align: center; }
.hero-grid { display: grid; justify-items: center; padding-top: 4rem; padding-bottom: 0; }
.hero-copy { max-width: 46rem; }
.hero-ink h1 { color: #fff; font-size: clamp(2.4rem, 6.5vw, 4.5rem); line-height: 1.04; letter-spacing: -.03em; margin: .5rem 0 1rem; }
.hero-ink .lead { color: #aab6cc; margin: 0 auto; }
.hero-ink strong { color: #fff; }
.eyebrow { font-size: 1.05rem; font-weight: 600; color: #8fc8ff; margin: 0; letter-spacing: -.01em; }
.from { display: flex; flex-direction: column; align-items: center; gap: .15rem; margin: 1.5rem 0 1.25rem; }
.from strong { font-size: clamp(1.6rem, 3.5vw, 2.1rem); letter-spacing: -.02em; line-height: 1.15; }
.from span { font-size: .9rem; color: #93a1ba; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin: 0; }
.hero-ink .btn.glass { color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .45); }
.hero-ink .btn.glass:hover { background: rgb(255 255 255 / .1); }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.5rem; list-style: none; padding: 0; margin: 1.5rem 0 0; font-size: .85rem; color: #93a1ba; }
.trust li::before { content: "✓"; color: #5fd38f; font-weight: 700; margin-right: .4rem; }

.scene { position: relative; width: 100%; max-width: 44rem; height: 22rem; margin-top: 1rem; }
@media (min-width: 60rem) { .scene { height: 30rem; } }
.scene-rings { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene-glow { position: absolute; left: 50%; top: 55%; width: 30rem; height: 30rem; margin: -15rem 0 0 -15rem; border-radius: 50%;
  background: radial-gradient(circle, rgb(25 181 240 / .42), rgb(25 181 240 / .08) 45%, transparent 70%); animation: breathe 8s ease-in-out infinite alternate; }
.scene-phones { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.scene .phone { filter: drop-shadow(0 30px 40px rgb(0 0 0 / .45)) drop-shadow(0 0 30px rgb(25 181 240 / .25)); }
.scene .float-a { margin-left: -2.5rem; transform: rotate(8deg); animation: float-a 7s ease-in-out infinite; }
.scene .float-b { transform: rotate(-10deg) translateY(-1.5rem); animation: float-b 6s ease-in-out infinite; }
@media (max-width: 59.99rem) { .scene .phone { width: 120px; height: auto; } }
.orbit { animation: orbit linear infinite; }
.orbit.rev { animation-direction: reverse; }
.phone-sheen { animation: sheen 6s ease-in-out infinite; }
@keyframes orbit { to { stroke-dashoffset: -100; } }
@keyframes breathe { from { opacity: .6; transform: scale(.94); } to { opacity: 1; transform: scale(1.06); } }
@keyframes float-a { 50% { transform: rotate(6deg) translateY(-14px); } }
@keyframes float-b { 50% { transform: rotate(-12deg) translateY(-2.4rem); } }
@keyframes sheen { 0% { transform: skewX(-18deg) translateX(0); } 45%, 100% { transform: skewX(-18deg) translateX(320px); } }
@media (prefers-reduced-motion: reduce) { .hero-ink *, .models *, .cards a, .models a { animation: none !important; transition: none !important; } }

/* Model tiles: big, soft, centred */
.models { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.25rem; list-style: none; padding: 0; margin: 2.5rem 0; }
.models a { display: grid; justify-items: center; text-align: center; gap: .25rem; padding: 2.25rem 1.5rem 2rem; border-radius: var(--radius); background: var(--bg-alt); color: var(--fg); transition: transform .3s, box-shadow .3s; }
.models a:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.model-art { display: flex; gap: .75rem; height: 12rem; align-items: center; justify-content: center; margin-bottom: 1rem; }
.model-art .phone { height: 11rem; width: auto; filter: drop-shadow(0 14px 18px rgb(0 0 0 / .18)); }
.model-art .phone:nth-child(2) { transform: translateY(.75rem) rotate(4deg); }
.model-name { font-size: 1.75rem; font-weight: 700; letter-spacing: -.025em; }
.model-price { font-size: 1.05rem; color: var(--fg); }
.model-meta { font-size: .85rem; color: var(--muted); }
.models a::after { content: "Buy ›"; margin-top: .9rem; display: inline-block; background: var(--brand); color: #fff; border-radius: 999px; padding: .45rem 1.1rem; font-size: .9rem; font-weight: 500; }

/* Colour swatch beside a phone's name */
.sw { display: inline-block; width: .75rem; height: .75rem; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .2); margin-right: .45rem; vertical-align: -.05rem; }
