/* Theme mirrors tutor's site/src/lib/theme.css + buttons.css so the company page
   matches poly.education. Keep the semantic var names identical. */

@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(./assets/inter-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font-sans: 'Inter Variable', 'Noto Sans SC', 'Noto Sans TC', system-ui, sans-serif;

  --light-primary: hsl(240, 100%, 50%);
  --light-on-primary: #ffffff;
  --light-background: #ffffff;
  --light-surface: hsl(0, 0%, 96%);
  --light-border-color: hsla(240, 11%, 7%, 0.08);
  --light-color: hsl(240, 11%, 7%);
  --light-color-secondary: hsla(240, 11%, 7%, 0.7);

  --dark-primary: hsl(240, 100%, 72%);
  --dark-on-primary: #ffffff;
  --dark-background: hsl(240, 11%, 7%);
  --dark-surface: hsl(240, 8%, 11%);
  --dark-border-color: hsla(0, 0%, 100%, 0.06);
  --dark-color: #ffffff;
  --dark-color-secondary: hsla(0, 0%, 100%, 0.5);

  --light-brand-green: hsl(108, 91%, 28%);
  --light-brand-navy: hsl(218, 81%, 29%);
  --light-brand-gold: hsl(43, 74%, 47%);
  --dark-brand-green: hsl(108, 91%, 35%);
  --dark-brand-navy: hsl(218, 81%, 60%);
  --dark-brand-gold: hsl(43, 74%, 57%);

  --transition-time: 0.325s;
}

:root,
.light {
  --primary: var(--light-primary);
  --on-primary: var(--light-on-primary);
  --background: var(--light-background);
  --surface: var(--light-surface);
  --border-color: var(--light-border-color);
  --color: var(--light-color);
  --color-secondary: var(--light-color-secondary);
  --brand-green: var(--light-brand-green);
  --brand-navy: var(--light-brand-navy);
  --brand-gold: var(--light-brand-gold);
  color-scheme: light;
  background-color: var(--background);
  color: var(--color);
}

.dark {
  --primary: var(--dark-primary);
  --on-primary: var(--dark-on-primary);
  --background: var(--dark-background);
  --surface: var(--dark-surface);
  --border-color: var(--dark-border-color);
  --color: var(--dark-color);
  --color-secondary: var(--dark-color-secondary);
  --brand-green: var(--dark-brand-green);
  --brand-navy: var(--dark-brand-navy);
  --brand-gold: var(--dark-brand-gold);
  color-scheme: dark;
  background-color: var(--background);
  color: var(--color);
}

@media (prefers-color-scheme: dark) {
  :root:not(.light) {
    --primary: var(--dark-primary);
    --on-primary: var(--dark-on-primary);
    --background: var(--dark-background);
    --surface: var(--dark-surface);
    --border-color: var(--dark-border-color);
    --color: var(--dark-color);
    --color-secondary: var(--dark-color-secondary);
    --brand-green: var(--dark-brand-green);
    --brand-navy: var(--dark-brand-navy);
    --brand-gold: var(--dark-brand-gold);
    color-scheme: dark;
    background-color: var(--background);
    color: var(--color);
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-time: 0s;
  }
}

/* ---- reset-ish ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1,
h2,
h3,
p {
  margin: 0;
}
a {
  color: inherit;
}
img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}
button {
  font: inherit;
  cursor: pointer;
}

/* ---- buttons (subset of tutor's buttons.css) ---- */
.btn,
.btn-ghost,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid transparent;
  color: var(--color);
  text-decoration: none;
  transition: all var(--transition-time, 0.3s);
}
.btn:active,
.btn-ghost:active,
.btn-primary:active {
  transform: scale(0.93);
  transition-duration: 75ms;
}
.btn {
  background: var(--surface);
}
.btn:hover {
  background: color-mix(in srgb, var(--surface), var(--color) 4%);
}
.btn-ghost {
  background: transparent;
}
.btn-ghost:hover {
  background: color-mix(in srgb, transparent, var(--color) 4%);
}
.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}
.btn-primary:hover {
  background: color-mix(in srgb, var(--primary), black 6%);
}
.btn-default {
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
}
.btn-lg {
  padding: 0.625rem 1.125rem;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 700;
}

/* ---- page chrome ---- */
.wrap {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}
header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.wordmark img {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.45rem;
}
.theme-toggle {
  padding: 0.55rem;
  color: var(--color-secondary);
}
.theme-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}
.theme-toggle svg[hidden] {
  display: none;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-secondary);
}
h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.lede {
  font-size: 1.125rem;
  color: var(--color-secondary);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.cta-row .btn-lg {
  gap: 0.5rem;
}
.cta-row svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* phone frame around the app screenshot */
.phone {
  width: 100%;
  max-width: 300px;
  padding: 9px;
  border-radius: 2.75rem;
  background: #111114;
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}
.phone img {
  width: 100%;
  border-radius: 2.2rem;
}

/* feature cards */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.75rem;
}
.card {
  padding: 1.25rem;
  background: var(--surface);
  border-radius: 0.75rem;
}
.card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.card p {
  font-size: 0.9375rem;
  color: var(--color-secondary);
}
.card .kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

footer.bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 2rem 0 2.5rem;
  font-size: 0.8125rem;
  color: var(--color-secondary);
}
footer.bottom nav {
  display: flex;
  gap: 1.25rem;
}
footer.bottom a {
  text-decoration: none;
}
footer.bottom a:hover {
  color: var(--color);
}
