/* Uplift: one clear story, one heading style, no dead space.
   Order: hero → what SURDS is → savings → use cases → how it works → sensors → get started → films → blog → final. */

/* ---- one heading style for every section ---- */
.row-head,.setup-head,.hw-head{display:grid;gap:10px;justify-items:start;text-align:left;max-width:1440px;margin:0 auto clamp(22px,3vw,36px);padding:0 var(--gutter)}
.setup-head,.hw-head{padding:0}
.row-head h2,.setup-head h2,.hw-head h2{display:grid;gap:12px;justify-items:start;margin:0;font-family:var(--display);font-weight:650;font-size:clamp(30px,3.6vw,50px);line-height:1.02;letter-spacing:-.035em;text-wrap:balance;max-width:22ch}
.row-head h2 .tag{font-size:11px}
.row-head p,.setup-sub,.hw-sub{margin:0;max-width:62ch;font-size:clamp(15px,1.2vw,17px);line-height:1.6;color:var(--text2)}
.row-head p a{color:var(--text)}
.hw-head .hw-buy{justify-content:flex-start;margin-top:8px}
.hw-head .eyebrow,.setup-head .eyebrow{margin:0}
section.row{padding-top:clamp(40px,6vw,80px);padding-bottom:clamp(24px,4vw,48px)}
.hardware,.setup{padding-top:clamp(56px,7vw,100px)}

/* ---- what SURDS is ---- */
.what{position:relative;z-index:2;padding:clamp(48px,6vw,80px) var(--gutter) clamp(24px,3vw,36px)}
.what-grid{list-style:none;display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(12px,1.6vw,20px);max-width:1440px;margin:0 auto}
.what-card{position:relative;display:flex;flex-direction:column;height:100%;border-radius:22px;overflow:hidden;background:var(--card);box-shadow:0 0 0 1px var(--line);transition:box-shadow .2s}
.what-card:hover{box-shadow:0 0 0 1px rgba(255,255,255,.28)}
.what-art{position:relative;height:190px;display:flex;align-items:center;justify-content:center;gap:4%;padding:18px;background:radial-gradient(60% 70% at 50% 60%,rgba(236,107,74,.16),transparent 70%),#111113}
.what-art img{max-height:100%;max-width:30%;object-fit:contain}
.what-art img.wide{max-width:70%}
.what-art img.shot{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;opacity:.9}
.what-body{display:flex;flex-direction:column;gap:8px;padding:20px 22px 22px;flex:1}
.what-body .n{font-family:var(--mono);font-size:11.5px;letter-spacing:.14em;color:var(--product)}
.what-body h3{font-family:var(--display);font-size:26px;font-weight:650;letter-spacing:-.03em;line-height:1.08}
.what-body p{color:var(--text2);font-size:15.5px;line-height:1.6}
.what-body .go{margin-top:auto;padding-top:10px;font-size:14px;font-weight:600;color:var(--text)}
.what-body .go::after{content:" →"}
.what-card + .what-card::before{content:"";position:absolute;left:-14px;top:95px;width:10px;height:10px;border-top:2px solid var(--text3);border-right:2px solid var(--text3);transform:rotate(45deg);z-index:3}
.what-grid > li{position:relative}
.what-grid > li + li::before{content:"";position:absolute;z-index:3;left:calc(-1 * clamp(12px,1.6vw,20px) / 2 - 7px);top:88px;width:14px;height:14px;border-radius:50%;background:var(--bg);box-shadow:0 0 0 1px var(--line2)}

/* ---- how it works: four steps as a calm 2 x 2 grid, picture first (no long sticky scroll) ---- */
@media (min-width:901px){
  .setup-grid{grid-template-columns:1fr;max-width:1440px;margin:0 auto}
  .setup-stage{display:none}
  .setup-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(14px,1.6vw,20px)}
  .step{min-height:0;opacity:1;padding:20px 22px 24px;border-radius:22px;background:var(--card);box-shadow:0 0 0 1px var(--line);justify-content:flex-start}
  .step .num{color:var(--product)}
  .step h3{font-size:clamp(24px,2.2vw,32px);margin:8px 0 10px}
  .step > p{font-size:15.5px;max-width:none}
  .step-visual{display:block;order:-1;position:relative;height:300px;margin:0 0 18px;border-radius:16px;overflow:hidden;
    background:radial-gradient(70% 60% at 50% 55%,rgba(236,107,74,.12),transparent 70%),linear-gradient(180deg,#141416,#0c0c0e);box-shadow:0 0 0 1px var(--line)}
  .step-visual .pane{opacity:1;transform:none}
  .step-visual .callout{font-size:10.5px}
  .step-visual:has(.phone){height:300px}
  .step-visual .phone{transform:scale(.62);transform-origin:50% 0;margin:14px auto 0;height:auto;aspect-ratio:auto}
  .after{max-width:1440px;margin-left:auto;margin-right:auto}
}
.setup .after{border-top:0;padding-top:0;margin-top:clamp(28px,4vw,48px)}

/* ---- sensors: left-aligned like everything else, cards fill the row ---- */
.hardware{padding-left:var(--gutter);padding-right:var(--gutter)}
.hardware > .hw-head,.hw-family > .hw-head{max-width:1440px}
#productGrid{grid-template-columns:repeat(2,minmax(0,1fr));justify-content:stretch;max-width:1440px}
@media (min-width:1181px){#productGrid{grid-template-columns:repeat(2,minmax(0,520px));justify-content:start}}
.hw-family{margin-top:clamp(48px,6vw,80px)}
.hw-family .products.family{max-width:1440px}

/* ---- use-case rail: two-digit episode numbers stop running into the card ---- */
.rail > li:nth-child(n+10) .ep-n{letter-spacing:-.12em;font-size:.78em;margin-right:-6px}
@media (max-width:560px){.rail > li:nth-child(n+10) .ep-n{font-size:40px;margin-right:-14px}}

/* ---- readability: no tiny grey text in the main flow ---- */
.ep-more .desc{font-size:14px;line-height:1.55}
.sv-grid span{font-size:13px}
.bl-body span,.gs-steps button span{font-size:15px}

@media (max-width:900px){
  .what-grid{grid-template-columns:1fr}
  .what-grid > li + li::before{display:none}
  .what-art{height:160px}
}

/* headings read as one sentence: the lighter half stays inline and upright */
.row-head h2,.setup-head h2,.hw-head h2{display:block}
.row-head h2 em,.setup-head h2 em,.hw-head h2 em{font-style:normal;font-weight:300;color:var(--text2)}
.row-head h2 .tag{display:table;margin-bottom:12px}
@media (max-width:900px){
  .gs-screens{min-height:0;aspect-ratio:auto;display:grid}
  .gs-scr{position:relative;inset:auto;grid-area:1/1}          /* stack in one cell: the box grows to the tallest screen */
}
/* the strip follows "What SURDS is" now, not the hero: no pull-up */
.what + .savings{margin-top:clamp(20px,3vw,36px)}
@media (max-width:760px){.what + .savings{margin-top:16px}}
/* every section starts on the same left edge (the cap includes the gutters) */
.row-head,.gs-wrap,.gs-ctas,.bl-grid{max-width:calc(1440px + 2 * var(--gutter))}
#what > .row-head{max-width:1440px}
.finale{max-width:1440px}
@media (min-width:1568px){.finale{margin-left:auto;margin-right:auto}}

/* ---- rails: whole cards only, inside the content column (no card peeking in from the side) ----
   The rail is clipped to the same left/right edge as the row headings, and each card takes 1/n of
   that width, so a page always shows n whole cards. The arrows still sit in the side gutters. */
.rail-wrap{--rg:clamp(14px,1.4vw,20px);--n:3}
.rail{position:relative;gap:var(--rg);padding-left:0;padding-right:0;scroll-padding:0;
  margin-left:var(--rail-x,calc(max(0px,(100% - 1440px) / 2) + var(--gutter)));   /* --rail-x: set by marketing.js to the heading's edge */
  margin-right:var(--rail-x,calc(max(0px,(100% - 1440px) / 2) + var(--gutter)))}
.rail > li{flex:0 0 calc((100% - (var(--n) - 1) * var(--rg)) / var(--n));min-width:0}
.rail-episodes > li .ep{width:100%}
.rail-episodes > li .ep-card{flex:1 1 0}
.rail-films > li .fcard{width:100%}
#films .rail-wrap{--n:4}
.rail-arrow{width:max(44px,calc(var(--gutter) - 4px))}
@media (max-width:1180px){.rail-wrap{--n:2}#films .rail-wrap{--n:3}}
@media (max-width:820px){#films .rail-wrap{--n:2}}
@media (max-width:560px){.rail-wrap,#films .rail-wrap{--n:1}.rail-episodes > li .ep-card{flex:1 1 0}.fcard{width:100%}}
