/* Temporary BookDrive pages, styled after the classic atiz.com BookDrive site. */
:root {
  --red: #cd122f;
  --red-dark: #a80e26;
  --ink: #111;
  --text: #444;
  --muted: #777;
  --panel: #f4f4f4;
  --line: #e6e6e6;
  --radius: 24px;
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font: 16px/1.6 "Helvetica Neue", Arial, Helvetica, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, .pill:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-weight: 700; }
.logo img { width: 106px; height: 25px; }
.logo span { padding-left: 12px; border-left: 1px solid var(--line); color: var(--muted); font-weight: 400; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.site-nav a { padding: 8px 12px; border-radius: 999px; color: #333; text-decoration: none; font-size: 16px; }
.site-nav a:hover { background: var(--panel); }
.site-nav a[aria-current="page"] { color: var(--red); }

/* Buttons */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px;
  background: #fff; color: #000; text-decoration: none; font-size: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
  transition: box-shadow .2s, transform .2s;
}
.pill:hover { box-shadow: 0 6px 22px rgba(0, 0, 0, .14); transform: translateY(-1px); }
.pill.red { background: var(--red); color: #fff; }
.pill.red:hover { background: var(--red-dark); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* Home hero */
.hero {
  position: relative; margin-top: 32px; border-radius: var(--radius); overflow: hidden;
  background: #111 url("assets/hero.png") center / cover no-repeat;
  min-height: clamp(300px, 42vw, 480px);
  display: grid; place-items: center; text-align: center; padding: 48px 24px;
}
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .35); }
.hero > * { position: relative; z-index: 1; }
.hero p { color: #fff; font-size: clamp(17px, 2vw, 22px); margin: 0 0 10px; }
.hero h1 { color: #fff; font-size: clamp(34px, 5.6vw, 64px); }

/* Section heading */
.section { padding: 72px 0 0; }
.eyebrow { margin: 0 0 8px; text-align: center; color: var(--muted); font-size: 15px; letter-spacing: .12em; text-transform: uppercase; }
.section-title { text-align: center; font-size: clamp(30px, 4.4vw, 52px); font-weight: 500; margin-bottom: 36px; }
.section-title em { color: var(--red); font-style: normal; }
.bar { display: block; width: 58px; height: 10px; border-radius: 6px; background: var(--red); margin-bottom: 22px; }

/* Product cards */
.products { display: grid; gap: 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1020px; margin-inline: auto; }
.card {
  background: var(--panel); border-radius: var(--radius); padding: 36px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.card img { height: 240px; width: 100%; object-fit: contain; margin-bottom: 24px; mix-blend-mode: multiply; }
.card h3 { font-size: 26px; }
.tagline { color: var(--red); font-size: 18px; margin: 6px 0 12px; }
.card p { margin: 0; }
.card > div { display: flex; flex-direction: column; flex: 1; width: 100%; }
.card .actions { margin-top: auto; padding-top: 24px; justify-content: center; }
.card.wide { grid-column: 1 / -1; flex-direction: row; text-align: left; gap: 40px; }
.card.wide img { width: 42%; height: 320px; margin: 0; flex: none; }
.card.wide .actions { justify-content: flex-start; margin-top: 0; }
.card.wide > div { justify-content: center; }

/* Product detail page */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding-top: 56px; }
.detail h1 { font-size: clamp(38px, 5vw, 60px); }
.detail .tagline { font-size: 22px; margin-top: 10px; }
.detail .lead { font-size: 18px; max-width: 46ch; }
.detail-image { background: var(--panel); border-radius: var(--radius); padding: 40px; }
.detail-image img { width: 100%; height: clamp(260px, 36vw, 440px); object-fit: contain; mix-blend-mode: multiply; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.fact { background: var(--panel); border-radius: 18px; padding: 24px; }
.fact strong { display: block; color: var(--ink); font-size: 18px; margin-bottom: 4px; }
.fact span { color: var(--muted); }

/* Software store */
.software { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.sw { border-radius: var(--radius); overflow: hidden; background: var(--panel); display: flex; flex-direction: column; }
.sw-top { display: grid; place-items: center; height: 200px; }
.sw-top img { width: 150px; height: 130px; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .25)); }
.sw.blue .sw-top { background: linear-gradient(120deg, #53a7ff, #1e7ff0); }
.sw.orange .sw-top { background: linear-gradient(120deg, #ff9a4d, #f2601a); }
.sw.red .sw-top { background: linear-gradient(120deg, #ff3b5a, var(--red)); }
.sw-body { padding: 28px; }
.sw-body h3 { font-size: 22px; margin-bottom: 8px; }
.sw-body p { margin: 0; }
.note { text-align: center; max-width: 60ch; margin: 36px auto 0; }

/* Ask us */
.ask { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: var(--panel); border-radius: var(--radius); padding: 48px; }
.ask h2 { font-size: clamp(36px, 5vw, 56px); font-weight: 400; }
.ask h2 em { color: var(--red); font-style: normal; }
.ask p { margin: 12px 0 0; font-size: 17px; }

/* Footer */
.site-footer { margin-top: 88px; padding: 48px 0 36px; background: #fafafa; border-top: 1px solid var(--line); font-size: 15px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { margin: 0 0 12px; color: var(--ink); font-size: 14px; letter-spacing: .1em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--red); }
.site-footer address { font-style: normal; color: var(--muted); }
.site-footer .logo { margin-bottom: 12px; }
.copy { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

@media (max-width: 860px) {
  .products, .software, .detail, .ask, .facts { grid-template-columns: 1fr; }
  .card.wide { flex-direction: column; text-align: center; }
  .card.wide img { width: 100%; height: 240px; }
  .card.wide .actions { justify-content: center; }
  .card, .ask { padding: 28px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .logo span { display: none; }
  .detail { padding-top: 32px; gap: 28px; }
}

/* Software Store page */
.store-page { background: var(--panel); }
.store-page .site-footer { background: #fff; }
.store-page .ask { background: #fff; }
.center { text-align: center; }
.store-title { text-align: center; color: var(--red); font-size: clamp(36px, 5.4vw, 60px); font-weight: 700; text-transform: uppercase; padding: 88px 0 72px; }
.picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pick {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 28px 20px 0; min-height: 350px; overflow: hidden;
  background: #fff center / cover no-repeat; border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08); text-decoration: none; color: #333; font-size: 21px;
  transition: box-shadow .2s, transform .2s;
}
.pick:hover { box-shadow: 0 8px 26px rgba(0, 0, 0, .14); transform: translateY(-2px); }
.pick-icon { width: 58px; height: 58px; }
.pick-img { margin-top: auto; max-height: 200px; width: auto; }
.notice { margin: 40px 0 0; padding: 12px 20px; border-radius: 8px; background: #f3e3e5; color: var(--red); text-align: center; }
.product { padding-top: 96px; scroll-margin-top: 60px; }
.product h2 { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; font-size: clamp(32px, 4.6vw, 50px); color: #333; }
.product h2.center { justify-content: center; }
.product h2 em, .every h2 em { color: var(--red); font-style: normal; }
.product h2 img { width: 83px; height: 83px; }
.sub { margin: 12px 0 0; color: #000; font-size: clamp(18px, 2vw, 24px); line-height: 1.3; }
.small { margin: 10px 0 0; color: #555; font-size: 16px; }
.panel { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; align-items: start; margin-top: 20px; padding: 18px; background: #fff; border-radius: var(--radius); }
.panel-media img { width: 100%; border-radius: 18px; }
.panel.flip .panel-media { order: 2; }
.panel-body { padding: 24px 16px 8px; }
.panel-body h3 { font-size: 18px; margin-bottom: 18px; }
.checks { list-style: none; margin: 0 0 28px; padding: 0; color: #000; }
.checks li { position: relative; padding-left: 36px; margin: 16px 0; line-height: 1.3; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: -1px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--red); color: #fff; font-size: 14px; font-weight: 700; display: grid; place-items: center;
}
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; }
.price {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  min-height: 76px; padding: 12px; border: 1px solid var(--red); border-radius: 14px;
  background: #fff; color: var(--red); font-weight: 700; font-size: 18px; line-height: 1.4; text-decoration: none;
  transition: background .2s, color .2s;
}
.price b { font-weight: 700; }
.price:hover, .price.solid { background: var(--red); color: #fff; }
.price.solid:hover { background: var(--red-dark); }
.save { position: absolute; top: -10px; right: 10px; padding: 2px 10px; border-radius: 999px; background: #ffe52e; color: var(--red); font-size: 12px; }
.panel-sub { padding: 0 16px 16px; }
.panel-sub p { margin: 0; color: #000; font-size: 16px; }
.panel-sub strong { font-size: 18px; }
.panel-sub em { color: #e32119; font-style: normal; }
.panel-sub .price { max-width: calc(50% - 14px); }
.panel.flip .panel-sub:nth-of-type(3) { order: 4; }
.panel.flip .panel-sub:nth-of-type(4) { order: 3; }
.combos { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 32px; }
.combo { background: #fff; border-radius: var(--radius); padding: 32px; }
.combo-tag { margin: 0; color: var(--red); font-weight: 700; }
.combo h3 { font-size: 22px; margin: 8px 0 28px; }
.combo img { margin-bottom: 28px; }
.every { display: grid; grid-template-columns: 375px 1fr; align-items: center; gap: 40px; margin-top: 96px; background: #fff; border-radius: var(--radius); overflow: hidden; }
.every img { width: 100%; height: 100%; object-fit: cover; }
.every div { padding: 28px 28px 28px 0; }
.every p { margin: 0 0 10px; color: #000; }
.every div > p:first-child { font-size: 18px; }
.every h2 { font-size: clamp(22px, 2.8vw, 30px); margin-bottom: 14px; }

@media (max-width: 860px) {
  .picks, .panel, .combos, .every { grid-template-columns: 1fr; }
  .pick { min-height: 0; }
  .panel.flip .panel-media { order: 0; }
  .panel-sub .price { max-width: none; }
  .every div { padding: 0 24px 24px; }
  .store-title { padding: 56px 0 40px; }
  .product { padding-top: 64px; }
}

/* Software Store: closer match to the classic page */
.store-page .wrap { width: min(1250px, 100% - 30px); }
.small.faint { color: #999; }
.acc { border: 0; }
.acc summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0; cursor: pointer; list-style: none; color: #000; font-size: 18px; font-weight: 700;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: ""; width: 8px; height: 8px; margin-right: 6px; flex: none;
  border-right: 1.5px solid #555; border-bottom: 1.5px solid #555;
  transform: rotate(45deg); transition: transform .2s;
}
.acc[open] summary::after { transform: rotate(-135deg); }
.acc .checks { margin: 4px 0 12px 12px; }
.panel-body .prices { margin-top: 14px; }
.ask-photo { display: grid; grid-template-columns: minmax(0, 560px) 1fr; gap: 56px; align-items: start; margin-top: 64px; }
.ask-photo img { width: 100%; height: auto; border-radius: var(--radius); }
.ask-photo h2 { font-size: clamp(36px, 4.6vw, 52px); font-weight: 400; color: #333; margin-top: 20px; }
.ask-photo h2 em { color: var(--red); font-style: normal; }
.ask-photo p { margin: 14px 0 0; color: #000; font-size: 17px; }

@media (max-width: 860px) {
  .ask-photo { grid-template-columns: 1fr; gap: 20px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
}
