:root {
  color-scheme: light;
  --ink: #182026;
  --muted: #5e6a72;
  --line: #d7e0e3;
  --paper: #fbfaf6;
  --panel: #ffffff;
  --green: #1f7a55;
  --red: #bd3f37;
  --gold: #d99c28;
  --blue: #2e6fa7;
  --teal: #2f8b8e;
  --shadow: 0 18px 45px rgba(24, 32, 38, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(135deg, rgba(47, 139, 142, 0.12), transparent 34rem),
    linear-gradient(315deg, rgba(217, 156, 40, 0.16), transparent 36rem),
    var(--paper);
  font-size: 17px;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header,
.site-footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
}

.brand-mark,
.app-card img,
.mini-grid img {
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(24, 32, 38, 0.18);
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #fff;
  background:
    linear-gradient(135deg, var(--green), var(--blue));
  font-size: 15px;
  font-weight: 900;
}

nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  border-radius: 8px;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}

main {
  overflow: hidden;
}

.hero,
.section,
.page-hero,
.policy {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 84px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 52px;
  align-items: center;
  padding: 36px 0 96px;
}

.hero-copy {
  max-width: 610px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(50px, 6vw, 86px);
}

.hero h1 {
  white-space: nowrap;
}

.page-hero h1 {
  max-width: 14ch;
  font-size: clamp(42px, 5vw, 68px);
  white-space: normal;
}

h2 {
  font-size: clamp(32px, 4vw, 58px);
}

h3 {
  font-size: 22px;
}

.lead {
  margin: 24px 0 0;
  max-width: 660px;
  color: #344048;
  font-size: 22px;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-actions.compact-actions {
  margin-top: 18px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 7px 0 rgba(24, 32, 38, 0.16);
}

.button.primary {
  color: #fff;
  background: var(--ink);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.74);
}

.hero-media {
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow);
  transform: rotate(-1deg);
}

.hero-media img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.section {
  padding: 86px 0;
}

.intro,
.classroom-feature,
.support-band,
.two-column {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.intro p:last-child,
.two-column p {
  margin: 0;
  color: var(--muted);
  font-size: 20px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.screenshot-card {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(24, 32, 38, 0.1);
}

.screenshot-card.wide {
  grid-column: auto;
}

.screenshot-card img {
  width: 100%;
  height: auto;
}

.screenshot-card figcaption {
  padding: 12px 14px 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.app-card {
  min-height: 280px;
  padding: 22px;
  border: 1px solid rgba(24, 32, 38, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(24, 32, 38, 0.08);
}

.app-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  background:
    linear-gradient(135deg, rgba(31, 122, 85, 0.15), rgba(255, 255, 255, 0.86)),
    #fff;
}

.app-card h3 {
  margin-top: 18px;
}

.app-card.featured h3 {
  margin-top: 0;
}

.app-card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.status {
  display: inline-flex;
  margin-top: 18px;
  padding: 5px 10px;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.status.subtle {
  color: var(--ink);
  background: rgba(217, 156, 40, 0.22);
}

.app-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.app-store-link {
  margin-top: 16px;
  font-size: 15px;
  font-weight: 800;
}

.app-store-link a,
.mini-grid a {
  color: var(--blue);
  text-decoration: none;
}

.app-store-link a:hover,
.mini-grid a:hover {
  text-decoration: underline;
}

.classroom-note {
  margin-bottom: 22px;
}

.classroom-note-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
}

.classroom-note-top img {
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(24, 32, 38, 0.18);
}

.classroom-note-promoted {
  margin-bottom: 0;
}

.classroom-note h3 {
  margin: 0;
}

.classroom-note p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.support-band {
  align-items: center;
  padding: 42px;
  margin-bottom: 60px;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(31, 122, 85, 0.92), rgba(46, 111, 167, 0.94)),
    var(--green);
}

.support-band .eyebrow,
.support-band h2 {
  color: #fff;
}

.support-band .button {
  justify-self: end;
  color: var(--ink);
  background: #fff;
  border-color: #fff;
}

.page-hero {
  padding: 82px 0 58px;
}

.page-hero.narrow {
  max-width: 840px;
}

.page-hero .button {
  margin-top: 28px;
}

.two-column {
  border-top: 1px solid var(--line);
}

.info-list {
  padding: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
}

.info-list ul {
  margin: 18px 0 0;
  padding-left: 22px;
  color: var(--muted);
}

.info-list li + li {
  margin-top: 8px;
}

.pack-builder {
  padding-top: 36px;
}

.builder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 24px;
  align-items: start;
}

.builder-panel {
  padding: 24px;
  border: 1px solid rgba(24, 32, 38, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 32px rgba(24, 32, 38, 0.08);
}

.builder-panel label {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.builder-panel input,
.builder-panel textarea {
  width: 100%;
  min-height: 48px;
  padding: 13px 15px;
  border: 1px solid rgba(24, 32, 38, 0.18);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  font: 700 17px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(24, 32, 38, 0.06);
  text-transform: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.builder-panel input::placeholder,
.builder-panel textarea::placeholder {
  color: rgba(94, 106, 114, 0.58);
  font-weight: 650;
}

.builder-panel input:focus,
.builder-panel textarea:focus {
  border-color: rgba(46, 111, 167, 0.76);
  background: #fff;
  box-shadow:
    0 0 0 4px rgba(46, 111, 167, 0.14),
    0 2px 8px rgba(24, 32, 38, 0.08);
}

.builder-panel input[type="file"] {
  padding: 10px;
  font-weight: 700;
}

.builder-panel textarea {
  min-height: 230px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  font-weight: 600;
}

.builder-fields,
.builder-actions {
  display: grid;
  gap: 14px;
}

.builder-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.builder-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.builder-actions .button {
  width: 100%;
  cursor: pointer;
  font: inherit;
}

.builder-actions .button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.builder-results h3 {
  margin-bottom: 18px;
}

.builder-results h3.is-error {
  color: var(--red);
}

.pack-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}

.pack-summary div,
.pack-code {
  padding: 16px;
  border-radius: 8px;
  background: rgba(46, 111, 167, 0.08);
}

.pack-summary dt,
.pack-code span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.pack-summary dd,
.pack-code strong {
  display: block;
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.pack-code {
  margin-bottom: 18px;
  background: rgba(31, 122, 85, 0.14);
}

.pack-preview {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  font-weight: 700;
}

.builder-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.builder-note.is-error {
  color: var(--red);
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.mini-grid div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 12px;
  border: 1px solid rgba(24, 32, 38, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.policy {
  max-width: 840px;
  padding: 0 0 84px;
}

.sheet-layout {
  padding-top: 28px;
}

.sheet-preview {
  padding: 28px;
  border: 1px solid rgba(24, 32, 38, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.94)),
    var(--panel);
  box-shadow: 0 18px 38px rgba(24, 32, 38, 0.08);
}

.sheet-banner {
  display: grid;
  gap: 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.sheet-banner h3 {
  font-size: clamp(30px, 4vw, 54px);
}

.sheet-banner p {
  margin: 0;
  color: var(--red);
  font-size: 20px;
  font-weight: 900;
}

.sheet-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 22px 0 18px;
}

.sheet-meta div,
.tutorial-step,
.process-list div {
  padding: 18px;
  border: 1px solid rgba(24, 32, 38, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.sheet-meta span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.sheet-meta strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
}

.sheet-grid,
.process-strip,
.process-list {
  display: grid;
  gap: 24px;
}

.sheet-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: start;
}

.sheet-table {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.sheet-table div {
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(rgba(24, 32, 38, 0.03), rgba(24, 32, 38, 0.03)),
    #fff;
  font-size: 18px;
}

.sheet-table div:nth-child(3n) {
  border-right: 0;
}

.sheet-table div:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.sheet-table .sheet-header {
  font-weight: 900;
  text-transform: uppercase;
  background: rgba(46, 111, 167, 0.08);
}

.sheet-notes {
  display: grid;
  gap: 14px;
}

.sheet-notes h3 {
  margin-top: 8px;
}

.sheet-notes p {
  margin: 0;
  color: var(--muted);
  font-size: 19px;
}

.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tutorial-step {
  position: relative;
  min-height: 230px;
}

.compact-tutorial .tutorial-step {
  min-height: 190px;
}

.tutorial-step h3,
.process-list h3 {
  margin-top: 18px;
}

.tutorial-step p,
.process-list p {
  margin: 12px 0 0;
  color: var(--muted);
}

.step-number {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-size: 20px;
  font-weight: 900;
}

.process-strip {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
}

.process-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.policy h2 {
  margin-top: 34px;
  font-size: 28px;
}

.policy p {
  color: var(--muted);
}

.policy a {
  color: var(--blue);
  font-weight: 800;
}

.updated {
  margin-top: 42px;
  font-size: 15px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 0 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

.site-footer p {
  margin: 0;
}

.site-footer div {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 900px) {
  .hero,
  .intro,
  .classroom-feature,
  .support-band,
  .two-column,
  .builder-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 28px;
  }

  .hero-media {
    max-width: 620px;
    margin: 0 auto;
  }

  .app-grid,
  .mini-grid,
  .tutorial-grid,
  .process-list,
  .sheet-meta,
  .builder-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sheet-grid,
  .process-strip {
    grid-template-columns: 1fr;
  }

  .support-band .button {
    justify-self: start;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  nav {
    justify-content: flex-start;
  }

  .hero,
  .section,
  .page-hero,
  .policy {
    width: min(100% - 28px, 1120px);
  }

  .app-grid,
  .screenshot-grid,
  .mini-grid,
  .tutorial-grid,
  .process-list,
  .sheet-meta,
  .builder-fields,
  .builder-actions {
    grid-template-columns: 1fr;
  }

  .app-card.featured {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .sheet-preview {
    padding: 20px;
  }

  .sheet-banner p,
  .sheet-notes p,
  .sheet-table div {
    font-size: 17px;
  }

  .support-band {
    padding: 28px;
  }

  .site-footer {
    flex-direction: column;
  }
}
