/*
 * student-discount.css
 * Page-scoped styles for /student-discount on the Art-Kits store.
 *
 * Loaded via {{cdn 'assets/css/pages/student-discount.css'}} in the head partial.
 *
 * Ported from the Artway _student-discount.scss editorial design. All rules
 * are scoped under #student-discount so nothing leaks in or out. CSS custom
 * properties live inside the #student-discount block, not :root.
 *
 * NOTE: this is the Art-Kits version. The discount it describes is for art
 * SUPPLIES on artway.co.uk — NOT for art kits. The Student Beans verification
 * widget is the promoted route; the kit-order shortcut is mentioned only in
 * passing and never exposes the direct sign-up link.
 *
 * Fonts (Fraunces / Inter / Caveat) and the Student Beans web-component
 * script are loaded in the template's {{#partial "head"}}, not here.
 *
 * Responsive breakpoints: 1000 / 980 / 900 / 700 / 640 / 560 / 480px.
 */

/*
 * Make this page edge-to-edge between the header and footer.
 * BC wraps non-home pages in <div class="container">, which caps width and
 * centres — without this override the page sits inside a narrow column with
 * large side margins. (Same fix as bespoke-art-kits.css.)
 */
.body > .container:has(> .aw-page) {
  max-width: none;
  padding: 0;
  width: 100%;
}
/*
 * Remove the theme's global .body { margin-bottom: 50px } only on this page,
 * so the full-bleed bottom section meets the footer cleanly with no white gap.
 */
.body:has(> .container > .aw-page) {
  margin-bottom: 0;
}

/* ============================================================
   ART-KITS STUDENT DISCOUNT PAGE — fully scoped styles
   ============================================================ */
#student-discount {
  /* Tokens */
  --brand:          #1F3A5F;
  --brand-deep:     #142944;
  --ink:            #161616;
  --muted:          #54595E;
  --paper:          #FCFAF5;
  --cream:          #F4EFE2;
  --line:           #E1D9C6;
  --hot-pink:       #F23E78;
  --marker-yellow:  #FFE34D;
  --kelly:          #2BAF6A;
  --cobalt:         #2A5BD7;
  --tangerine:      #FF7A2E;
  /* Scoped reset */
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}
#student-discount *,
#student-discount *::before,
#student-discount *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
/* Headings — prevent site-level text-transform from bleeding in */
#student-discount h1,
#student-discount h2,
#student-discount h3,
#student-discount h4 {
  text-transform: none;
  letter-spacing: normal;
  font-style: normal;
}
/* Links */
#student-discount a { color: inherit; }
/* Container */
#student-discount .aw-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
/* ===== Typography helpers ===== */
#student-discount .mark {
  background: linear-gradient(180deg, transparent 55%, var(--marker-yellow) 55%, var(--marker-yellow) 92%, transparent 92%);
  padding: 0 4px;
}
#student-discount .nowrap { white-space: nowrap; }

/* ===== Hero ===== */
#student-discount .aw-hero {
  background: var(--cream);
  padding: 64px 0 32px;
  position: relative;
  overflow: hidden;
}
#student-discount .aw-hero::before,
#student-discount .aw-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
#student-discount .aw-hero::before {
  top: 40px; right: -40px;
  width: 220px; height: 220px;
  background: radial-gradient(circle at center, var(--hot-pink) 0, var(--hot-pink) 60%, transparent 62%);
  transform: rotate(15deg);
  opacity: 0.18;
}
#student-discount .aw-hero::after {
  bottom: -60px; left: -40px;
  width: 280px; height: 280px;
  background: radial-gradient(circle at center, var(--cobalt) 0, var(--cobalt) 55%, transparent 58%);
  opacity: 0.12;
}
#student-discount .aw-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 2;
}
#student-discount .aw-hero-logo {
  display: block;
  width: 150px;
  height: auto;
  margin-bottom: 24px;
}
#student-discount .aw-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--hot-pink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
#student-discount .aw-hero-eyebrow::before {
  content: "";
  width: 30px; height: 3px;
  background: var(--hot-pink);
  border-radius: 2px;
}
#student-discount .aw-hero-title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 900;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 28px;
}
#student-discount .aw-hero-title em {
  font-style: italic;
  font-weight: 700;
  color: var(--brand);
}
#student-discount .aw-hero-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 26px;
  max-width: 480px;
}
#student-discount .aw-hero-sub strong { color: var(--ink); }
/* ===== Hero scroll prompt (centered, bottom of hero) ===== */
#student-discount .aw-hero-scroll {
  display: block;
  text-align: center;
  margin-top: 56px;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}
#student-discount .aw-hero-scroll:hover { color: var(--hot-pink); }
#student-discount .aw-hero-scroll::after {
  content: "↓";
  display: block;
  margin-top: 8px;
  font-size: 22px;
  color: var(--hot-pink);
}
/* ===== Hero promo (image + shop button) ===== */
#student-discount .aw-hero-promo {
  position: relative;
}
#student-discount .aw-hero-img,
#student-discount .aw-hero-promo img {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: 6px 6px 0 var(--ink);
}
#student-discount .aw-hero-promo-btn {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--marker-yellow);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 700;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
#student-discount .aw-hero-promo-btn:hover {
  transform: translate(calc(-50% - 2px), -2px);
  box-shadow: 5px 5px 0 var(--ink);
}
/* ===== Divider rule ===== */
#student-discount .aw-rule {
  border: none;
  border-top: 2px solid var(--ink);
  margin: 0;
}
/* ===== Sections ===== */
#student-discount .aw-section { padding: 80px 0; }
#student-discount .aw-section-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 48px;
}
/* ===== Big section title (The offer) ===== */
#student-discount .aw-offer-title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 900;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 16px;
}
/* ===== Row blocks: big bold side label + content ===== */
#student-discount .aw-rowblock {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 44px;
  align-items: center;
}
#student-discount .aw-rowblock + .aw-rowblock { margin-top: 56px; }
#student-discount .aw-rowkicker {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hot-pink);
  margin-bottom: 8px;
  line-height: 1.3;
}
#student-discount .aw-rowlabel {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 900;
  font-size: clamp(36px, 3.8vw, 54px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
}
#student-discount .aw-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--hot-pink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
#student-discount .aw-eyebrow::before { content: "—"; }
#student-discount .aw-section-title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 900;
  font-size: clamp(30px, 3.6vw, 48px);
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -0.022em;
  margin-bottom: 16px;
}
#student-discount .aw-section-lead {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.5;
}
#student-discount .aw-section-lead strong { color: var(--ink); }
/* ===== Benefit cards ===== */
#student-discount .aw-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
#student-discount .aw-benefit-card {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 24px 22px;
  position: relative;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
#student-discount .aw-benefit-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}
#student-discount .aw-ribbon {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
#student-discount .aw-benefit-card:nth-child(1) .aw-ribbon { background: var(--marker-yellow); color: var(--ink); }
#student-discount .aw-benefit-card:nth-child(2) .aw-ribbon { background: var(--hot-pink); color: #fff; }
#student-discount .aw-benefit-card:nth-child(3) .aw-ribbon { background: var(--kelly); color: #fff; }
#student-discount .aw-benefit-card:nth-child(4) .aw-ribbon { background: var(--cobalt); color: #fff; }
#student-discount .aw-big-no {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 900;
  font-size: 56px;
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
#student-discount .aw-benefit-card h3 {
  font-family: "Inter", sans-serif;
  color: var(--ink);
  font-size: 16px;
  margin-bottom: 8px;
  font-weight: 700;
  line-height: 1.3;
}
#student-discount .aw-benefit-card p {
  color: var(--muted);
  font-size: 14px;
  font-family: "Inter", sans-serif;
}
/* ===== How it works ===== */
#student-discount .aw-how-bg {
  background: #fff;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
/* ===== Routes: primary (order a kit) + secondary (sign up) ===== */
#student-discount .aw-routes-stack {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 20px;
  align-items: stretch;
  max-width: 980px;
  margin: 0 auto;
}
#student-discount .aw-route {
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
}
#student-discount .aw-route--main {
  background: var(--marker-yellow);
  box-shadow: 6px 6px 0 var(--ink);
  justify-content: center;
  position: relative;
}
#student-discount .aw-route--alt {
  background: #fff;
  box-shadow: 3px 3px 0 var(--ink);
  padding: 26px 22px;
}
#student-discount .aw-route--alt .aw-route-link { margin-top: auto; }
/* "The easy way" stamp — sits over the top-right corner of the kit card */
#student-discount .aw-route-tag {
  position: absolute;
  top: -16px;
  right: 22px;
  transform: rotate(2deg);
  background: var(--hot-pink);
  color: #fff;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 6px;
  z-index: 3;
}
#student-discount .aw-route h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.1;
}
#student-discount .aw-route--main h3 { font-size: 32px; }
#student-discount .aw-route--alt h3 { font-size: 20px; }
#student-discount .aw-route p {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.55;
}
#student-discount .aw-route--alt p { color: var(--muted); }
#student-discount .aw-route p strong { font-weight: 700; color: var(--ink); }
#student-discount .aw-route-link {
  display: inline-block;
  margin-top: 14px;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}
#student-discount .aw-route-link:hover { color: var(--hot-pink); }
/* ===== Why ===== */
#student-discount .aw-why-bg {
  background: var(--brand);
  color: #fff;
  position: relative;
  overflow: hidden;
}
#student-discount .aw-why-bg::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle at center, var(--hot-pink) 0, var(--hot-pink) 50%, transparent 55%);
  opacity: 0.18;
}
#student-discount .aw-why-bg .aw-section-title { color: #fff; }
#student-discount .aw-why-bg .aw-section-lead { color: rgba(255,255,255,0.85); }
#student-discount .aw-why-bg .aw-section-lead strong { color: #fff; }
#student-discount .aw-why-bg .aw-eyebrow { color: var(--marker-yellow); }
#student-discount .aw-why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
  position: relative;
  z-index: 2;
}
#student-discount .aw-why-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 26px;
  border-radius: 8px;
}
#student-discount .aw-why-card h3 {
  font-family: "Fraunces", serif;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
#student-discount .aw-why-card p {
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  font-family: "Inter", sans-serif;
}
/* ===== FAQ (native <details>) ===== */
#student-discount .aw-faq { max-width: 820px; margin: 0 auto; }
#student-discount .aw-faq-item {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 6px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 3px 3px 0 var(--ink);
}
#student-discount .aw-faq-item > summary {
  list-style: none;
  width: 100%;
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: "Inter", -apple-system, sans-serif;
}
#student-discount .aw-faq-item > summary::-webkit-details-marker { display: none; }
#student-discount .aw-faq-item > summary::after {
  content: "+";
  font-size: 22px;
  color: var(--hot-pink);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
#student-discount .aw-faq-item[open] > summary::after { content: "−"; }
#student-discount .aw-faq-a-inner {
  padding: 0 22px 20px;
  line-height: 1.55;
  color: var(--muted);
  font-size: 15px;
  font-family: "Inter", sans-serif;
}
#student-discount .aw-faq-a-inner strong { color: var(--ink); }
#student-discount .aw-faq-a-inner a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* ===== Responsive ===== */
@media (max-width: 1000px) {
  #student-discount .aw-benefits { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  #student-discount .aw-hero { padding: 48px 0 28px; }
  #student-discount .aw-hero-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 900px) {
  #student-discount .aw-rowblock { grid-template-columns: 1fr; gap: 20px; align-items: start; }
}
@media (max-width: 760px) {
  #student-discount .aw-routes-stack { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  #student-discount .aw-section { padding: 56px 0; }
  #student-discount .aw-why-grid { grid-template-columns: 1fr; }
  /* Centre the hero text on mobile */
  #student-discount .aw-hero-grid { text-align: center; }
  #student-discount .aw-hero-logo { margin-left: auto; margin-right: auto; }
  #student-discount .aw-hero-sub { margin-left: auto; margin-right: auto; }
}
@media (max-width: 640px) {
  #student-discount .aw-benefits { grid-template-columns: 1fr; }
}
/* ===== Small phones (Samsung S21 = 360px, iPhone SE = 375px) ===== */
@media (max-width: 480px) {
  #student-discount .aw-container { padding: 0 16px; }
  #student-discount .aw-hero { padding: 36px 0 24px; }
  #student-discount .aw-hero-grid { gap: 28px; }
  #student-discount .aw-hero-title { font-size: 30px; }
  #student-discount .aw-hero-sub { font-size: 16px; max-width: 100%; }
  #student-discount .aw-section { padding: 40px 0; }
  #student-discount .aw-section-head { margin-bottom: 28px; }
  #student-discount .aw-section-title { font-size: 26px; }
  #student-discount .aw-section-lead { font-size: 16px; }
  #student-discount .aw-benefits { grid-template-columns: 1fr; gap: 14px; }
  #student-discount .aw-big-no { font-size: 44px; }
  #student-discount .aw-route { padding: 22px 22px; }
  #student-discount .aw-route h3 { font-size: 22px; }
  #student-discount .aw-why-grid { gap: 14px; }
  #student-discount .aw-why-card h3 { font-size: 18px; }
  #student-discount .aw-faq-item > summary { font-size: 15px; padding: 16px 16px; }
  #student-discount .aw-faq-a-inner { padding: 0 16px 16px; }
}
