/* ===== Nest Learning Thermostat (4th gen) — recreation ===== */

/* Google Sans family — the live page's exact gstatic faces (googlesans v62,
   Flex v5 variable, Display v13). Live declares 400/500/700 against the SAME
   v62 file (it's variable); we mirror that. CSP font-src already allows
   fonts.gstatic.com. Roboto Flex stays as fallback only. */
@font-face{font-family:"Google Sans";font-weight:400;font-style:normal;font-display:swap;src:url(https://fonts.gstatic.com/s/googlesans/v62/4UaRrENHsxJlGDuGo1OIlJfC6l_24rlCK1Yo_Iq2rgCIhM907-0x.woff2) format("woff2")}
@font-face{font-family:"Google Sans";font-weight:500;font-style:normal;font-display:swap;src:url(https://fonts.gstatic.com/s/googlesans/v62/4UaRrENHsxJlGDuGo1OIlJfC6l_24rlCK1Yo_Iq2rgCIhM907-0x.woff2) format("woff2")}
@font-face{font-family:"Google Sans";font-weight:700;font-style:normal;font-display:swap;src:url(https://fonts.gstatic.com/s/googlesans/v62/4UaRrENHsxJlGDuGo1OIlJfC6l_24rlCK1Yo_Iq2rgCIhM907-0x.woff2) format("woff2")}
@font-face{font-family:"Google Sans Text";font-weight:400 700;font-style:normal;font-display:swap;src:url(https://fonts.gstatic.com/s/googlesans/v62/4UaRrENHsxJlGDuGo1OIlJfC6l_24rlCK1Yo_Iq2rgCIhM907-0x.woff2) format("woff2")}
@font-face{font-family:"Google Sans Flex";font-weight:400 700;font-style:normal;font-display:swap;src:url(https://fonts.gstatic.com/s/googlesansflex/v5/t5sJIQcYNIWbFgDgAAzZ34auoVyXkJCOvp3SFWJbN5hF8Ju1x6sKCyp0l9sI40swNJwGpVd4AZzz0v6lJ4qFXNZhGjLvDSkV4USKMo6qQzwliVdHAy9jxTDHg_ugnAakpyyc-cJgUqDCIUL0jg.woff2) format("woff2")}
@font-face{font-family:"Google Sans Display";font-weight:400;font-style:normal;font-display:swap;src:url(https://fonts.gstatic.com/s/googlesansdisplay/v13/ea8FacM9Wef3EJPWRrHjgE4B6CnlZxHVDvr9oT3ZQZRENA.woff2) format("woff2")}
@font-face{font-family:"Google Sans Display";font-weight:500;font-style:normal;font-display:swap;src:url(https://fonts.gstatic.com/s/googlesansdisplay/v13/ea8IacM9Wef3EJPWRrHjgE4B6CnlZxHVBg3etBT7TL5-PQEKcA.woff2) format("woff2")}
@font-face{font-family:"Google Sans Display";font-weight:700;font-style:normal;font-display:swap;src:url(https://fonts.gstatic.com/s/googlesansdisplay/v13/ea8IacM9Wef3EJPWRrHjgE4B6CnlZxHVBkXYtBT7TL5-PQEKcA.woff2) format("woff2")}

:root{
  --white:#fff;
  --cream:#F5F3EF;
  --card:#F9F9F9;
  --well:#EFF1F2;
  --ink:#191C1D;
  --ink2:#3c4043;
  --blue:#0B57D0;
  --linkblue:#1967D2;
  --chip-active-bg:#D3E3FD;
  --chip-active-tx:#0842A0;
  --save-bg:#C4EED0;
  --save-tx:#0F5223;
  --hair:#dadce0;
  --font:"Google Sans Flex","Google Sans","Roboto Flex","Roboto","Noto Sans",Arial,sans-serif;
  --font-gs:"Google Sans","Google Sans Flex","Roboto Flex",Roboto,Arial,sans-serif;
  --maxw:1128px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:var(--font);
  color:var(--ink);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
  font-size:16px;
  line-height:1.5;
}
a{color:var(--linkblue);text-decoration:none}
img{max-width:100%;display:block}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}

/* ===== buttons / pills ===== */
.btn-buy{
  background:var(--blue);color:#fff;border:none;cursor:pointer;
  height:56px;padding:0 24px;border-radius:100px;
  font-family:var(--font);font-size:16px;font-weight:500;line-height:24px;letter-spacing:.1px;
}
.btn-buy:hover{background:#0a4cb8}
.link-arrow{color:var(--linkblue);font-size:16px;font-weight:500;white-space:nowrap}
.link-arrow:hover{text-decoration:underline}
.save-pill{
  display:inline-flex;align-items:center;gap:4px;
  background:var(--save-bg);color:var(--save-tx);
  border-radius:8px;padding:4px 8px;font-size:14px;font-weight:500;line-height:1;
}
.save-pill svg{color:var(--save-tx)}

.price-now{font-size:20px;font-weight:500;line-height:26px;color:var(--ink)}
.price-now-lg{font-size:20px;font-weight:500;line-height:26px;color:var(--ink)}
.price-was{font-size:14px;font-weight:500;letter-spacing:.25px;color:var(--ink2);text-decoration:line-through}
.financing{font-size:14px;color:var(--ink2);margin-top:8px}
.price-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:18px}

/* ===== GLOBAL NAV ===== */
.gnav{background:#fff;border-bottom:1px solid #ececec;position:relative;z-index:80}
.gnav-inner{max-width:1440px;margin:0 auto;height:64px;display:flex;align-items:center;justify-content:space-between;gap:28px;padding:0 24px}
.gnav-left{display:flex;align-items:center;gap:14px}
.gnav-menu{width:48px;height:48px;border-radius:50%;background:#1a73e8;border:none;display:flex;align-items:center;justify-content:center;cursor:pointer}
.gnav-menu:hover{background:#1b66c9}
.gnav-glogo{display:flex;align-items:center}
.gnav-signin{background:#1a73e8;color:#fff;padding:9px 23px;border-radius:20px;font-size:14px;font-weight:500;white-space:nowrap;margin-left:8px}
.gnav-signin:hover{background:#1b66c9;text-decoration:none}
.gnav-logo{display:flex;align-items:baseline;font-size:22px;font-weight:500;letter-spacing:-.5px;gap:1px}
.gnav-logo .store-word{margin-left:7px;color:#5f6368;font-weight:400;font-size:21px}
.g-blue{color:#4285F4}.g-red{color:#EA4335}.g-yellow{color:#FBBC05}.g-green{color:#34A853}
.gnav-links{display:flex;gap:18px;flex:1;flex-wrap:nowrap;overflow:hidden}
.gnav-links a{color:#3c4043;font-size:14px;font-weight:500;white-space:nowrap}
.gnav-links a:hover{color:var(--blue)}
.gnav-icons{display:flex;align-items:center;gap:6px}
.icon-btn{background:none;border:none;color:#5f6368;cursor:pointer;width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center}
.icon-btn:hover{background:#f1f3f4}
.avatar{width:32px;height:32px;border-radius:50%;background:#1a73e8;color:#fff;border:none;font-size:14px;font-weight:500;cursor:pointer;margin-left:6px}
.hamburger,.gnav-logo-m,.gnav-icons-m{display:none}

/* ===== STICKY CAPSULE SUB-NAV ===== */
.capsule-wrap{position:fixed;top:16px;left:0;right:0;z-index:91;display:flex;justify-content:center;pointer-events:none;opacity:0;transform:translateY(-8px);transition:opacity .25s ease,transform .25s ease}
.capsule-wrap.show{opacity:1;transform:translateY(0)}
.capsule{
  pointer-events:auto;background:#fff;border-radius:100px;box-shadow:0 2px 10px rgba(0,0,0,.15);
  height:72px;display:flex;align-items:center;gap:24px;padding:0 14px 0 28px;max-width:1128px;width:calc(100% - 48px);
}
.capsule-title{font-size:16px;font-weight:700;line-height:24px;color:var(--ink);white-space:nowrap}
.capsule-chips{display:flex;gap:8px;flex:1}
.chip{
  background:var(--well);color:var(--ink);border-radius:100px;padding:8px 18px;font-size:14px;font-weight:500;line-height:1;
  display:inline-flex;align-items:center;
}
.chip:hover{background:#e4e6e7}
.chip-active{background:var(--chip-active-bg);color:var(--chip-active-tx)}
.capsule-right{display:flex;align-items:center;gap:18px}
.capsule-price{display:flex;align-items:baseline;gap:8px}
.capsule .btn-buy{height:48px;padding:0 28px}

/* ===== layout helpers ===== */
main{display:block}
section{max-width:var(--maxw);margin:0 auto;padding:116px 24px}
.sec-h2{font-size:24px;font-weight:500;line-height:30px;letter-spacing:normal;color:var(--ink)}
.sec-h2.center{text-align:center}
.compare .sec-h2{font-size:28px;line-height:34px;letter-spacing:-.5px}
.center{text-align:center}
.eyebrow{font-size:12px;font-weight:500;color:var(--ink2);text-transform:none;letter-spacing:.5px;margin-bottom:14px}

/* ===== HERO ===== */
/* Nest hero rebuilt to match live: sticky top-center pills + centered thermostat card (+ sticky bottom buy-bar, see .buybar) */
.nest-pills{position:sticky;top:16px;z-index:91;display:flex;justify-content:center;margin:0 0 -30px;pointer-events:none}
.nest-pills .capsule-chips{pointer-events:auto;background:#fff;border-radius:100px;box-shadow:0 2px 10px rgba(0,0,0,.14);padding:8px;display:inline-flex;gap:8px;flex:0 0 auto}
.hero-card{max-width:1128px;margin:0 auto;background:#F2EFEA;border-radius:28px;overflow:hidden;position:relative;padding-top:36px}
.hero{padding-top:36px;padding-bottom:64px}
.hero-grid{display:grid;grid-template-columns:1fr 1.15fr;gap:0;align-items:stretch;border-radius:28px;overflow:hidden;background:#F2EFEA}
.hero-copy{background:transparent;padding:72px 48px 72px 64px;display:flex;flex-direction:column;justify-content:center}
.hero-h1{font-size:60px;font-weight:500;line-height:68px;letter-spacing:-1px;color:var(--ink)}
.hero-sub{font-size:16px;color:var(--ink2);margin-top:18px}
.hero-buy{margin-top:24px;align-self:flex-start}
.hero-media{background:transparent;display:flex;align-items:center;justify-content:center;position:relative;min-height:760px}

/* swatches */
.swatches{border:none;display:flex;gap:14px;margin-top:32px}
.swatch{position:relative;width:48px;height:48px;border-radius:50%;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.swatch input{position:absolute;opacity:0;inset:0;cursor:pointer;margin:0}
.swatch-dot{width:40px;height:40px;border-radius:50%;border:1px solid rgba(0,0,0,.12);transition:box-shadow .15s}
.swatch-obsidian .swatch-dot{background:#2b2d31}
.swatch-gold .swatch-dot{background:#d8c9a3}
.swatch-silver .swatch-dot{background:#e6e6e6}
.swatch-snow .swatch-dot{background:#f4f4f2}
.swatch-linen .swatch-dot{background:#ddd3c4}
.swatch-fog .swatch-dot{background:#cfd3d4}
.swatch-charcoal .swatch-dot{background:#3a3c3e}
.swatch input:focus-visible + .swatch-dot{outline:2px solid var(--blue);outline-offset:2px}
.swatch input:checked + .swatch-dot{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--ink)}
.color-label{font-size:14px;color:var(--ink2);margin-top:14px}

/* carousel */
.carousel{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative}
.carousel-track{position:relative;width:100%;flex:1;display:flex;align-items:center;justify-content:center}
.slide{position:absolute;inset:0;display:none;align-items:center;justify-content:center}
.slide.slide-active{display:flex}
.finish-img{max-width:88%;max-height:520px;object-fit:contain;display:none}
.finish-img.is-on{display:block}
.carousel-ctrl{display:flex;align-items:center;gap:18px;padding:14px 0 4px;position:absolute;bottom:14px}
/* live's Nest hero shows no carousel arrows over the product — hide them on the hero */
.hero .carousel-ctrl{display:none}
.car-arrow{background:none;border:none;font-size:30px;line-height:1;color:#5f6368;cursor:pointer;width:36px;height:36px;border-radius:50%}
.car-arrow:hover{background:rgba(0,0,0,.06)}
.car-count{font-size:14px;color:var(--ink2);min-width:42px;text-align:center}

/* ===== FEATURE OVERVIEW ===== */
.overview-feat{text-align:center}
.play-link{background:none;border:none;color:var(--linkblue);font-family:var(--font);font-size:16px;font-weight:500;cursor:pointer;display:inline-flex;align-items:center;gap:10px;margin-top:22px}
.play-link.small{margin-top:12px;font-size:15px}
.play-circle{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;border:1.5px solid var(--linkblue);font-size:11px;padding-left:2px}
.icon-row{display:grid;grid-template-columns:repeat(5,1fr);gap:24px;margin-top:80px}
.icon-feat{display:flex;flex-direction:column;align-items:center;gap:18px}
.feat-ic{color:#3c4043;line-height:0;display:inline-flex}
.feat-ic svg{display:block}
.icon-feat p{font-size:14px;color:var(--ink2);line-height:1.45;max-width:170px}
/* slim horizontal compatibility callout bar (matches live page) */
.compat-card{display:flex;align-items:center;gap:28px;background:var(--card);border-radius:24px;padding:28px 40px;margin-top:80px;text-align:left}
.compat-thumb{width:64px;height:64px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden}
.compat-thumb img{width:100%;height:100%;object-fit:contain}
.compat-text{flex:1;font-size:22px;font-weight:500;line-height:30px;letter-spacing:-.2px;color:var(--ink)}
.compat-card .link-arrow{flex-shrink:0;font-size:16px}

/* ===== SAVINGS ===== */
.savings{max-width:none;width:100%;background:var(--cream);padding:116px 0;overflow:hidden}
.savings-grid{max-width:var(--maxw);margin:0 auto;padding:0 24px;display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center}
.savings-copy{max-width:460px}
.accordion{margin-top:36px}
/* savings accordion = filled grey cards (matches live page) */
#savingsAcc{margin-top:32px}
#savingsAcc .acc-item{border:none;background:var(--well);border-radius:14px;margin-bottom:12px}
#savingsAcc .acc-item:first-child{border-top:none}
#savingsAcc .acc-head{padding:18px 20px;font-size:16px}
#savingsAcc .acc-body p{padding:0 20px 18px}
.acc-item{border-bottom:1px solid var(--hair)}
.acc-item:first-child{border-top:1px solid var(--hair)}
.acc-head{
  width:100%;background:none;border:none;cursor:pointer;text-align:left;
  font-family:var(--font);font-size:18px;font-weight:500;color:var(--ink);
  padding:20px 4px;display:flex;justify-content:space-between;align-items:center;gap:16px;
}
.chev{font-size:18px;color:var(--ink2);transition:transform .25s;flex-shrink:0}
.acc-head[aria-expanded="true"] .chev{transform:rotate(180deg)}
.acc-body{max-height:0;overflow:hidden;transition:max-height .3s ease}
.acc-body p{font-size:15px;color:var(--ink2);padding:0 4px 20px}
.savings-media{display:flex;justify-content:center}
.savings-photo{width:100%;aspect-ratio:5/6;max-width:540px;border-radius:28px;background:#e8e2d8;position:relative;overflow:hidden}
.savings-photo img{width:100%;height:100%;object-fit:cover;display:block}
.play-circle.big{position:absolute;right:20px;bottom:20px;width:46px;height:46px;background:#fff;border:none;color:var(--ink);box-shadow:0 2px 8px rgba(0,0,0,.2)}

/* ===== DESIGN / DARK VIDEO ===== */
.design{text-align:center}
.design-sub{font-size:16px;color:var(--ink2);margin-top:18px;line-height:1.5}
.video-panel{position:relative;margin-top:56px;border-radius:28px;overflow:hidden;background:#1c1d1f}
.video-panel video{width:100%;display:block;aspect-ratio:1.78/1;object-fit:cover;filter:saturate(.85)}
.vid-toggle{position:absolute;right:20px;bottom:20px;width:46px;height:46px;border-radius:50%;border:none;background:rgba(255,255,255,.92);color:#191c1d;cursor:pointer;font-size:13px;display:flex;align-items:center;justify-content:center}
.vid-icon-play{display:none;padding-left:2px}
.video-panel.paused .vid-icon-pause{display:none}
.video-panel.paused .vid-icon-play{display:inline}
.caption-row{display:grid;grid-template-columns:repeat(4,1fr);gap:40px;margin-top:56px;text-align:left}
.cap-col{padding-top:16px;border-top:1px solid var(--hair)}
.cap-col .cap-tab{display:block;height:2px;width:40px;background:transparent;margin-top:-17px;margin-bottom:15px}
.cap-col .cap-tab.active{background:var(--ink)}
.cap-col p{font-size:15px;font-weight:500;color:var(--ink)}
.design-detail{font-size:14px;color:var(--ink2);line-height:1.5;text-align:center;max-width:540px;margin:48px auto 0}

/* ===== COMPARE ===== */
.compare-grid{display:grid;grid-template-columns:1fr 1fr;gap:32px;margin-top:48px}
.cmp-card{background:#fff;border:1px solid #eee;border-radius:28px;padding:36px}
.cmp-title{font-size:24px;font-weight:500;line-height:30px;color:var(--ink);min-height:60px}
.cmp-actions{display:flex;align-items:center;gap:20px;margin-top:24px}
.viewing{color:var(--ink2);font-size:15px;font-weight:500}
.cmp-img{position:relative;background:var(--cream);border-radius:20px;height:420px;display:flex;align-items:center;justify-content:center;margin-top:28px}
.cmp-img .finish-img{max-height:340px;max-width:86%}

/* ===== ACCESSORIES ===== */
.accessories{text-align:center}
.center-link{display:inline-block;margin-top:14px}
.acc-card{position:relative;background:var(--card);border-radius:28px;padding:32px 40px 40px;margin:48px auto 0;max-width:380px;display:flex;flex-direction:column;align-items:stretch;gap:0;text-align:left}
.new-pill{position:absolute;top:24px;left:24px;background:var(--chip-active-bg);color:var(--chip-active-tx);border-radius:100px;padding:5px 14px;font-size:13px;font-weight:500;z-index:2}
.acc-card-img{display:flex;justify-content:center;padding:24px 0 28px}
.acc-card-img img{max-height:200px;width:auto}
.acc-card-title{font-size:22px;font-weight:500;color:var(--ink);line-height:1.3}
.acc-card-desc{font-size:14px;color:var(--ink2);margin-top:12px;line-height:1.5}
.acc-card-price{font-size:16px;font-weight:500;margin-top:16px;color:var(--ink)}
.acc-card .btn-buy{margin-top:18px;align-self:flex-start;height:48px;padding:0 28px}

/* ===== INSTALL ===== */
.install-grid{display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center}
.install-sub{font-size:16px;color:var(--ink2);margin-top:18px}
.install-pt{margin-top:32px}
.install-pt h3,.install-h{font-size:18px;font-weight:500;color:var(--ink)}
.install-pt p{font-size:15px;color:var(--ink2);margin-top:8px;line-height:1.5}
.install-photo{width:100%;aspect-ratio:1/1;border-radius:28px;background:var(--cream);display:flex;align-items:center;justify-content:center;overflow:hidden}
.install-photo img{width:80%;height:auto;object-fit:contain}

/* ===== WHY BUY ===== */
.whybuy{text-align:center}
.why-row{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:56px}
.why-card{background:var(--card);border-radius:28px;padding:48px 32px;display:flex;flex-direction:column;align-items:center;gap:16px}
.why-ic{color:#3c4043;line-height:0;display:inline-flex}
.why-ic svg{display:block}
.why-card h3,.why-h{font-size:20px;font-weight:500;color:var(--ink)}

/* ===== FAQ ===== */
.faq-grid{display:grid;grid-template-columns:.78fr 1.22fr;gap:56px;align-items:start}
.faq-head .sec-h2{font-size:22px;line-height:26px;letter-spacing:normal}
.faq-list .accordion{margin-top:0}
/* match live page: longer questions wrap to two lines, roomier rows */
.faq .acc-head{font-size:16px;font-weight:500;padding:22px 4px;line-height:1.4}
.faq .acc-head span:first-child,.faq .acc-head{align-items:flex-start}
.faq .acc-body p{font-size:14px;padding:0 4px 20px}
.faq .chev{font-size:16px;margin-top:3px}

/* ===== CROSS-SELL ===== */
.crosssell{max-width:none;width:100%;padding:0;background:#fff}
.shop-rail{max-width:var(--maxw);margin:0 auto;background:var(--card);border-radius:28px;padding:64px 56px 56px;}
.shop-rail-h{font-size:24px;font-weight:500;margin-bottom:40px}
.rail-cols{display:grid;grid-template-columns:repeat(3,1fr);gap:32px}
.rail-col h3,.rail-h{font-size:15px;font-weight:500;margin-bottom:14px;color:var(--ink)}
.rail-h2{margin-top:36px}
.rail-col a{display:block;font-size:14px;color:var(--ink2);padding:8px 0}
.rail-col a:hover{color:var(--blue)}
.rail-footnote{margin-top:40px;font-size:11px;line-height:1.65;color:var(--ink2);max-width:none}
.rail-footnote p{margin-bottom:12px}
.rail-footnote strong{color:var(--ink)}
.rail-footnote a{color:var(--linkblue);text-decoration:underline}

/* ===== FOOTER ===== */
.gfooter{background:var(--card);margin-top:64px}
.gfooter-inner{max-width:1280px;margin:0 auto;padding:72px 24px 110px}/* extra bottom padding clears the fixed .buybar so the disclaimer row is never hidden behind it */
.gfooter-brand{font-size:26px;font-weight:500;letter-spacing:-.5px;margin-bottom:48px}
.gfooter-cols{display:grid;grid-template-columns:repeat(4,1fr);gap:32px;padding-bottom:48px;border-bottom:1px solid var(--hair)}
.gf-col h3,.gf-h{font-size:15px;font-weight:500;margin-bottom:14px}
.gf-col a{display:block;font-size:13px;color:var(--ink2);padding:8px 0}
.gfooter-bottom{display:flex;justify-content:space-between;align-items:center;padding-top:28px;flex-wrap:wrap;gap:16px}
.gf-region{font-size:13px;color:var(--ink2)}
.gf-region a{color:#1f2122}
.gf-social{display:flex;gap:18px;font-size:18px}
.gf-social a{color:#1f2122}
.gf-disclaimer{width:100%;padding-top:18px;margin-top:8px;border-top:1px solid var(--hair);font-size:13px;line-height:1.5;color:var(--ink2)}

/* ===== STICKY BOTTOM BUY BAR (desktop + mobile, matches live) ===== */
.buybar{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:92;background:#fff;box-shadow:0 -2px 12px rgba(0,0,0,.12);align-items:center;justify-content:space-between;gap:16px;padding:14px 28px}
.buybar-info{display:flex;flex-direction:column;gap:2px;min-width:0}
.buybar-name{font-size:16px;font-weight:700;line-height:24px;color:var(--ink)}
.buybar-price{font-size:15px;color:var(--ink)}
.buybar-price s{color:var(--ink2);font-size:13px;margin-left:4px}
.buybar-fin{font-size:13px;color:var(--ink2)}
.buybar .btn-buy{flex-shrink:0;height:48px;padding:0 32px}

/* ===== reveal on scroll ===== */
.reveal{opacity:0;transform:translateY(28px);transition:opacity .7s ease,transform .7s ease}
.reveal.in{opacity:1;transform:none}


/* ===== spec comparison matrix (icon-led rows) ===== */
.spec-matrix{margin-top:8px}
.spec-row{display:grid;grid-template-columns:1fr 1fr;gap:32px;padding:40px 0 8px}
.spec-cell{display:flex;flex-direction:column}
.spec-ic{color:#3c4043;line-height:0;margin-bottom:22px;display:inline-flex}
.spec-ic svg{display:block}
.spec-h{font-size:18px;font-weight:500;color:var(--ink);line-height:1.35;margin-top:18px}
.spec-h:first-of-type{margin-top:0}
.spec-sub{font-size:14px;font-weight:400;color:var(--ink2);margin-top:4px;line-height:1.5}
.spec-cell .link-arrow{margin-top:10px;font-size:14px}
.spec-dash{color:var(--ink2)}
.compare-all-wrap{text-align:center;margin-top:40px}
.compare-all{padding:0 40px}

/* ===== footnotes ===== */
.footnotes{font-size:11px;line-height:1.65;color:var(--ink2);margin-top:72px;max-width:none}
.footnotes p{margin-bottom:12px}
.footnotes a{color:var(--linkblue)}

/* ============ DESKTOP bottom-half density (>=1025) ============ */
@media (min-width:1025px){
  .savings{padding:100px 0}
  .hero-media{min-height:720px}
  .video-panel video{aspect-ratio:1.7/1}
  /* add height to the comparison + lower blocks where ref is taller */
  .spec-row{padding:52px 0 14px}
  .compare-grid{margin-top:56px}
  .cmp-card{padding:40px}
  .faq{padding-top:140px;padding-bottom:140px}
  .faq .acc-head{padding:22px 4px;font-size:16px}
  .crosssell .shop-rail{padding:56px}
}

/* ============ TABLET (901–1024) ============ */
@media (max-width:1024px) and (min-width:769px){
  .gnav-links{gap:12px}
  .gnav-links a{font-size:13px}
  section{padding:80px 24px}
  .savings{padding:80px 0}
  .icon-row{grid-template-columns:repeat(3,1fr);row-gap:40px}
  .caption-row{grid-template-columns:repeat(2,1fr)}
  .rail-cols,.gfooter-cols{grid-template-columns:repeat(2,1fr)}
}

/* ============ MOBILE + SMALL TABLET (<=768, matches ref capture) ============ */
@media (max-width:768px){
  body{padding-bottom:0}
  /* nav -> hamburger + G */
  .gnav-inner{gap:10px;padding:0 12px;height:56px}
  .gnav-menu{width:42px;height:42px}
  .gnav-icons{gap:2px}
  .gnav-signin{padding:8px 16px;font-size:13px;margin-left:4px}

  /* capsule sticks top, full width, chips persist */
  .capsule-wrap{top:8px}
  .capsule{height:auto;flex-direction:column;align-items:stretch;gap:12px;padding:14px 16px;border-radius:24px;width:calc(100% - 24px)}
  .capsule-title{font-size:15px;white-space:normal}
  .capsule-chips{justify-content:flex-start;flex-wrap:wrap}
  .capsule-right{display:none}

  /* HERO reflow: carousel TOP, swatches+label, price, then H2 below product */
  section{padding:32px 16px}
  .hero{padding-top:20px}
  .hero-grid{display:flex;flex-direction:column;background:transparent;border-radius:0;gap:0}
  .hero-media{order:1;background:var(--cream);border-radius:28px;min-height:0;padding:48px 16px 72px}
  .finish-img{max-height:400px;max-width:94%}
  .hero-copy{order:2;background:transparent;padding:28px 4px 0}
  .hero-h1{font-size:44px;line-height:50px;letter-spacing:-.5px;order:5;margin-top:22px}
  .hero-sub{order:4}
  .swatches{order:2;margin-top:20px}
  .color-label{order:3}
  .price-row{order:6}
  .financing{order:7}
  .hero-buy{display:none}
  .hero-copy{display:flex;flex-direction:column}

  .carousel-ctrl{position:static;margin-top:14px}

  .sec-h2{font-size:22px;line-height:28px}
  .icon-row{grid-template-columns:1fr 1fr;gap:28px;margin-top:40px}
  .icon-feat p{max-width:none}
  .compat-card{flex-direction:column;text-align:center;gap:16px;padding:28px 22px}

  .savings-grid{grid-template-columns:1fr;gap:32px}
  .savings-media{order:-1}
  .savings-copy{max-width:none}
  .savings-photo{aspect-ratio:16/11}

  .video-panel video{aspect-ratio:1.1/1}
  .design-detail{margin-top:32px}
  .caption-row{grid-template-columns:1fr;gap:0;margin-top:40px}
  .cap-col{border-top:1px solid var(--hair);padding:16px 0}
  .cap-col .cap-tab{display:none}
  .why-row{grid-template-columns:1fr;gap:16px}

  .compare-grid{grid-template-columns:1fr;gap:20px;margin-top:36px}
  .cmp-card{padding:24px}
  .cmp-title{min-height:0}

  .acc-card{grid-template-columns:1fr;padding:28px 20px;text-align:center}
  .acc-card-body{text-align:center}
  .acc-card .btn-buy{margin:22px auto 0}

  .install-grid{grid-template-columns:1fr;gap:28px}
  .install-media{order:-1}

  .faq-grid{grid-template-columns:1fr;gap:24px}
  /* phone FAQ: denser rows like the live mobile page */
  .faq .acc-head{padding:16px 4px;line-height:1.35;font-size:15px}
  .faq .chev{margin-top:1px}

  .spec-row{grid-template-columns:1fr;gap:24px;padding:28px 0 0}
  .spec-cell{padding-bottom:8px}


  .shop-rail{padding:32px 20px 28px}
  .shop-rail-h{margin-bottom:24px}
  .rail-cols{grid-template-columns:1fr 1fr;gap:8px 24px}
  .rail-col a{padding:5px 0}
  .rail-h2{margin-top:24px}
  .rail-footnote{margin-top:24px;line-height:1.5;font-size:10px}
  .rail-footnote p{margin-bottom:10px}
  .gfooter-inner{padding:40px 20px 128px}/* clears the taller 106px mobile .buybar */
  .gfooter-brand{margin-bottom:32px}
  .gfooter-cols{grid-template-columns:1fr 1fr;gap:24px;padding-bottom:32px}
  .gf-col a{padding:5px 0}

  /* bottom buy bar */
  .buybar{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:92;background:#fff;box-shadow:0 -2px 10px rgba(0,0,0,.12);height:106px;align-items:center;justify-content:space-between;gap:12px;padding:0 16px}
  .buybar-info{display:flex;flex-direction:column;gap:2px;min-width:0}
  .buybar-name{font-size:13px;font-weight:500;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .buybar-price{font-size:15px;color:var(--ink)}
  .buybar-price s{color:var(--ink2);font-size:13px}
  .buybar-fin{font-size:11px;color:var(--ink2)}
  .buybar .btn-buy{flex-shrink:0;height:48px;padding:0 28px}
  main{padding-bottom:106px}
  .gfooter{margin-bottom:106px}
}

/* ==== small-tablet refinements (601–768): roomier than phone ==== */
@media (max-width:768px) and (min-width:601px){
  section{padding:52px 28px}
  .hero{padding-top:24px}
  .hero-media{padding:56px 24px 80px;min-height:520px}
  .finish-img{max-height:480px;max-width:80%}
  .hero-h1{font-size:46px;line-height:52px}
  .hero-copy{padding:36px 4px 0;max-width:600px;margin:0 auto;width:100%}
  .icon-row{grid-template-columns:repeat(5,1fr);gap:14px}
  .icon-feat p{font-size:12px}
  .caption-row{grid-template-columns:repeat(4,1fr);gap:20px}
  .why-row{grid-template-columns:repeat(3,1fr)}
  .savings-photo{aspect-ratio:5/4;max-width:none}
  .acc-card{max-width:420px}
  .spec-row{grid-template-columns:1fr 1fr;gap:28px}
  .rail-cols{grid-template-columns:repeat(3,1fr)}
  .gfooter-cols{grid-template-columns:repeat(4,1fr)}
}

/* underline inline prose links for a11y (link-in-text-block) */
.icon-feat a,.install-pt p a,.footnotes a,.gf-region a{text-decoration:underline}

/* === AUDIT-2026-06-29 consolidated fidelity fixes === */

/* (1) base / no-MQ — global tokens, utilities, section-scoped all-width fixes */
:root{--linkblue:#0B57D0}
.link-arrow{letter-spacing:.1px}
.play-link{letter-spacing:.1px}
.footnotes a,.rail-footnote a{letter-spacing:.1px}
.gnav-signin{line-height:18px;text-align:center}
.hero-sub{color:#191C1D}
.overview-feat .play-link{line-height:24px}
.overview-feat .icon-feat p{font-size:16px;font-weight:500;line-height:24px;letter-spacing:.1px;color:var(--ink)}
.savings-photo video{width:100%;height:100%;object-fit:cover;display:block}
.feat-ic img{width:32px;height:32px}
.design .cap-col:has(.cap-tab.active) p{color:#191C1D}
.compare .price-now,.compare .price-now-lg{font-size:16px;line-height:24px;letter-spacing:.1px;font-weight:500;color:var(--ink)}
.compare .cmp-actions .link-arrow{letter-spacing:.1px}
.acc-card-price{letter-spacing:.1px}
.accessories .link-arrow{letter-spacing:.1px}
.install-sub{font-size:16px;color:var(--ink);margin-top:18px}
.install-pt p{font-size:16px;color:var(--ink);margin-top:8px;line-height:1.5}
.install .play-link,.install-pt p a{color:var(--blue)}
.install .play-circle{border-color:var(--blue)}
.install .play-link.small{font-size:16px;line-height:24px;letter-spacing:.1px}
.why-card h3,.why-h{font-size:20px;font-weight:500;color:var(--ink);line-height:26px}
.why-ic img{width:40px;height:40px}
.faq .footnotes{font-size:12px;line-height:18px}
.faq .footnotes a{color:#0b57d0;letter-spacing:.1px}
.crosssell .rail-col a{font-size:16px;line-height:24px;color:var(--ink)}
.gfooter .gf-h,.gfooter .gf-col h3{font-size:16px;font-weight:700;line-height:26px}
.gfooter .gf-col a{font-size:14px;line-height:22px;color:var(--ink)}
.gfooter .gf-region{font-size:11px;line-height:16px;color:var(--ink)}
.gfooter .gf-region a{color:var(--ink)}
.crosssell .rail-footnote a,.footnotes a{color:var(--blue)}

/* (2) DESKTOP min-width:1025 — items tagged breakpoint "1440" (LEAK GUARD: size bumps stay inside this min-width query so they cannot leak to 768/390) */
@media (min-width:1025px){
  .nest-pills .chip{font-size:16px;line-height:24px}
  .overview-feat .sec-h2{font-size:40px;line-height:48px}
  .overview-feat .compat-card .link-arrow{letter-spacing:.1px;text-align:center}
  .design .sec-h2{font-size:40px;line-height:48px}
  .design .cap-col p{font-size:20px;line-height:26px;color:#444748}
  .design .caption-row{text-align:center}
  .compare .sec-h2{font-size:48px;line-height:56px;letter-spacing:-0.5px}
  .accessories .sec-h2{font-size:40px;line-height:48px}
  .acc-card-title{font-size:20px;line-height:26px}
  .install .sec-h2{font-size:40px;line-height:48px;letter-spacing:normal}
  .install-pt h3,.install-h{font-size:20px;font-weight:500;color:var(--ink);line-height:26px}
  .faq .faq-head .sec-h2{font-size:32px;line-height:40px}
  .faq .acc-head{font-size:20px;line-height:26px}
  .crosssell .shop-rail-h{font-size:32px;line-height:40px}
  .crosssell .rail-h,.crosssell .rail-col h3{font-size:20px;line-height:26px}
}

/* (2b) DESKTOP min-width:769 — install copy alignment (note: "@media min-width:769") */
@media (min-width:769px){
  .install .install-copy{text-align:left}
  .install .play-link{text-align:left;justify-content:flex-start}
}

/* (3) SMALL-TABLET 601–768 — install .sec-h2 only (per §6: 390 deliberately left at 22/28) */
@media (max-width:768px) and (min-width:601px){
  .install .sec-h2{font-size:24px;line-height:30px}
}

/* (4) MOBILE max-width:768 — items tagged breakpoint "768" */
@media (max-width:768px){
  .gnav-signin{font-size:14px}
  .nest-pills .chip{font-size:14px;line-height:20px}
  .overview-feat .sec-h2{font-size:24px;line-height:30px}
  .overview-feat .icon-feat{align-items:flex-start}
  .overview-feat .icon-feat p{text-align:left}
  .design .sec-h2{font-size:24px;line-height:30px}
  .design .cap-col p{font-size:18px;line-height:22px}
  .accessories .sec-h2{font-size:24px;line-height:30px}
  .acc-card-title{font-size:18px;line-height:22px;text-align:left}
  .acc-card{text-align:left}
  .acc-card-body{text-align:left}
  .acc-card .btn-buy{margin:18px 0 0}
  .install .install-copy{text-align:center}
  .install-pt h3,.install-h{font-size:18px;line-height:22px}
  .faq .acc-head{font-size:18px;line-height:22px}
  .crosssell .shop-rail-h{font-size:22px;line-height:26px}
  .crosssell .rail-h,.crosssell .rail-col h3{font-size:18px;line-height:22px}
}

/* (5) small-phone why-h override REMOVED 2026-07-03 — measured live 390 keeps 20/26 */

/* === HERO + NAV FIDELITY PASS (2026-06-29) — gaps 1-5 === */

/* (A) GLOBAL NAV — full desktop link bar (live shows links between logo and icons) */
.gnav-inner{justify-content:flex-start}
.gnav-links{align-items:center;gap:22px;flex:0 1 auto;margin-left:20px;overflow:visible}
.gnav-icons{margin-left:auto}
.gnav-stores{display:flex;align-items:center;gap:6px;color:#5f6368;font-size:14px;font-weight:500;padding:0 8px;height:40px;border-radius:20px}
.gnav-stores:hover{background:#f1f3f4;text-decoration:none}
.gnav-stores svg{color:#5f6368}
@media (min-width:1025px){
  .gnav-menu{display:none}
  .gnav-links{display:flex}
}
@media (max-width:1024px){
  .gnav-links,.gnav-stores{display:none}
}

/* (B) PRODUCT SUBNAV — title left, chips, price + Buy right; sticky white bar */
.nest-pills{position:sticky;top:0;z-index:91;margin:0;padding:0;background:#fff;pointer-events:auto;display:block;justify-content:initial}
.subnav-inner{max-width:1128px;margin:0 auto;display:flex;align-items:center;gap:0;padding:14px 24px}
.subnav-title{font-size:16px;font-weight:700;line-height:20px;color:var(--ink);white-space:nowrap}
.nest-pills .capsule-chips{background:none;box-shadow:none;padding:0;margin-left:44px;display:inline-flex;gap:8px;flex:0 0 auto}
.subnav-right{margin-left:auto;display:flex;align-items:center;gap:22px}
.subnav-price{display:flex;flex-direction:column;align-items:flex-end;line-height:1.2}
.sn-price{font-size:16px;font-weight:500;color:var(--ink);line-height:20px}
.sn-fin{font-size:12px;color:var(--ink2);line-height:16px}
.sn-buy{height:48px;padding:0 30px}

/* (C) HERO — price block, swatches bottom-left, carousel control bottom-right */
.hero-copy{justify-content:space-between;padding:64px 40px 48px 64px}
.hero-copy-top{display:flex;flex-direction:column}
.hero-price{margin-top:26px;display:flex;flex-direction:column;align-items:flex-start}
.hero-price-now{font-size:22px;font-weight:500;line-height:28px;color:var(--ink)}
.hero-fin{font-size:13px;color:var(--ink2);margin-top:6px;line-height:18px}
.hero-buy{margin-top:22px;align-self:flex-start;height:40px;padding:0 26px;font-size:14px}
.hero-pick{margin-top:40px}
.hero .swatches{margin-top:0;gap:12px}
.hero .swatch{width:40px;height:40px}
.hero .swatch-dot{width:32px;height:32px}
.hero .swatch input:checked + .swatch-dot{box-shadow:0 0 0 2px #fff,0 0 0 3px var(--blue)}
.hero .color-label{margin-top:16px}

/* carousel control: white rounded pill, bottom-right of hero card (overrides the hide rule above) */
.hero .carousel-ctrl{display:flex;position:absolute;bottom:24px;right:24px;background:#fff;border-radius:100px;box-shadow:0 1px 6px rgba(0,0,0,.18);padding:5px 8px;gap:4px;z-index:3}
.hero .car-arrow{width:32px;height:32px;font-size:22px;color:#3c4043;display:flex;align-items:center;justify-content:center}
.hero .car-count{font-size:13px;min-width:34px}

/* (D) TABLET (769–1024): keep subnav readable */
@media (max-width:1024px) and (min-width:769px){
  .nest-pills .capsule-chips{margin-left:24px}
  .subnav-right{gap:14px}
}

/* (E) MOBILE (<=768): subnav -> centered chips only; hero stacks image/headline/price */
@media (max-width:768px){
  .subnav-title,.subnav-right{display:none}
  .nest-pills .capsule-chips{margin-left:0}
  .subnav-inner{justify-content:center;padding:10px 16px}
  .nest-pills{box-shadow:0 2px 10px rgba(0,0,0,.10)}

  /* text sits on white below the image card (live mobile), not on the beige card */
  .hero-card{background:transparent;padding-top:0}
  .hero-copy{justify-content:flex-start;padding:0 4px 28px}
  .hero-copy-top{order:1;display:flex;flex-direction:column}
  /* keep natural DOM order inside the copy: headline -> sub -> price (old order:N rules don't apply) */
  .hero-copy-top .hero-h1{order:0;margin-top:22px}
  .hero-copy-top .hero-sub{order:0}
  .hero-copy-top .hero-price{order:0}
  .hero-pick{order:2;margin-top:26px}
  .hero-price{margin-top:18px}
  .hero-buy{display:none}
  .hero .carousel-ctrl{position:static;margin-top:16px;align-self:center}
}

/* === FABLE PASS 2026-07-03 — measured-delta + filmstrip fixes (appended LAST, wins) === */

/* (a) Google Sans application map (measured: live H1s/prices/buttons/footer = "Google Sans",
   body copy = "Google Sans Flex", Sign in = "Google Sans Text") */
.hero-h1,.sec-h2,.cmp-title,.compat-text,.capsule-title,.subnav-title,.buybar-name,
.gfooter-brand,.acc-card-title,.why-h,.why-card h3,.install-pt h3,.install-h,
.shop-rail-h,.rail-h,.rail-col h3,.gf-h,.gf-col h3,.acc-head,.faq .acc-head,
.price-now,.price-now-lg,.hero-price-now,.sn-price,.acc-card-price,.buybar-price,
.btn-buy,.chip,.link-arrow,.play-link,.gnav-links a,.gnav-stores,.gnav-logo{font-family:var(--font-gs)}
.gnav-signin{font-family:"Google Sans Text",var(--font-gs)}

/* (b) gnav measured: links rgb(60,64,67) lh21 */
.gnav-links a{line-height:21px}

/* (c) savings — live: warm-gray compact rows on cream, media column WIDER than copy */
.savings-grid{grid-template-columns:0.88fr 1.12fr}
.savings-copy{max-width:440px}
#savingsAcc .acc-item{background:#EDEBE6;border-radius:16px}
#savingsAcc .acc-head{padding:16px 18px;font-size:16px;line-height:24px}
.savings-photo{max-width:none;aspect-ratio:4/5}
.savings .eyebrow{font-size:16px;font-weight:400;letter-spacing:normal;color:var(--ink)}

/* (d) compat callout — bigger product thumb (live ~88px) */
.compat-thumb{width:88px;height:88px}

/* (e) compare — "Compare all" pill sits under the heading (markup moved) */
.compare-all-wrap.under-head{margin:28px 0 0;text-align:center}

/* (f) color label / farsight captions — measured live values */
.color-label{font-size:14px;font-weight:400;letter-spacing:normal;color:var(--ink2)}

/* (g) footer link leading (measured lh24) */
.gfooter .gf-col a{line-height:24px}

/* (h) mobile: hero order (swatches ABOVE headline), slide dots not ‹1/3›,
   single-column icon row, farsight chevron rows, compare snap-carousel */
@media (max-width:768px){
  .hero-copy-top{order:2}
  .hero-pick{order:1;margin-top:20px}
  .hero .carousel-ctrl{box-shadow:none;background:none;padding:0}
  .hero .car-arrow,.hero .car-count{display:none}
  .car-dots{display:flex;gap:8px;align-items:center;justify-content:center}
  .car-dots .dot{width:8px;height:8px;border-radius:50%;background:#c4c7c5;border:none;padding:0;transition:background .2s}
  .car-dots .dot.on{background:#191C1D}
  .design .cap-col{display:flex;justify-content:space-between;align-items:center}
  .design .cap-col::after{content:"\2304";color:#191C1D;font-size:16px;line-height:1;margin:-6px 4px 0 12px}
  .design .cap-col p{color:#191C1D}
  .compare-grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:16px;margin:36px -16px 0;padding:0 16px 8px;scrollbar-width:none}
  .compare-grid::-webkit-scrollbar{display:none}
  .compare-grid .cmp-card{flex:0 0 84%;scroll-snap-align:center}
}
@media (max-width:600px){
  .icon-row{grid-template-columns:1fr;gap:32px}
}
@media (min-width:769px){
  .car-dots{display:none}
}

/* === FABLE PASS 2026-07-04 (round 2) — Trent eye-gate fixes, mobile (appended LAST, wins) === */
@media (max-width:768px){
  /* (1) HERO too small + color picker dead: on mobile .hero-media had min-height:0 and the
     carousel-track (flex:1 with position:absolute slides) collapsed to ZERO height, so the
     product image overflowed DOWNWARD and floated on top of the swatches — making the hero
     read as small AND making the color swatches untappable (taps hit the image, not the input,
     confirmed via elementFromPoint). Fix: let the ACTIVE slide be position:relative so the
     track self-sizes to the product (no overflow, no collapse), and show the product bigger. */
  #heroCarousel{width:100%;min-height:0}
  #heroCarousel .carousel-track{position:relative;flex:0 0 auto;min-height:0}
  #heroCarousel .slide.slide-active{position:relative;inset:auto;width:100%;height:auto}
  .hero-media{order:1;min-height:0;padding:24px 16px 12px}
  .finish-img{max-height:440px;max-width:94%}
  /* swatches now sit cleanly below the product image, fully tappable */
  .hero-pick{position:relative;z-index:2}

  /* (2) "Smarter ways to save" animation tiny (136px wide): the desktop FABLE refinements
     .savings-grid{grid-template-columns:0.88fr 1.12fr} and .savings-photo{aspect-ratio:4/5}
     (lines ~649-653) were written WITHOUT a media query, so they leaked into mobile and
     defeated the earlier mobile 1-column rule — cramming the 592x592 square video into a
     tiny side column. Re-assert single-column + a SQUARE box on mobile so the whole
     animation shows full-width and large (not zoomed/cropped). */
  .savings-grid{grid-template-columns:1fr !important;gap:32px}
  .savings-media{order:-1}
  .savings-copy{max-width:none}
  .savings-photo{aspect-ratio:1 / 1 !important;max-width:none;width:100%}
}
