@font-face {
  font-family: "Bricolage";
  src: url("assets/bricolage.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/inter.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #f8f6f0;
  --paper: #fffefa;
  --ink: #1e211e;
  --muted: #5f625a;
  --line: #dedfd5;
  --orange: #d9512f;
  --light-orange: #ff8b62;
  --dark: #181a17;
  --display: "Bricolage", system-ui, sans-serif;
  --text: "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 15px/1.5 var(--text); }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #a53622; outline-offset: 3px; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, .brand { font-family: var(--display); }
p { text-wrap: pretty; }
.container { width: min(1232px, calc(100% - 80px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 8px; top: 8px; z-index: 5; transform: translateY(-140%); padding: 10px; background: var(--paper); }
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); background: var(--canvas); }
.header-inner { min-height: 68px; display: flex; align-items: center; gap: clamp(24px, 4vw, 60px); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 25px; font-weight: 800; letter-spacing: -.065em; line-height: 1; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--ink); display: inline-grid; place-items: center; position: relative; flex: none; }
.brand-mark::before { content: ""; width: 14px; height: 14px; border: 1.65px solid #fff8ea; border-radius: 50%; }
.brand-mark::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--light-orange); position: absolute; }
.site-header nav { display: flex; gap: 26px; font-weight: 650; font-size: 13px; color: #4d534c; }
.site-header nav a:hover, .footer-top:hover { color: #a33321; text-decoration: underline; text-underline-offset: 5px; }
.setup-button { margin-left: auto; white-space: nowrap; }
.setup-button span { font-size: 17px; line-height: 1; }

.button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; border: 1px solid transparent; border-radius: 7px; min-height: 41px; padding: 8px 14px; font-size: 13px; font-weight: 700; line-height: 1.2; transition: background-color .15s, border-color .15s, color .15s; }
.button-outline { border-color: #d1d4c8; color: var(--ink); background: transparent; }
.button-outline:hover { border-color: #9da497; background: #f0f0e8; }
.button-dark { background: var(--ink); color: var(--paper); }
.button-dark:hover { background: #383e36; }
.button-accent { background: #fa8b64; color: #231710; }
.button-accent:hover { background: #ffa27e; }

.hero { isolation: isolate; position: relative; overflow: hidden; min-height: 375px; margin-top: 29px; display: flex; align-items: center; background: var(--dark); color: #fff9ee; border-radius: 16px; }
.hero-photo { position: absolute; z-index: -2; inset: 0 0 0 33%; background: url("assets/drive-hero.jpg") center 51% / cover no-repeat; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #181a17 0%, #181a17 32%, #181a17d9 43%, #181a1707 69%); pointer-events: none; }
.hero-copy { padding: 34px clamp(30px, 5vw, 68px) 38px; max-width: 545px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: #f1bd9c; font-size: 11px; letter-spacing: .15em; font-weight: 700; }
.indicator { width: 7px; height: 7px; background: #fa8b64; border-radius: 50%; }
.hero h1 { font-size: clamp(56px, 6.5vw, 95px); line-height: .88; letter-spacing: -.087em; font-weight: 800; margin: 15px 0 20px; }
.hero h1 em { color: var(--light-orange); font-style: normal; }
.hero-description { max-width: 350px; color: #d2d4c8; font-size: 15px; line-height: 1.55; }
.hero-cta { margin-top: 21px; min-height: 43px; padding: 9px 15px; }
.hero-cta span { font-size: 17px; line-height: 1; margin-left: 8px; }

#sizes, #deals { scroll-margin-top: 18px; }
.capacity-section { padding: 33px 0 28px; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.section-heading h2 { font-size: 31px; font-weight: 800; letter-spacing: -.065em; line-height: 1.1; }
.section-heading p { color: var(--muted); font-size: 13px; margin-top: 5px; }
.capacity-interface { display: flex; align-items: center; gap: 2px; margin: 0; min-width: 0; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: #eeefe7; }
.capacity-interface label { position: relative; cursor: pointer; }
.capacity-interface input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.capacity-interface span { display: block; padding: 5px 9px; border-radius: 5px; font-size: 12px; font-weight: 650; }
.capacity-interface input:checked + span { background: var(--ink); color: var(--paper); }
.capacity-interface input:focus-visible + span { outline: 2px solid #a53622; outline-offset: 2px; }
.capacity-disclosure { margin-top: 7px; }
.capacity-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 9px; margin-top: 14px; }
.capacity-link { display: flex; align-items: center; justify-content: space-between; min-height: 47px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); font: 750 17px/1.1 var(--display); letter-spacing: -.04em; }
.capacity-link span { margin-left: 4px; font: 500 14px/1 var(--text); color: #747a6f; }
.capacity-link:hover { background: #fff1e8; border-color: #dfac98; }
.other-sizes { margin-top: 11px; }
.other-sizes summary { width: fit-content; padding: 2px 1px; list-style: none; cursor: pointer; font-size: 12px; font-weight: 700; color: #444940; }
.other-sizes summary::-webkit-details-marker { display: none; }
.other-sizes summary span { display: inline-block; font-size: 15px; font-weight: 500; margin-left: 3px; }
.other-sizes[open] summary span { transform: rotate(45deg); }
.size-toolbar { margin-top: 12px; max-width: 310px; }
.size-toolbar input { width: 100%; }
#size-empty { margin-top: 10px; }

.deals-section { padding: 32px 0 50px; }
.catalog-state { color: #64391f; background: #f4e8d7; border-radius: 5px; padding: 4px 9px; font-weight: 650; font-size: 11px; white-space: nowrap; margin-bottom: 2px; }
.catalog-state.real { background: #e8ede3; color: #3b5236; }
.link-disclosure { font-size: 12px; color: var(--muted); }
.deals-disclosure { margin-top: 9px; }
.filters { display: grid; grid-template-columns: minmax(230px, 1fr) repeat(4, max-content); gap: 8px; margin-top: 15px; }
input:not([type="checkbox"], [type="radio"]), select { min-height: 42px; padding: 8px 10px; border: 1px solid #d8dad0; border-radius: 7px; color: var(--ink); background: var(--paper); font-size: 13px; }
input::placeholder { color: #666a60; opacity: 1; }
.filters select { width: 100%; padding-right: 9px; }
.search-field { display: grid; align-items: center; position: relative; min-width: 0; }
.search-field input { padding-left: 36px; width: 100%; }
.search-icon { width: 13px; height: 13px; position: absolute; left: 13px; border: 1.5px solid #62665e; border-radius: 50%; pointer-events: none; }
.search-icon::after { content: ""; display: block; width: 5px; height: 1.5px; background: #62665e; position: absolute; right: -4px; bottom: -2px; transform: rotate(45deg); }
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0; color: var(--muted); font-size: 12px; }
.checkbox-label { display: flex; align-items: center; gap: 6px; color: #40453d; font-weight: 600; cursor: pointer; }
.checkbox-label input { accent-color: #a13b27; width: 15px; height: 15px; }

.deal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.deal-card { display: flex; flex-direction: column; min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 5px; margin-bottom: 11px; }
.card-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.tag { display: inline-flex; align-items: center; padding: 3px 6px; background: #eeefe8; border-radius: 4px; color: #495344; font-size: 10px; font-weight: 700; white-space: nowrap; }
.tag.sas { background: #f4e8db; color: #784224; }
.tag.sata { background: #dfede9; color: #28584e; }
.tag.sample { color: #686d63; background: transparent; border: 1px solid var(--line); padding: 2px 5px; }
.deal-card h3 { font-size: 21px; line-height: 1.11; letter-spacing: -.043em; overflow-wrap: anywhere; }
.card-spec { color: var(--muted); font-size: 12px; margin-top: 4px; margin-bottom: 13px; }
.card-prices { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding: 12px 0 11px; border-top: 1px solid var(--line); margin-top: auto; }
.card-prices > div:last-child { text-align: right; }
.card-price { font: 800 26px/1 var(--display); letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.card-rate { color: #94351f; font: 750 18px/1 var(--display); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.card-label { color: var(--muted); font-size: 11px; margin-top: 4px; }
.card-action { margin-top: 3px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px; }
.card-action .button { min-height: 35px; padding: 6px 9px; font-size: 12px; }
.card-date, .card-action .link-disclosure { color: var(--muted); font-size: 10px; }
.empty { border: 1px dashed #c5c9bc; border-radius: 10px; text-align: center; padding: 36px 18px; }
.empty h3 { font-size: 23px; }
.empty p { color: var(--muted); margin-top: 3px; }
.empty-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 86px; color: var(--muted); font-size: 12px; }
.footer-inner .brand { color: var(--ink); font-size: 20px; }
.footer-inner .brand-mark { width: 24px; height: 24px; border-radius: 6px; }
.footer-inner .brand-mark::before { width: 11px; height: 11px; }
.footer-top { font-weight: 650; white-space: nowrap; }
.privacy-notice { color: var(--muted); font-size: 12px; padding-bottom: 18px; }
.privacy-notice summary { width: fit-content; cursor: pointer; font-weight: 650; }
.privacy-notice p { margin-top: 7px; max-width: 680px; }
.privacy-notice a { text-decoration: underline; text-underline-offset: 3px; }

dialog { width: min(625px, calc(100% - 24px)); max-height: calc(100% - 24px); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 0; box-shadow: 0 16px 48px #181a174d; overscroll-behavior: contain; }
dialog::backdrop { background: #161a17a8; }
.dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; padding: 19px 22px 15px; border-bottom: 1px solid var(--line); }
.dialog-heading h2 { font-size: 29px; font-weight: 800; letter-spacing: -.065em; }
.dialog-heading p, .subtle, #editor-message { font-size: 12px; color: var(--muted); }
.icon-button { border: 1px solid var(--line); background: transparent; border-radius: 7px; width: 34px; height: 34px; color: var(--ink); font-size: 22px; line-height: 1; }
.icon-button:hover { background: #eaece3; }
.editor-section { padding: 15px 22px; border-bottom: 1px solid var(--line); }
.editor-section h3 { font-size: 20px; line-height: 1.2; letter-spacing: -.045em; margin-bottom: 10px; }
.editor-section label { display: grid; gap: 4px; min-width: 0; font-size: 12px; font-weight: 650; }
.editor-section input, .editor-section select { width: 100%; font-weight: 400; }
.campaign-form { display: flex; align-items: end; gap: 8px; margin-bottom: 6px; }
.campaign-form label { flex: 1; max-width: 235px; }
.deal-form { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.full-width { grid-column: 1 / -1; }
.form-buttons { display: flex; gap: 8px; margin-top: 3px; }
.form-error { color: #9a2516; font-size: 12px; }
.saved-deals { margin: 0; padding: 0; list-style: none; }
.saved-deals li { display: flex; gap: 7px; align-items: center; padding: 6px 0; border-bottom: 1px solid #eeefe9; }
.saved-deals li:last-child { border-bottom: 0; }
.saved-deals li > span { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
.saved-deals .button { min-height: 29px; font-size: 11px; padding: 4px 7px; }
.dialog-footer { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 13px 22px; }
.dialog-footer button { flex: none; }

@media (max-width: 1050px) {
  .container { width: calc(100% - 48px); }
  .filters { grid-template-columns: minmax(170px, 1fr) repeat(4, max-content); }
  .capacity-link { padding-inline: 9px; }
}
@media (max-width: 800px) {
  .hero { min-height: 350px; }
  .hero-copy { padding-inline: 30px; }
  .hero-photo { left: 26%; }
  .hero::after { background: linear-gradient(90deg, #181a17 0%, #181a17 23%, #181a17d2 45%, #181a1711 79%); }
  .capacity-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .search-field { grid-column: 1 / -1; }
  .deal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 500px) {
  .container { width: calc(100% - 28px); }
  .header-inner { min-height: 58px; gap: 11px; }
  .header-inner .brand { font-size: 21px; gap: 6px; }
  .header-inner .brand-mark { width: 25px; height: 25px; }
  .site-header nav { gap: 10px; font-size: 11px; margin-left: auto; }
  .setup-button { font-size: 10px; min-height: 32px; padding-inline: 6px; margin-left: 0; gap: 3px; }
  .setup-button span { display: none; }
  .hero { margin-top: 13px; min-height: 345px; }
  .hero-copy { padding: 26px 17px; }
  .hero-photo { inset: 0 0 0 12%; background-position: 54% center; opacity: .66; }
  .hero::after { background: linear-gradient(90deg, #181a17 0%, #181a17bf 55%, #181a1740 100%); }
  .hero h1 { font-size: clamp(57px, 14.7vw, 70px); }
  .hero-description { max-width: 238px; }
  .capacity-section, .deals-section { padding-top: 23px; }
  .capacity-grid { gap: 6px; }
  .capacity-link { font-size: 15px; padding-inline: 7px; }
  .capacity-link span { font-size: 12px; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading { align-items: start; }
  .section-heading h2 { font-size: 27px; }
  .section-heading p { font-size: 12px; }
  .capacity-interface span { padding-inline: 6px; }
  .deal-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { flex-wrap: wrap; padding-block: 12px; }
  .footer-inner p { order: 3; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
