/* Samo SAT home page (index.html). Uses the tokens, buttons and code box from style.css. */

.landing { height: auto; min-height: 100%; }
.landing main, .site-head, .site-foot { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.landing a { color: var(--sky-deep); }
.landing h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 1.5rem; }
.landing h3 { font-size: 1.08rem; line-height: 1.3; margin: 0 0 0.45rem; }
.landing p { line-height: 1.6; }

/* ---------- Header ---------- */
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.4rem 0; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.brand-samo { display: block; height: 30px; width: auto; }
.brand-rule { width: 3px; height: 26px; border-radius: 2px; background: #4A9BEF; }
.brand-sat { font-weight: 700; font-size: 1.35rem; letter-spacing: 0.04em; color: #3C5675; line-height: 1; }
.site-nav { display: flex; align-items: center; gap: 0.4rem 1.6rem; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.95rem; }
.site-nav a:hover { color: var(--sky-deep); }
.site-nav .nav-account { padding: 0.45rem 1.1rem; border: 2px solid var(--ink); border-radius: 999px; }
.site-nav .nav-account:hover { background: var(--sky-wash); color: var(--ink); }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding: clamp(2rem, 7vh, 4.5rem) 0 clamp(2.5rem, 7vh, 4rem); }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.35rem); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 1.25rem; max-width: 15ch; }
.hero-lede { font-size: 1.12rem; color: var(--ink-soft); margin: 0 0 2rem; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-actions .btn { text-decoration: none; }
.hero-actions .btn-primary { color: #fff; }
.hero-actions .btn-outline { color: var(--ink); }
.hero-code { display: grid; gap: 0.5rem; margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1.5px solid var(--line); max-width: 26rem; }
.hero-code label { font-weight: 700; }

/* A still of the test screen: the thing students come here for */
.demo { margin: 0; }
.demo-screen {
  background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 14px; overflow: hidden;
  box-shadow: 0 20px 48px -20px rgba(11, 37, 69, 0.28), 0 2px 4px rgba(11, 37, 69, 0.05);
  font-size: 0.92rem;
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 240ms cubic-bezier(0.16, 1, 0.3, 1);
}
.demo-screen:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 56px -16px rgba(11, 37, 69, 0.35), 0 4px 12px rgba(11, 37, 69, 0.08);
}
.demo-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0.75rem; padding: 0.8rem 1.1rem; border-bottom: 1.5px solid var(--line); }
.demo-title { font-weight: 700; font-size: 0.85rem; }
.demo-timer { font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.demo-tools { display: flex; justify-content: flex-end; gap: 0.9rem; font-size: 0.78rem; color: var(--ink-soft); font-weight: 700; }
.demo-body { padding: 1.4rem 1.4rem 1.6rem; }
.demo-qnum { display: flex; align-items: center; gap: 0.75rem; margin: 0 0 1rem; padding-bottom: 0.6rem; border-bottom: 2px dashed var(--line); color: var(--ink-soft); font-size: 0.82rem; font-weight: 700; }
.demo-qnum span { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 4px; background: var(--ink); color: #fff; font-size: 0.85rem; }
.demo-q { font-family: var(--font-content); font-size: 1.12rem; line-height: 1.5; margin: 0 0 1.1rem; }
.demo-choices { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; font-family: var(--font-content); font-size: 1.05rem; }
.demo-choices li {
  display: flex; align-items: center; gap: 0.8rem; padding: 0.55rem 0.8rem;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-m);
  background: var(--surface);
  transition: transform 160ms ease, border-color 160ms ease;
}
.demo-choices li:hover { border-color: var(--sky); transform: translateX(2px); }
.demo-choices b { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border: 1.5px solid var(--ink); border-radius: 50%; font-family: var(--font); font-size: 0.8rem; }
.demo-choices .is-picked { border: 2.5px solid var(--sky); background: var(--sky-wash); }
.demo-choices .is-picked b { background: var(--sky); border-color: var(--sky); color: #fff; }
.demo-choices .is-crossed { color: var(--line-strong); position: relative; }
.demo-choices .is-crossed b { border-color: var(--line-strong); }
.demo-choices .is-crossed::after { content: ""; position: absolute; left: 0.5rem; right: 0.5rem; top: 50%; border-top: 2px solid var(--ink-soft); }
.demo-foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0.75rem; padding: 0.75rem 1.1rem; border-top: 1.5px solid var(--line); background: var(--paper); font-size: 0.8rem; font-weight: 700; }
.demo-name { color: var(--ink-soft); }
.demo-nav { padding: 0.3rem 0.8rem; border-radius: 6px; background: var(--ink); color: #fff; }
.demo-next { justify-self: end; padding: 0.35rem 1rem; border-radius: 999px; background: var(--sky); color: #fff; }
.demo figcaption { margin-top: 0.9rem; color: var(--ink-soft); font-size: 0.88rem; line-height: 1.5; }

/* The horizon from the Samo logo, with the sun rising over it */
.home-horizon { position: relative; height: 3px; border-radius: 2px; background: #4A9BEF; margin: 0 0 clamp(3rem, 8vh, 5rem); }
.home-horizon-sun { position: absolute; left: 0; bottom: 3px; width: 44px; height: 22px; border: 5px solid var(--sun); border-bottom: 0; border-radius: 44px 44px 0 0; }

/* ---------- What you can do ---------- */
.offer { margin-bottom: clamp(3.5rem, 9vh, 6rem); }
.offer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 2.5rem; }
.offer-grid article {
  max-width: 44ch;
  padding: 1.6rem 1.75rem;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 180ms ease;
}
.offer-grid article:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--sky);
}
.offer-grid p { margin: 0; color: var(--ink-soft); }

/* ---------- Teachers ---------- */
.teach {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 2rem 4rem; padding: clamp(2rem, 5vw, 3rem); margin-bottom: clamp(3.5rem, 9vh, 6rem);
  background: var(--ink); color: #fff; border-radius: 18px;
  box-shadow: 0 20px 48px -12px rgba(11, 37, 69, 0.45);
}
.teach h2 { color: #fff; margin-bottom: 0.75rem; }
.teach-copy p { color: #C9D4E5; margin: 0 0 1.5rem; max-width: 34ch; }
.teach .btn-outline { background: transparent; border-color: #fff; color: #fff; text-decoration: none; }
.teach .btn-outline:hover { background: rgba(255, 255, 255, 0.1); }
.teach-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.teach-steps li { counter-increment: step; display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); column-gap: 0.9rem; line-height: 1.55; color: #C9D4E5; }
.teach-steps li::before { content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--sun); color: var(--ink); font-weight: 700; }
.teach-steps strong { color: #fff; }

/* ---------- Coming next ---------- */
.next { max-width: 44rem; margin-bottom: clamp(3.5rem, 9vh, 6rem); }
.next ul { margin: 0 0 1.25rem; padding: 0; list-style: none; display: grid; gap: 0.6rem; }
.next li { position: relative; padding-left: 1.5rem; font-size: 1.05rem; }
.next li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 10px; height: 5px; border: 2.5px solid var(--sun); border-bottom: 0; border-radius: 10px 10px 0 0; }
.next p { margin: 0; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-foot { padding: 2rem 0 2.5rem; border-top: 1.5px solid var(--line); font-size: 0.92rem; }
.foot-main { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; }
.foot-main p { margin: 0; }
.foot-links { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.foot-links a { color: var(--ink); font-weight: 700; }
.foot-note { margin: 1rem 0 0; color: var(--ink-soft); font-size: 0.82rem; max-width: 70ch; }

/* ---------- Smaller screens ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 18ch; }
  .demo { max-width: 34rem; }
  .teach { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .landing main, .site-head, .site-foot { width: calc(100% - 2rem); }
  .site-head { padding: 1rem 0; }
  .site-nav > a:not(.nav-account) { display: none; }
  .brand-samo { height: 26px; }
  .brand-sat { font-size: 1.2rem; }
  .brand-rule { height: 22px; }
  .hero { padding-top: 1.5rem; }
  .hero-lede { font-size: 1.05rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-code { max-width: none; }
  .offer-grid { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .teach { border-radius: 14px; }
  .demo-screen { font-size: 0.85rem; }
  .demo-tools { display: none; }
  .demo-bar { grid-template-columns: 1fr auto; }
  .demo-body { padding: 1.1rem; }
}
