/* Cellular Routers Direct: shared stylesheet (test build) */
:root{
  --surface:#FFFFFF; --surface-2:#F4F4F7; --line:#E3E3E9;
  --text:#1B1B24; --muted:#5A5A66; --caption:#5A5A66; /* #7A7A85 fails AA on white, so captions use muted */
  --amber:#F5A623; --plum:#7E2A6B; --plum-deep:#4E1A43; --plum-light:#C77DB4;
  --green:#1E7F4F; --ink:#0E0E14;
}
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:var(--text);background:var(--surface);line-height:1.5}
h1,h2,h3{font-family:Poppins,Inter,system-ui,sans-serif;font-weight:600;line-height:1.15}
a{color:var(--plum)}
img{max-width:100%;display:block}
.wrap{max-width:1200px;margin:0 auto;padding:0 32px}

/* header */
header{background:#fff;border-bottom:1px solid var(--line);position:relative;z-index:2}
header .wrap{display:flex;align-items:center;justify-content:space-between;height:72px}
.brand{display:flex;align-items:center;gap:10px;font-family:Poppins,system-ui,sans-serif;font-weight:600;font-size:18px;color:var(--text);text-decoration:none}
.brand img{width:36px;height:36px}
nav a{margin-left:28px;color:var(--muted);text-decoration:none;font-weight:500}
nav a.active{color:var(--plum)}

/* buttons */
.btn{display:inline-block;background:var(--amber);color:var(--text);font-weight:600;padding:14px 28px;border-radius:999px;text-decoration:none}
.link2{margin-left:18px;font-weight:600}

/* HOMEPAGE hero: background A, pattern on the left, copy on the right */
.hero{position:relative;background:url(../img/hero.webp) left center/cover no-repeat;min-height:620px;display:flex;align-items:center}
.hero::after{content:"";position:absolute;left:0;right:0;bottom:0;height:90px;background:linear-gradient(to bottom,rgba(255,255,255,0),#fff);pointer-events:none}
.hero .wrap{width:100%;position:relative;z-index:1}
.hero .copy{margin-left:auto;max-width:540px;padding:64px 0}
.hero h1{font-size:48px;margin-bottom:18px}
.hero p{color:var(--muted);font-size:19px;margin-bottom:28px}

/* homepage product band on topo edges */
.products{background:url(../img/topo.webp) center/cover no-repeat;padding:80px 0}
.products h2{font-size:34px;margin-bottom:8px}
.lede{color:var(--muted);margin-bottom:36px}

/* product cards (shared) */
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px;color:inherit;text-decoration:none;display:block}
.card:hover{border-color:var(--plum-light)}
.card .ph{background:var(--surface-2);border-radius:12px;aspect-ratio:4/3;display:grid;place-items:center;margin-bottom:16px;padding:16px;overflow:hidden}
.card .ph{position:relative}
.card .ph img{position:absolute;inset:16px;width:calc(100% - 32px);height:calc(100% - 32px);object-fit:contain}
.badge{display:inline-block;font-size:12px;font-weight:600;color:var(--green);background:#E8F3ED;border-radius:999px;padding:3px 10px;margin-bottom:8px}
.card h3{font-size:18px;margin-bottom:4px}
.card p{color:var(--caption);font-size:14px}

/* SECONDARY pages: background B split into a top layer and a bottom layer,
   so the hexagon clusters sit at the top-left and bottom-right of any page height */
.page{
  background:
    url(../img/secondary-top.webp) top center/100% auto no-repeat,
    url(../img/secondary-bottom.webp) bottom center/100% auto no-repeat,
    var(--surface);
  padding:40px 0 96px
}
.crumbs{display:inline-block;font-size:14px;color:var(--muted);margin-bottom:24px;background:rgba(255,255,255,.92);padding:4px 12px;border-radius:999px;border:1px solid var(--line)}
.crumbs a{color:var(--muted);text-decoration:none}
.crumbs a:hover{color:var(--plum)}

/* product detail */
.pd{display:grid;grid-template-columns:1.05fr 1fr;gap:48px;align-items:start}
.pd-media{background:#fff;border:1px solid var(--line);border-radius:20px;padding:24px}
.pd-media .stage{background:var(--surface-2);border-radius:14px;aspect-ratio:1/1;display:grid;place-items:center;padding:40px}
.pd-media .stage img{width:78%;height:auto}
.thumbs{display:flex;gap:12px;margin-top:14px}
.thumbs span{flex:1;aspect-ratio:1/1;background:var(--surface-2);border-radius:10px;border:1px solid var(--line);display:grid;place-items:center;font-size:12px;color:var(--muted)}
.thumbs span.on{border-color:var(--plum)}
.pd-info h1{font-size:40px;margin:6px 0 10px}
.pd-info .sub{color:var(--muted);font-size:18px;margin-bottom:24px}
.price-gate{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px 22px;margin-bottom:28px}
.price-gate .label{font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--plum);margin-bottom:6px}
.price-gate p{color:var(--muted);margin-bottom:16px}
.price-gate .signin{display:block;margin-top:12px;font-weight:600;font-size:15px}
.specs{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;margin-bottom:20px}
.specs h2{font-size:20px;padding:18px 22px;border-bottom:1px solid var(--line)}
.specs table{width:100%;border-collapse:collapse;font-size:15px}
.specs th,.specs td{text-align:left;padding:12px 22px;border-bottom:1px solid var(--line);vertical-align:top}
.specs tr:last-child th,.specs tr:last-child td{border-bottom:0}
.specs th{width:42%;color:var(--muted);font-weight:500}
.dl{display:flex;align-items:center;justify-content:space-between;background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px 20px;text-decoration:none;color:var(--text);font-weight:600}
.dl span{color:var(--plum)}
.related{margin-top:72px}
.related h2{font-size:28px;margin-bottom:20px}
.related .grid{grid-template-columns:repeat(3,1fr)}

/* dark footer */
footer{background:var(--ink) url(../img/footer.webp) center/cover no-repeat;color:#fff;padding:56px 0}
footer .wrap{display:flex;justify-content:space-between;gap:24px;flex-wrap:wrap}
footer a{color:var(--plum-light);text-decoration:none}
footer p{color:#B9B9C4;font-size:14px}

/* phone */
@media (max-width:760px){
  .wrap{padding:0 20px}
  nav{display:none}
  .hero{
    background:
      linear-gradient(to bottom, rgba(255,255,255,0) 0, rgba(255,255,255,0) 150px, #fff 290px),
      url(../img/hero.webp) left top/820px auto no-repeat;
    min-height:0;display:block
  }
  .hero .copy{margin:0;padding:230px 0 48px}
  .hero h1{font-size:34px}
  .hero p{font-size:17px}
  .link2{display:block;margin:16px 0 0}
  .products{padding:56px 0;background-size:auto 100%}
  .grid,.related .grid{grid-template-columns:1fr}
  .page{
    background:
      url(../img/secondary-top.webp) left top/760px auto no-repeat,
      url(../img/secondary-bottom.webp) right bottom/760px auto no-repeat,
      var(--surface);
    padding:28px 0 72px
  }
  .crumbs{border-radius:14px}
  .pd{grid-template-columns:1fr;gap:28px}
  .pd-info h1{font-size:32px}
  .btn{display:block;text-align:center}
  footer .wrap{flex-direction:column}
}
