/* tiretally.com/features and /features/<slug>: on top of the homepage styles (same tokens, buttons, browser and
   phone frames, FAQ). Pages are made by src/features.js from src/features-content.js. */
.fpage section{padding-block:88px}
.crumbs{display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding-top:28px;font-size:14px;color:var(--muted)}
.crumbs a{color:inherit;text-decoration:none}.crumbs a:hover{color:var(--ink);text-decoration:underline}
.crumbs span[aria-current]{color:var(--ink)}

.f-hero{padding-block:40px 72px}
.f-hero h1{font-size:clamp(42px,5.4vw,76px);max-width:14ch;margin:10px 0 20px}
.f-hero .lead{font-size:19px;color:var(--muted);max-width:52ch;margin:0 0 20px;line-height:1.55}
.f-group{margin:0;font:700 13px var(--body);letter-spacing:.06em;text-transform:uppercase}
.f-group a{color:var(--muted);text-decoration:none}.f-group a:hover{color:var(--ink)}
.f-tags{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:24px}
.f-tags .pill{display:inline-block;font:650 12.5px/1 var(--body);color:var(--ink);background:var(--marker);border-radius:999px;padding:7px 12px}
.f-tags .pill.quiet{background:none;color:var(--muted);border:1px solid var(--line)}
.f-hero .actions{display:flex;flex-wrap:wrap;gap:12px}
.f-media{margin-top:44px}
.f-split{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:48px;align-items:center}
.f-split .f-media{margin-top:0;display:flex;justify-content:center}
.f-split .phone,.f-secs .phone{width:100%;max-width:300px}
.f-pic{background:var(--wash);border-radius:18px;padding:22px;display:flex;justify-content:center}
.f-pic img{width:100%;max-width:560px;border-radius:10px;box-shadow:0 10px 30px -12px rgba(11,18,32,.25)}

.f-h2{font-size:clamp(34px,4.4vw,56px);margin-bottom:32px}
.f-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
.f-steps li{background:var(--white);border:1px solid var(--line);border-radius:20px;padding:22px}
.f-steps .step{display:inline-grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--marker);color:var(--marker-ink);font:800 14px var(--head);margin-bottom:12px}
.f-steps p{margin:0;font-size:17px;line-height:1.45}

.f-secs{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:44px 56px;align-items:start}
.f-sec h2{font-size:clamp(28px,3vw,38px);margin-bottom:14px}
.f-sec p{color:var(--muted);font-size:17.5px;line-height:1.55;margin:0;max-width:52ch}
.f-sec .facts{margin:20px 0 0}
.f-secs .f-media{margin-top:0;display:flex;justify-content:center}

.f-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px}
.f-grid:has(> :only-child){grid-template-columns:minmax(0,520px)} /* one card: card width, not the whole row */
.f-card{display:flex;flex-direction:column;gap:10px;background:var(--white);border:1px solid var(--line);border-radius:20px;padding:24px;color:inherit;text-decoration:none;
  transition:transform var(--duration-default,.2s) var(--ease-standard,ease),box-shadow var(--duration-default,.2s) var(--ease-standard,ease),border-color .2s}
.f-card:hover{transform:translateY(-3px);box-shadow:0 24px 48px -28px rgba(11,18,32,.35);border-color:var(--outline)}
.f-card h3{font-size:21px}
.f-card p{margin:0;color:var(--muted);font-size:15.5px;line-height:1.5;flex:1}
.f-card .more{display:block;font-weight:650;margin-top:6px} /* not the homepage .more grid */
.f-card:hover .more span{display:inline-block;transform:translateX(3px);transition:transform .15s}
.f-all{margin:24px 0 0}.f-all a{font-weight:650;color:var(--ink)}
.f-jump{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.f-jump a{border:1px solid var(--line);border-radius:999px;padding:9px 14px;font-weight:600;font-size:15px;color:var(--ink);text-decoration:none;background:var(--white)}
.f-jump a:hover{border-color:var(--outline)}

/* Desktop and phone together (feature hero), and one row per section with its picture */
.f-duo{position:relative;padding:0 9% 34px 0}
.f-duo .browser{width:100%}
.f-duo .phone{position:absolute;right:0;bottom:0;width:23%;max-width:240px}
.f-rows{display:grid;gap:72px}
.f-row{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:56px;align-items:center}
.f-row.rev .f-sec{order:2}
.f-row.solo{grid-template-columns:minmax(0,1fr)}
.f-row .f-media{margin-top:0;display:flex;justify-content:center}
.f-row .f-media.is-phone .phone{width:100%;max-width:280px}
.f-row .browser{width:100%}

/* Homepage: "Learn more" on the feature blocks and the strip of other features */
.learn{display:inline-flex;gap:6px;align-items:center;font-weight:650;color:var(--ink);text-decoration:none;margin:8px 4px 0}
.learn:hover{text-decoration:underline}

@media (max-width:899px){
  .f-split{grid-template-columns:1fr;gap:36px}
  .f-row,.f-row.rev{grid-template-columns:1fr;gap:28px}
  .f-row.rev .f-sec{order:0}
  .f-rows{gap:56px}
  .fpage section{padding-block:64px}
}
@media (max-width:640px){
  .f-hero{padding-block:24px 48px}
  .f-hero .lead{font-size:17.5px}
  .f-hero .actions .btn{flex:1 1 100%}
  .f-split .phone,.f-secs .phone{max-width:260px}
  .f-duo{padding:18% 12% 26px 0} /* the phone is taller than the browser beside it: room above it */
  .f-duo .phone{width:34%}
  .f-row .f-media.is-phone .phone{max-width:240px}
  .f-secs{gap:36px}
  .f-sec p{font-size:16.5px}
  .fpage .faq{grid-template-columns:1fr;gap:16px}
}
.more .pic img[height="844"]{max-width:190px;border-radius:14px 14px 0 0}

/* Help center: /help and /help/<slug> (src/help.js) */
.h-hero .wrap{display:grid;grid-template-columns:minmax(0,1fr);gap:36px}
.h-hero h1{max-width:20ch}
.h-videos{display:grid;gap:28px;align-items:start;width:100%}
.h-videos.n2{grid-template-columns:minmax(0,1fr) minmax(240px,.36fr);align-items:center} /* computer video first (wide), phone beside it */
.h-video{margin:0;display:flex;flex-direction:column;gap:10px;align-items:center}
.h-video figcaption{font:600 14px var(--body);color:var(--muted)}
.h-video .browser video{display:block;width:100%;height:auto;background:#0f1215}.h-video .phone>video{height:auto;background:#0f1215}
.h-video.v-desktop .browser{width:100%;max-width:960px}
.h-video.v-phone .phone{width:100%;max-width:min(340px,calc(72svh * 0.46))}

.h-video.v-phone .phone{margin-inline:auto}
.h-body{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:56px;align-items:start}
.h-steps{list-style:none;margin:0;padding:0;display:grid;gap:14px;counter-reset:none}
.h-steps>li{display:flex;gap:16px;background:var(--white);border:1px solid var(--line);border-radius:20px;padding:22px;scroll-margin-top:100px}
.h-steps .step{flex:none;display:inline-grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--marker);color:var(--marker-ink);font:800 15px var(--head)}
.h-steps h3{font-size:21px;margin:2px 0 8px;line-height:1.15}
.h-steps>li p{margin:0;color:var(--muted);font-size:16.5px;line-height:1.55}
.h-side{display:grid;gap:16px;position:sticky;top:100px}
.h-tips{background:var(--white);border:1px solid var(--line);border-radius:20px;padding:22px}
.h-tips h3{font-size:19px}.h-tips .facts{margin:14px 0 0;font-size:15.5px}
.h-ask{margin:0;color:var(--muted);font-size:15px}.h-ask a{color:var(--ink)}
.h-search{display:block;margin-top:8px;max-width:520px}
.h-search input{width:100%;min-height:54px;border:1.5px solid var(--line);border-radius:14px;padding:0 18px;font:500 17px var(--body);background:var(--white);color:var(--ink)}
.h-search input:focus{outline:none;border-color:var(--ink)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
@media (max-width:899px){
  .h-videos.n2,.h-body{grid-template-columns:1fr}
  .h-side{position:static}
}
@media (max-width:640px){
  .h-steps>li{padding:18px;gap:12px}
  .h-steps h3{font-size:19px}
  .h-video.v-phone .phone{max-width:min(340px,88vw,calc(72svh * 0.46))}
}

/* Help article anatomy: applies-to box, parts with headings, sub-steps, callouts, field table, Q&A, helpful? */
.h-applies{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1px;margin:8px 0 0;background:var(--line);border:1px solid var(--line);border-radius:16px;overflow:hidden;max-width:880px}
.h-applies div{background:var(--white);padding:14px 16px}
.h-applies dt{font:700 12px var(--body);letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin-bottom:4px}
.h-applies dd{margin:0;font-size:15.5px;line-height:1.45;color:var(--ink)}
.h-main{min-width:0;display:grid;gap:44px}
.h-part{scroll-margin-top:100px;min-width:0}
.h-part>h2{font-size:clamp(26px,3vw,34px);margin:0 0 16px}
.h-part>p{color:var(--ink);font-size:17.5px;line-height:1.6;margin:0 0 12px;max-width:68ch}
.h-part .facts{margin:0;font-size:16.5px}
.h-box{background:var(--white);border:1px solid var(--line);border-radius:20px;padding:24px}
.h-box>h2{font-size:22px;margin-bottom:12px}
.h-check{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.h-check li{position:relative;padding-left:30px;font-size:16.5px;line-height:1.5}
.h-check li::before{content:"";position:absolute;left:0;top:3px;width:18px;height:18px;border-radius:6px;border:2px solid var(--ink)}
.h-sub{margin:12px 0 0;padding-left:20px;display:grid;gap:6px;color:var(--ink);font-size:16px;line-height:1.5}
.h-note{margin:14px 0 0 !important;padding:12px 14px;border-radius:12px;font-size:15.5px !important;line-height:1.5;color:var(--ink) !important;display:grid;gap:2px}
.h-note b{font:800 12px var(--body);letter-spacing:.06em;text-transform:uppercase}
.h-note.tip{background:#fff8d6;border-left:4px solid var(--marker)}
.h-note.imp{background:#ffeceb;border-left:4px solid #d1453b}
.h-table{overflow-x:auto;background:var(--white);border:1px solid var(--line);border-radius:16px}
.h-table table{width:100%;border-collapse:collapse;font-size:15.5px;line-height:1.5}
.h-table th,.h-table td{text-align:left;vertical-align:top;padding:12px 16px;border-top:1px solid var(--line)}
.h-table thead th{border-top:0;font:700 12px var(--body);letter-spacing:.06em;text-transform:uppercase;color:var(--muted);background:var(--wash)}
.h-table tbody th{font-weight:650;width:34%;color:var(--ink)}
.h-table td{color:var(--muted)}
.h-qa{display:grid;gap:10px}
.h-qa details{background:var(--white);border:1px solid var(--line);border-radius:14px;padding:0 18px}
.h-qa summary{cursor:pointer;padding:16px 0;font-weight:650;font-size:16.5px;list-style:none;display:flex;justify-content:space-between;gap:12px}
.h-qa summary::-webkit-details-marker{display:none}
.h-qa summary::after{content:"+";font-weight:400;font-size:22px;line-height:1;color:var(--muted)}
.h-qa details[open] summary::after{content:"–"}
.h-qa details p{margin:0 0 16px;color:var(--muted);font-size:16px;line-height:1.55}
.h-toc{background:var(--white);border:1px solid var(--line);border-radius:20px;padding:20px 22px}
.h-toc h3{font-size:15px;margin:0 0 10px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-family:var(--body)}
.h-toc ol{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.h-toc a{color:var(--ink);text-decoration:none;font-weight:600;font-size:15.5px}.h-toc a:hover{text-decoration:underline}
.h-helpful{border-top:1px solid var(--line);padding-top:24px}
.h-helpful>p{margin:0 0 12px;font-weight:650;font-size:17px}
.h-helpful .row{display:flex;flex-wrap:wrap;gap:10px}
.h-thanks{color:var(--muted)}
.h-updated{margin:-28px 0 0;color:var(--muted);font-size:14px}
@media (max-width:899px){ .h-body{grid-template-columns:1fr} .h-side .h-toc{display:none} }
@media (max-width:640px){
  .h-applies{grid-template-columns:1fr 1fr}
  .h-main{gap:36px}
  .h-box{padding:18px}
  .h-table thead{display:none}
  .h-table tr{display:block;border-top:1px solid var(--line);padding:12px 14px}
  .h-table tbody tr:first-child{border-top:0}
  .h-table th,.h-table td{display:block;padding:0;border:0;width:auto}
  .h-table td{margin-top:4px}
  .h-table tbody th{width:auto}
}

.h-start{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}
.h-start a{display:flex;gap:14px;align-items:center;background:var(--white);border:1px solid var(--line);border-radius:18px;padding:18px;color:var(--ink);text-decoration:none;height:100%}
.h-start a:hover{border-color:var(--outline)}
.h-start .step{flex:none;display:inline-grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--marker);color:var(--marker-ink);font:800 15px var(--head)}
.h-start b{display:block;font-size:16.5px;line-height:1.3}.h-start small{color:var(--muted);font-size:14px}

/* Article parts are <section>s: not the page's big section padding */
.fpage section.h-part{padding-block:0}
.fpage section.h-box{padding:24px}
.h-sub li{display:list-item;background:none;border:0;padding:0}
.h-applies{grid-template-columns:minmax(0,.9fr) minmax(0,2fr) minmax(0,1.4fr) minmax(0,.7fr)}
.h-applies.n3{grid-template-columns:minmax(0,2fr) minmax(0,1.4fr) minmax(0,.6fr)}.h-applies.n2{grid-template-columns:minmax(0,2fr) minmax(0,1fr)} /* articles without a Plan line */
@media (max-width:899px){ .h-applies{grid-template-columns:1fr 1fr} .h-applies.n4 div:nth-child(2),.h-applies.n3 div:first-child{grid-column:1/-1;order:-1} }
@media (max-width:640px){ .fpage section.h-box{padding:18px} .h-applies{grid-template-columns:1fr} }

/* Roles matrix: a real grid on every screen size (scrolls sideways inside its box on phones) */
.h-matrix table{min-width:640px}
.h-matrix thead th{text-align:center}.h-matrix thead th:first-child{text-align:left}
.h-matrix td{text-align:center;color:var(--ink);font-size:14.5px;white-space:nowrap}
.h-matrix tbody th{width:auto;min-width:180px}
@media (max-width:640px){
  .h-matrix thead{display:table-header-group}
  .h-matrix tr{display:table-row;padding:0}
  .h-matrix th,.h-matrix td{display:table-cell;padding:10px 12px;border-top:1px solid var(--line)}
  .h-matrix td{margin:0}
}
.h-matrix tbody th,.h-matrix thead th:first-child{position:sticky;left:0;background:var(--white);z-index:1}
.h-matrix thead th:first-child{background:var(--wash)}

/* ===== Enterprise look (Oct 28): same language as the homepage (blue band hero, rounded cards, blue accents). =====
   Overrides the rules above; markup unchanged. */
.fpage{--band:radial-gradient(1000px 420px at 85% -10%,var(--blue-l) 0%,rgba(61,123,255,0) 70%),radial-gradient(600px 400px at 100% 100%,var(--violet) 0%,rgba(75,47,214,0) 70%),linear-gradient(180deg,var(--blue-d) 0%,var(--blue) 100%)}
/* Breadcrumbs sit inside the blue band (no seam); one line on phones, scrolling sideways if long. */
.f-hero>.crumbs.wrap{display:flex;gap:6px;padding-top:24px;margin:0 auto 4px;color:#b9c9f5}
.f-hero>.crumbs a{color:#c9d7ff;text-decoration:none;padding:6px 0}.f-hero>.crumbs a:hover{color:#fff;text-decoration:underline;text-underline-offset:3px}
.f-hero>.crumbs>span:not([aria-current]){font-size:0;display:inline-flex;align-items:center}
.f-hero>.crumbs>span:not([aria-current])::before{content:"";width:6px;height:6px;border-right:1.5px solid #8fa8e8;border-top:1.5px solid #8fa8e8;transform:rotate(45deg);margin:0 6px 0 2px}
.f-hero>.crumbs span[aria-current]{font-weight:600}
.f-hero>.crumbs span[aria-current]{color:#fff}
.f-hero{background:var(--band);color:#fff;padding-block:0 88px;overflow:clip}
.f-hero>.wrap:not(.crumbs){padding-top:24px}
.f-hero h1{color:#fff;font-size:clamp(40px,5vw,68px);letter-spacing:-.035em;max-width:18ch}
.f-hero .lead{color:#dbe5ff;font-size:19.5px}
.f-hero .f-group,.f-hero .f-group a{color:var(--yellow)}.f-hero .f-group a:hover{color:#fff}
.f-tags .pill{background:var(--yellow);color:var(--yellow-ink);font-weight:800}
.f-tags .pill.quiet{background:rgba(255,255,255,.12);color:#fff;border:1px solid rgba(255,255,255,.3)}
.f-hero .btn.main{background:#fff;color:var(--blue-d);font-weight:800}.f-hero .btn.main:hover{background:#f2f6ff;color:var(--blue-d)}
.f-hero .btn.quiet{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.38);color:#fff}.f-hero .btn.quiet:hover{background:rgba(255,255,255,.22);color:#fff}
.f-hero .browser{border:0;box-shadow:0 0 0 6px rgba(255,255,255,.2),0 50px 100px rgba(4,16,64,.45)}
.f-hero .phone{filter:drop-shadow(0 40px 50px rgba(4,16,64,.45))}
.f-hero .f-pic{background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.3)}
.f-jump a{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.3);color:#fff;font-weight:700}
.f-jump a:hover{background:#fff;color:var(--blue-d);border-color:#fff}
.f-hero .h-search input{border:0;min-height:58px;border-radius:999px;padding:0 24px;box-shadow:0 20px 40px rgba(4,16,64,.3)}
.f-hero .h-search input:focus{outline:3px solid var(--yellow);outline-offset:2px}
.f-hero .lead a{color:#fff}
/* Help article: the facts box reads as glass on the band. */
.f-hero .h-applies{background:rgba(255,255,255,.22);border-color:rgba(255,255,255,.22);border-radius:18px}
.f-hero .h-applies div{background:rgba(6,26,77,.35)}
.f-hero .h-applies dt{color:#b9c9f5}.f-hero .h-applies dd{color:#fff}
.f-hero .h-video figcaption{color:#dbe5ff}

/* Sections and headings */
.fpage section{padding-block:96px}
.fpage .wash{background:var(--wash)}
.f-h2{font-size:clamp(32px,3.8vw,48px);letter-spacing:-.03em}
.f-sec h2{font-size:clamp(26px,2.6vw,34px);letter-spacing:-.02em}
.intro h2{letter-spacing:-.03em}

/* Cards: rounded, quiet border, blue on hover */
.f-card{border-radius:24px;padding:28px;border:1px solid var(--line);background:#fff}
.f-card:hover{border-color:var(--blue);box-shadow:0 24px 48px -28px rgba(26,86,255,.45)}
.f-card h3{font-size:20px}
.f-card .more{color:var(--blue);font-weight:800}
.wash .f-card{border-color:#fff}
.f-all a{color:var(--blue);font-weight:800;text-decoration:none}.f-all a:hover{text-decoration:underline}

/* Steps and numbers: blue instead of yellow */
.f-steps li{border-radius:24px;padding:26px;border-color:#fff}
.f-steps .step,.h-steps .step,.h-start .step{background:var(--blue);color:#fff}
.h-steps>li{border-radius:22px;border-color:var(--line)}
.h-start a{border-radius:20px}.h-start a:hover{border-color:var(--blue)}
.h-check li::before{border-color:var(--blue);border-radius:7px}
.h-toc{border-radius:22px}.h-toc a:hover{color:var(--blue)}
.h-box,.h-tips{border-radius:22px}
.h-qa details{border-radius:16px}.h-qa summary::after{color:var(--blue)}
.h-note.tip{background:#fff7d1;border-left-color:var(--yellow)}
.h-table{border-radius:18px}
.h-helpful{border-top-color:var(--line)}

/* Closing call: the homepage's gradient panel */
.fpage section.end{padding-block:24px 96px}
.fpage section.end .wrap{max-width:1200px;border-radius:36px;padding:80px 40px;color:#fff;
  background:radial-gradient(800px 400px at 50% 0%,var(--blue-l) 0%,rgba(61,123,255,0) 70%),linear-gradient(135deg,var(--blue-d) 0%,var(--violet) 100%)}
.fpage section.end h2{color:#fff}
.fpage section.end p{color:#dbe5ff}
.fpage section.end .btn.marker{min-height:56px;padding:0 30px;font-size:17px}

@media (max-width:899px){ .fpage section{padding-block:72px} }
@media (max-width:640px){
  .f-hero{padding-block:0 56px}.f-hero>.wrap:not(.crumbs){padding-top:16px}
  /* Phones: the page title is right below, so the crumb trail stops at the parent and stays on one line. */
  .f-hero>.crumbs{flex-wrap:nowrap;white-space:nowrap;overflow:hidden;font-size:14px;padding-top:18px}
  .f-hero>.crumbs span[aria-current],.f-hero>.crumbs span:has(+ span[aria-current]){display:none}
  .f-hero>.crumbs:not(:has(a ~ a)){display:none}
  .f-hero>.crumbs a{flex:none}.f-hero>.crumbs a:has(+ span + span[aria-current]){flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis} /* a long category name ends in … */ /* a top-level page: "TireTally" alone is no use as a trail */
  .f-hero h1{font-size:clamp(34px,10vw,44px)}
  .f-hero .h-applies div{padding:12px 14px}.f-hero .h-applies dd{font-size:15px}
  .f-hero .lead{font-size:17px}
  .fpage section{padding-block:56px}
  .fpage section.end{padding-block:16px 64px}
  .fpage section.end .wrap{border-radius:28px;padding:48px 22px;margin-inline:16px;width:auto}
}
