/* ==========================================================================
   Gradelink SIS pricing calculator — proposal mockup
   Prepared by Onespot. Blue ramp derived from the brand hex #00598F.

   Sections:
     01  .band--apps       Gradelink Connect vs. standalone (white band)
     02  .band--features   what Onespot adds (Onespot purple tint)
     03  .band--pricing    the calculator (Gradelink blue/orange)
   ========================================================================== */

:root {
  --gl-orange:       #F0A03C;
  --gl-orange-deep:  #E08D24;
  --gl-blue:         #00598F;
  --gl-blue-mid:     #0A74B8;
  --gl-blue-ink:     #003F66;
  --gl-bg:           #E7F1F8;
  --gl-bg-soft:      #F3F8FC;
  --gl-card:         #FFFFFF;
  --gl-text:         #5E6D7B;
  --gl-text-soft:    #8A97A4;
  --gl-line:         #D3E3EF;
  --gl-red:          #E8342B;

  /* Onespot brand — from src/globalConstants.js (ONESPOT_PURPLE) */
  --os-purple:       #5B59D6;
  --os-purple-deep:  #4A48C2;
  --os-purple-tint:  #F1F1FC;
  --os-purple-band:  #F6F6FD;
  --os-purple-line:  #D6D5F5;

  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-card: 0 2px 20px rgba(0, 89, 143, 0.07);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--gl-bg);
  color: var(--gl-text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------- banner */

.proposal-banner {
  background: var(--gl-blue-ink);
  color: #D8E8F4;
  font-size: 13.5px;
  line-height: 1.5;
}

.proposal-banner__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 11px 24px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.proposal-banner p { margin: 0; }
.proposal-banner strong { color: #FFFFFF; font-weight: 600; }

.proposal-banner__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gl-orange);
  flex: none;
  margin-top: 7px;
}

/* ----------------------------------------------------- bands + container */

.band { padding: 56px 0 64px; }

.band--pricing  { background: var(--gl-bg); }
.band--apps     { background: #FFFFFF; }
.band--features { background: var(--os-purple-band); }
.band--footer   { background: var(--gl-bg); padding: 30px 0 44px; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ------------------------------------------------------ section headings */

.eyebrow {
  margin: 0 0 14px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gl-blue-mid);
  text-align: center;
}

.eyebrow--onespot { color: var(--os-purple); }

.section-head { text-align: center; margin-bottom: 40px; }

.section-head h2 {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 3.9vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--gl-blue);
  margin: 0 0 14px;
}

/* Section 01 has no subtitle, so drop the gap the heading reserves for one. */
.section-head h2:last-child { margin-bottom: 0; }

.section-head__sub {
  max-width: 720px;
  margin: 0 auto;
  font-size: 17px;
  color: var(--gl-text);
}

/* ======================= SECTION 03 — THE CALCULATOR ======================= */

.masthead { text-align: center; margin-bottom: 40px; }

.masthead h1 {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: clamp(38px, 6.2vw, 76px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--gl-blue);
  margin: 0 0 16px;
}

.masthead h1 .accent { color: var(--gl-orange); }

.masthead__sub {
  max-width: 720px;
  margin: 0 auto;
  font-size: 17px;
  color: var(--gl-text);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 28px;
  align-items: start;
}

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; gap: 36px; }
}

/* ------------------------------------------------------------ quote card */

.quote-card {
  background: var(--gl-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 34px 30px 30px;
  text-align: center;
}

.quote-card__label {
  background: var(--gl-bg);
  border-radius: 14px;
  padding: 14px 20px;
  margin-bottom: 26px;
}

.quote-card__label h2 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 42px);
  color: var(--gl-orange);
  margin: 0;
  letter-spacing: -0.01em;
}

.quote-card__price {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  color: var(--gl-blue);
  font-size: clamp(44px, 6.4vw, 74px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  margin-bottom: 30px;
}

.quote-card__price .currency { font-size: 0.62em; }

.quote-card__price .per {
  color: var(--gl-orange);
  font-size: 0.5em;
  letter-spacing: -0.01em;
}

/* Setup-fee line. Hidden unless CONFIG.setup.show is true. */
.quote-card__setup {
  margin: -16px 0 26px;
  font-size: 19px;
  color: var(--gl-text);
}

.quote-card__setup span { color: var(--gl-orange); font-weight: 600; }
.quote-card__setup[hidden] { display: none; }

.addon__setup { font-weight: 700; }
.addon__setup[hidden] { display: none; }

/* --------------------------------------------------------- student input */

.student-pill {
  background: #111418;
  border-radius: 999px;
  padding: 10px 12px 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.student-pill label {
  color: #FFFFFF;
  font-weight: 500;
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.student-pill__icon {
  width: 22px; height: 22px;
  fill: #FFFFFF;
  flex: none;
}

.student-pill input {
  width: 128px;
  border: none;
  border-radius: 999px;
  padding: 12px 16px;
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--gl-blue-ink);
  text-align: center;
  background: #FFFFFF;
  -moz-appearance: textfield;
}

.student-pill input::-webkit-outer-spin-button,
.student-pill input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.student-pill input:focus-visible {
  outline: 3px solid var(--gl-orange);
  outline-offset: 2px;
}

/* ------------------------------------------------------------ photo slot */

.photo-placeholder {
  position: relative;
  margin: 26px 0 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background:
    linear-gradient(135deg, #D8E8F4 0%, #EDF5FA 55%, #E2EEF6 100%);
  aspect-ratio: 16 / 10;
}

/* Sits under the photo; only visible if the photo fails to load. */
.photo-placeholder__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9FB4C4;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.photo-placeholder img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------------------------------------------------------------- addons */

.addons { position: relative; padding-top: 26px; }

.addons__tab {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.addons__tab h2 {
  margin: 0;
  background: var(--gl-blue);
  color: #FFFFFF;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 22px;
  padding: 12px 40px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 89, 143, 0.22);
  white-space: nowrap;
}

.addons__list {
  background: var(--gl-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 52px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.addon {
  background: var(--gl-bg-soft);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 22px 20px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.addon:has(input:checked) {
  background: #FFFFFF;
  border-color: var(--gl-blue-mid);
}

.addon--proposed {
  background: var(--os-purple-tint);
  border-color: var(--os-purple-line);
}

.addon--proposed:has(input:checked) {
  background: #FFFFFF;
  border-color: var(--os-purple);
}

/* checkbox */

.addon__check {
  display: block;
  position: relative;
  width: 26px; height: 26px;
  margin-top: 2px;
  cursor: pointer;
  flex: none;
}

.addon__check input {
  position: absolute;
  opacity: 0;
  width: 100%; height: 100%;
  margin: 0;
  cursor: pointer;
}

.addon__check .box {
  display: block;
  width: 26px; height: 26px;
  border: 2px solid #BDD3E3;
  border-radius: 7px;
  background: #FFFFFF;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.addon__check input:checked + .box {
  background: var(--gl-blue);
  border-color: var(--gl-blue);
}

.addon__check input:checked + .box::after {
  content: "";
  display: block;
  width: 6px; height: 12px;
  margin: 3px auto 0;
  border: solid #FFFFFF;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.addon--proposed .addon__check .box { border-color: #C0BFEF; }

.addon--proposed .addon__check input:checked + .box {
  background: var(--os-purple);
  border-color: var(--os-purple);
}

.addon__check input:focus-visible + .box {
  outline: 3px solid var(--gl-orange);
  outline-offset: 2px;
}

.addon--proposed .addon__check input:focus-visible + .box {
  outline-color: var(--os-purple);
}

/* addon body */

.addon__body { min-width: 0; }

.addon__body h3 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 21px;
  color: var(--gl-blue);
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.badge {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--os-purple-deep);
  background: #E4E3FA;
  border-radius: 999px;
  padding: 4px 11px;
}

.addon__price {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
  color: var(--gl-orange);
}

.addon__desc {
  margin: 0 0 10px;
  font-size: 15.5px;
  color: var(--gl-text);
}

.addon__link {
  color: var(--gl-blue-mid);
  font-size: 15.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.addon__link:hover { color: var(--gl-blue); }

/* --------------------------------------------------------- Onespot logo */

/* The real logotype, 2000x521 with transparency. Sized by height so the
   aspect ratio takes care of itself. */
.onespot-logo {
  display: block;
  height: 26px;
  width: auto;
  margin-bottom: 11px;
}

/* Centered above the section heading in "What Onespot adds". */
.onespot-logo--sm {
  height: 30px;
  margin-bottom: 0;
}

/* --------------------------------------------------- expandable features */

.addon__disclosure {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-family: inherit;
  font-size: 15.5px;
  color: var(--os-purple);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.addon__disclosure:hover { color: var(--os-purple-deep); }

.addon__disclosure:focus-visible {
  outline: 3px solid var(--os-purple);
  outline-offset: 3px;
  border-radius: 4px;
}

.addon__chevron {
  width: 15px; height: 15px;
  flex: none;
  transition: transform 0.25s ease;
}

.addon__disclosure[aria-expanded="true"] .addon__chevron { transform: rotate(180deg); }

/* Animating grid rows avoids guessing a max-height. */
.addon__features {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}

.addon__features.is-open { grid-template-rows: 1fr; }

.addon__features-inner { overflow: hidden; }

.addon__features-lede {
  margin: 16px 0 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--os-purple-deep);
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.feature-list li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--gl-text);
}

.feature-list li strong {
  display: block;
  color: var(--gl-blue-ink);
  font-weight: 600;
  font-size: 15.5px;
  margin-bottom: 1px;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--os-purple);
  background-image:
    linear-gradient(to bottom right, transparent 45%, #fff 45%, #fff 55%, transparent 55%);
  box-shadow: inset 0 0 0 2px var(--os-purple);
}

@supports (mask-image: url("")) {
  .feature-list li::before {
    background-image: none;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.6L12 5.6' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    mask-size: 15px 15px;
    mask-repeat: no-repeat;
    box-shadow: none;
  }
}

/* video chip */

.addon__video { flex: none; margin-top: 2px; }

.addon__video svg {
  width: 52px;
  height: 37px;
  display: block;
}

.addon__video rect { fill: var(--gl-red); }

/* ==================== SECTION 01 — THE APP (screens/options) ==================== */

.option-block {
  background: var(--gl-bg-soft);
  border: 1px solid var(--gl-line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  margin-bottom: 24px;
}

.option-block:last-child { margin-bottom: 0; }

.option-block--upgrade {
  background: var(--os-purple-tint);
  border-color: var(--os-purple-line);
}

/* Two-up layout: media beside the copy. Used for the portrait-ish App Store
   shot; the wide four-phone image gets the full width instead. */
.option-block--split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 32px;
  align-items: center;
}

@media (max-width: 860px) {
  .option-block--split { grid-template-columns: 1fr; gap: 24px; }
}

/* ------------------------------------------------------------------ media */

.option-block__media { margin: 0; }

.option-block__media--wide { margin-bottom: 26px; }

.option-block__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

.option-block__media figcaption {
  margin-top: 14px;
  font-size: 14.5px;
  color: var(--gl-text-soft);
  text-align: center;
  text-wrap: balance;
}

/* The App Store shot sits on top of a placeholder, so a missing file still
   renders as a tidy labelled box rather than a broken image. */
.option-block__media--shot {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(135deg, #E6E5FA 0%, #F2F2FC 55%, #E9E8FB 100%);
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.option-block__media--shot img {
  position: relative;
  z-index: 1;
  border-radius: 0;
}

.media-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9D9BC8;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding: 0 16px;
}

/* ------------------------------------------------------------------- copy */

.option-block__body { min-width: 0; }

.option__tag {
  display: inline-block;
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gl-blue);
  background: #D8E8F4;
  border-radius: 999px;
  padding: 5px 12px;
}

.option__tag--upgrade {
  color: var(--os-purple-deep);
  background: #E4E3FA;
}

.option-block h3 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 27px);
  letter-spacing: -0.015em;
  color: var(--gl-blue);
  margin: 0 0 10px;
}

.option-block--upgrade h3 { color: var(--os-purple-deep); }

.option__lede {
  margin: 0 0 18px;
  font-size: 16.5px;
  color: var(--gl-text);
}

.option__body-text {
  margin: 0 0 14px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--gl-text);
}

.option__body-text:last-child { margin-bottom: 0; }

/* In the full-width block the copy sits under the image, so cap the measure —
   otherwise lines run the whole 1,060px container and get hard to read. The
   cap goes on the body so the lede and the paragraphs wrap to the same width. */
.option-block:not(.option-block--split) .option-block__body { max-width: 820px; }

.option__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
}


.option__list li {
  position: relative;
  padding-left: 24px;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--gl-text);
}

.option__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gl-blue-mid);
}

.option-block--upgrade .option__list li::before { background: var(--os-purple); }

/* ====================== SECTION 02 — WHAT ONESPOT ADDS ====================== */

.section-head__brand {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.adds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}

.add {
  background: #FFFFFF;
  border: 1px solid var(--os-purple-line);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  box-shadow: 0 2px 14px rgba(91, 89, 214, 0.06);
}

.add h3 {
  position: relative;
  padding-left: 28px;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 17.5px;
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--gl-blue-ink);
  margin: 0 0 8px;
}

.add h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px; height: 18px;
  background: var(--os-purple);
  border-radius: 50%;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.6L12 5.6' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-size: 18px 18px;
  mask-repeat: no-repeat;
}

/* Fallback tick for engines without mask-image. */
@supports not (mask-image: url("")) {
  .add h3::before {
    background: var(--os-purple);
    box-shadow: inset 0 0 0 2px var(--os-purple);
  }
}

.add p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--gl-text);
}

/* Optional add-ons: same card, muted tick plus a label, so "included" vs
   "optional" reads at a glance without a separate section. */
.add__badge {
  display: inline-block;
  margin-left: 8px;
  font-family: "Inter", sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gl-text-soft);
  background: var(--gl-bg);
  border-radius: 999px;
  padding: 3px 9px;
  vertical-align: middle;
  white-space: nowrap;
}

.add--optional h3::before { background: #9FB4C4; }

/* Full-width rule across the grid, separating the included capabilities
   from the optional ones. */
.adds__divider {
  grid-column: 1 / -1;
  margin: 16px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--os-purple-line);
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--gl-text-soft);
}



/* ---------------------------------------------------------------- footer */

.band--footer {
  text-align: center;
  font-size: 13.5px;
  color: var(--gl-text-soft);
  border-top: 1px solid var(--gl-line);
}

.band--footer p { margin: 0; max-width: 760px; margin-inline: auto; }

/* --------------------------------------------------------------- narrow */

@media (max-width: 560px) {
  .band { padding: 40px 0 46px; }
  .container { padding: 0 16px; }
  .quote-card, .addons__list { padding-left: 18px; padding-right: 18px; }
  .addon { grid-template-columns: auto minmax(0, 1fr); }
  .addon__video { display: none; }
  .student-pill { padding-left: 18px; }
  .student-pill label { font-size: 15px; }
  .student-pill input { width: 104px; font-size: 16px; }
  .option-block, .add { padding: 22px 19px; }
}

/* ------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
  .addon__features, .addon__chevron { transition: none; }
}
