/* Notes-shop product page styles. Mirrors the landing-page tokens. */

:root {
  --primary: #0561E8;
  --primary-dark: #0451C2;
  --black-primary: #131927;
  --black-500: #333333;
  --grey-200: #686A71;
  --stroke: #DCDEE2;
  --rule: #EAEAEA;
  --bg: #FFFFFF;
  --bg-soft: #EFF6FF;
  --text-muted: #9EA2AE;
  --accent: var(--primary);

  /* Subject colours — mirrored from the main app design system. */
  --subject-tort:           #B38513;
  --subject-contract:       #FDC300;
  --subject-equity:         #63C0F2;
  --subject-constitutional: #961C81;
  --subject-criminal:       #E6077E;
  --subject-property:       #5F3EB5;
  --subject-company:        #8659FB;
  --subject-eu:             #009DDD;

  --font-body: 'Nunito Sans', 'Inter', sans-serif;
  --font-display: 'Nunito Sans', 'Inter', sans-serif;
  --font-ui: 'Inter', system-ui, sans-serif;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-card: 0 1px 3px rgba(19,25,39,0.06);
  --shadow-lg: 0 12px 32px rgba(19,25,39,0.08);
  --dur-base: 200ms;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--black-500);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
/* Reset: do not globally accent-colour every em on the page. Display-heading
   emphasis is handled by the specific selectors below (matches the main site
   pattern of using a primary-blue coloured span for in-headline emphasis). */
em { font-style: italic; color: inherit; }

/* Display-heading emphasis: italic, medium weight (500), per-subject
   accent colour. Matches the index page's inline `.hero__h1 em` treatment
   so per-subject pages and the landing share one typography system. */
.product-hero__copy h1 em,
.hero__h1 em,
.bundle__title em,
.section-title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}
::selection { background: var(--accent); color: #fff; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 900px) { .container { padding: 0 40px; } }

/* Topbar (matches landing) */
.topbar {
  position: sticky; top: 0; z-index: 50;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(150%) blur(8px);
}
.topbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
@media (min-width: 900px) { .topbar__inner { padding: 0 40px; } }
.topbar__brand img { width: 64px; height: auto; display: block; }
.topbar__nav { display: flex; gap: 22px; align-items: center; }
.topbar__link { font-family: var(--font-ui); font-size: 14px; font-weight: 600; color: var(--black-primary); }
.topbar__link:hover { color: var(--primary); }
.topbar__cta {
  background: var(--primary); color: #fff !important; padding: 10px 16px;
  border-radius: var(--radius-md); font-family: var(--font-ui); font-weight: 600;
  border: 2px solid #46B2FF;
}
.topbar__cta:hover { background: var(--primary-dark); }
.topbar__nav-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--black-500);
}
.topbar__nav-back:hover { color: var(--primary); }
.topbar__toggle { display: none; }
.topbar__burger { display: none; }
.topbar__nav-header { display: none; }
@media (max-width: 1080px) {
  /* backdrop-filter creates a containing block, which would trap the
     drawer (position: fixed) inside the topbar's box. Disable it on
     mobile so the drawer can escape to the viewport. */
  .topbar { backdrop-filter: none; background: var(--bg); }
  .topbar__burger {
    display: inline-flex; flex-direction: column; gap: 5px;
    width: 44px; height: 44px; align-items: center; justify-content: center;
    background: transparent; cursor: pointer; padding: 0;
  }
  .topbar__burger span {
    display: block; height: 2px; background: var(--primary);
    border-radius: 2px;
    width: 18px;
  }
  .topbar__burger span:nth-child(2) { width: 28px; }
  .topbar__nav {
    position: fixed; inset: 0; z-index: 100;
    background: var(--bg);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
  }
  .topbar__toggle:checked ~ .topbar__nav {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }
  .topbar__nav-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 13px 20px;
    border-bottom: 1px solid var(--rule);
  }
  .topbar__nav-header img { width: 64px; height: auto; display: block; }
  .topbar__close {
    cursor: pointer;
    width: 44px; height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 32px; line-height: 1; color: var(--black-primary);
    background: transparent;
  }
  .topbar__nav .topbar__link {
    padding: 18px 24px; font-size: 20px;
    font-weight: 500; color: var(--black-primary);
    border: none;
  }
  .topbar__nav .topbar__link:hover { color: var(--primary); }
  .topbar__nav-back {
    margin-top: auto;
    padding: 18px 24px !important;
    border-top: 1px solid var(--rule);
    color: var(--black-500);
  }
  .topbar__cta {
    margin: 16px 24px 32px; text-align: center;
    padding: 14px 16px;
    border: 2px solid #46B2FF;
    border-radius: var(--radius-md);
    background: var(--primary); color: #fff !important;
    font-weight: 600;
  }
}

/* Buttons — radius and weight aligned to the main app design system. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--radius-md);
  font-family: var(--font-ui); font-size: 15px; font-weight: 600;
  border: none; cursor: pointer; transition: background var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease), color var(--dur-base) var(--ease);
  text-decoration: none;
}
.btn--primary {
  background: var(--accent); color: #fff;
  border: 2px solid #46B2FF;
}
.btn--primary:hover { background: var(--primary-dark); }
.btn--primary:disabled { opacity: 0.7; cursor: not-allowed; }
.btn--outline,
.btn--ghost {
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary);
}
.btn--outline:hover,
.btn--ghost:hover { background: rgba(5,97,232,0.06); }
.btn--white {
  background: #fff; color: var(--black-primary); padding: 14px 24px;
  border: 2px solid var(--stroke);
}
.btn--white:hover { background: rgba(255,255,255,0.92); border-color: var(--primary); color: var(--primary); }

/* Product hero */
.product-hero { padding: 60px 0 40px; }
.product-hero__grid {
  display: grid; gap: 40px; align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .product-hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: 60px; padding: 24px 0; }
}
.eyebrow {
  font-family: var(--font-display); font-size: 12px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
}
.product-hero__copy h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 50px);
  font-weight: 800; line-height: 1.1; letter-spacing: -1px;
  color: var(--black-primary);
  margin: 12px 0 18px;
}
.lede { font-size: 17px; line-height: 1.6; color: var(--black-500); margin-bottom: 24px; max-width: 540px; }
.price-row { display: flex; align-items: baseline; gap: 14px; margin-bottom: 24px; }
.price { font-family: var(--font-display); font-size: 38px; font-weight: 800; color: var(--black-primary); }
.strike { font-size: 18px; color: var(--grey-200); text-decoration: line-through; }
.save-pill {
  background: rgba(5,97,232,0.12); color: var(--primary);
  padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.trust-row {
  display: flex; flex-wrap: wrap; gap: 22px; list-style: none; padding: 0;
  font-size: 13px; color: var(--grey-200);
}
.trust-row b { color: var(--black-primary); }
.product-hero__media img {
  width: 100%; height: auto; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
}

/* Sections */
.section { padding: 60px 0; }
.section--alt { background: #fff; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.section-label { font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.section-header h2 { font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; letter-spacing: -0.6px; color: var(--black-primary); }

/* Modules list */
.modules {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 14px;
  max-width: 760px; margin-left: auto; margin-right: auto;
}
.modules li {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border: 1px solid var(--rule); padding: 16px 20px;
  border-radius: var(--radius-lg);
  font-size: 15px; color: var(--black-primary);
}
.modules__tick {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-top: 8px;
}

/* Why grid */
.why-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.why-card {
  background: #fff; border: 1px solid var(--rule);
  padding: 22px; border-radius: var(--radius-lg);
}
.why-card h3 {
  font-family: var(--font-display); font-size: 16px; font-weight: 700;
  color: var(--black-primary); margin-bottom: 8px;
}
.why-card p { font-size: 14px; line-height: 1.55; }

/* Product format choice */
.section-header--centred { max-width: 700px; margin-inline: auto; text-align: center; }
.section-header--centred > p:last-child { margin-top: 10px; }
.format-choices {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px; align-items: stretch; margin-top: 32px;
}
.format-card {
  position: relative; display: flex; flex-direction: column;
  padding: 26px; border: 1px solid var(--rule); border-radius: var(--radius-xl);
  background: #fff; box-shadow: 0 10px 30px rgba(19,25,39,0.05);
}
.format-card--featured {
  border: 2px solid var(--primary); box-shadow: 0 18px 42px rgba(5,97,232,0.14);
}
.format-card__image {
  width: 100%; aspect-ratio: 4 / 5; object-fit: contain; margin-bottom: 20px;
  border-radius: 14px; background: #eef2f7;
}
.format-card__bundle-image {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 20px;
  border-radius: 14px; background: #eef2f7;
}
.format-card__pair {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 20px;
}
.format-card__pair img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: contain; border-radius: 12px; background: #eef2f7;
}
.format-card__badge {
  position: absolute; right: 18px; top: 18px; padding: 5px 9px;
  border-radius: 999px; background: #eaf2ff; color: var(--primary);
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
}
.format-card__eyebrow {
  color: var(--primary); font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .11em; margin-bottom: 10px;
}
.format-card h2 {
  max-width: 90%; color: var(--black-primary); font-family: var(--font-display);
  font-size: 21px; line-height: 1.15; margin-bottom: 10px;
}
.format-card > p:not(.format-card__eyebrow) { font-size: 14px; line-height: 1.55; margin-bottom: 20px; }
.format-card__price {
  margin-top: auto; margin-bottom: 16px; color: var(--black-primary);
  font-family: var(--font-display); font-size: 30px; font-weight: 900;
}
.format-card__price span { color: #138a52; font-family: var(--font-body); font-size: 12px; font-weight: 800; }
.format-card .btn { width: 100%; text-align: center; }
.btn:disabled {
  cursor: not-allowed; opacity: .58; box-shadow: none; filter: grayscale(.15);
}
@media (max-width: 820px) {
  .format-choices { grid-template-columns: 1fr; }
  .format-card { padding: 22px; }
}

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid var(--rule); border-radius: var(--radius-lg);
  margin-bottom: 10px; padding: 16px 20px;
}
.faq summary {
  cursor: pointer; font-weight: 600; color: var(--black-primary); font-size: 15px;
  list-style: none; position: relative; padding-right: 28px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 0; top: -2px;
  font-size: 22px; font-weight: 400; color: var(--accent);
  transition: transform 0.15s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin-top: 10px; font-size: 14px; line-height: 1.6; }

/* CTA band */
.cta-band {
  color: #fff;
  padding: 50px 0;
  margin-top: 40px;
  /* Use the per-subject accent colour so each page closes in its own
     identity colour. The HTML inline overrides have been removed; this
     rule is now the single source of truth. */
  background: var(--accent);
}
.cta-band__inner {
  display: flex; flex-wrap: wrap; gap: 22px;
  align-items: center; justify-content: space-between;
}
.cta-band h2 { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; }
.cta-band p { color: rgba(255,255,255,0.92); margin-top: 4px; font-size: 15px; }

/* Thanks page */
.thanks {
  min-height: 70vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 60px 20px;
}
.thanks__card {
  background: #fff; border: 1px solid var(--rule);
  border-radius: var(--radius-xl); padding: 48px 36px; max-width: 520px;
  box-shadow: var(--shadow-lg);
}
.thanks__icon {
  width: 64px; height: 64px; margin: 0 auto 20px;
  background: rgba(5,97,232,0.1); color: var(--primary);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 32px;
}
.thanks h1 {
  font-family: var(--font-display); font-size: 28px; font-weight: 800;
  letter-spacing: -0.5px; color: var(--black-primary); margin-bottom: 12px;
}
.thanks p { font-size: 15px; line-height: 1.6; margin-bottom: 16px; }
