/* Online Education Brands - holding company for online education institutes */

:root {
  --bg: #ffffff;
  --bg-alt: #faf8f5;
  --ink: #13171f;
  --ink-soft: #3a414d;
  --ink-muted: #79736a;
  --line: #e9e5df;
  --line-strong: #d4cdc3;
  --accent: #a8542a;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --max: 1100px;
  --pad: clamp(1.1rem, 3.5vw, 2rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

a { color: inherit; text-decoration: none; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--accent); }

.nav-cta {
  padding: 0.45rem 0.95rem;
  background: var(--ink);
  color: var(--bg) !important;
  border-radius: 999px;
  font-weight: 500;
}

.nav-cta:hover { background: var(--accent); }

@media (max-width: 760px) {
  .nav-links { gap: 1rem; }
  .nav-links a:not(.nav-cta) { display: none; }
  /* The wordmark is the only brand element left, so it has to stay visible here. */
  .brand-name { font-size: 0.95rem; }
}

@media (max-width: 400px) {
  .brand-name { font-size: 0.86rem; }
  .nav-cta { padding: 0.42rem 0.8rem; font-size: 0.82rem; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(3.25rem, 7.5vw, 5.5rem) 0;
  background:
    radial-gradient(1100px 540px at 78% -12%, rgba(168, 84, 42, 0.07), rgba(168, 84, 42, 0)),
    linear-gradient(180deg, #ffffff 0%, var(--bg-alt) 100%);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(900px 500px at 82% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(900px 500px at 82% 0%, #000 0%, transparent 70%);
  opacity: 0.75;
  z-index: 0;
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 5vw, 3.7rem);
  line-height: 1.06;
  letter-spacing: -0.022em;
  margin: 0 0 1.3rem;
  /* Full container width. The headline is a display line, so a long measure reads fine
     and it no longer breaks at roughly half the container. */
  max-width: 100%;
  color: var(--ink);
}

.hero-sub {
  font-size: clamp(0.98rem, 1.2vw, 1.1rem);
  color: var(--ink-soft);
  /* Three quarters of the container, but never past a readable measure. */
  max-width: min(75%, 78ch);
  margin: 0 0 1.9rem;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .hero-sub { max-width: 100%; }
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.3rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); }

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

/* ---------- Stats ---------- */

.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2rem 0;
  background: var(--bg-alt);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.stat-num {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.stat-label {
  font-size: 0.79rem;
  color: var(--ink-muted);
  line-height: 1.4;
}

@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.85rem; }
}

/* ---------- Section common ---------- */

section { scroll-margin-top: 92px; }

.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.2vw, 2.45rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  max-width: 30ch;
  color: var(--ink);
}

.section-lede {
  font-size: clamp(0.98rem, 1.2vw, 1.06rem);
  color: var(--ink-soft);
  max-width: 66ch;
  margin: 0;
  line-height: 1.6;
}

/* ---------- Portfolio ---------- */

.portfolio { padding: clamp(3.25rem, 6vw, 4.75rem) 0 clamp(2rem, 4vw, 3rem); }

.brand-list {
  margin-top: 2.25rem;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.brand-row {
  display: grid;
  grid-template-columns: 48px minmax(210px, 1.15fr) minmax(0, 1.5fr) auto;
  align-items: center;
  gap: 1.75rem;
  padding: 1.15rem var(--pad);
  margin: 0 calc(-1 * var(--pad));
  border-bottom: 1px solid var(--line);
  position: relative;
}

.brand-row:last-child { border-bottom: none; }

.brand-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s ease;
  z-index: 0;
}

.brand-row:not(.brand-row--soon):hover::before { transform: scaleY(1); }

.brand-row > * { position: relative; z-index: 1; transition: color 0.2s ease; }

.brand-row:not(.brand-row--soon):hover { color: var(--bg); }
.brand-row:not(.brand-row--soon):hover .brand-row-num { color: rgba(255, 255, 255, 0.5); }
.brand-row:not(.brand-row--soon):hover .brand-row-desc { color: rgba(255, 255, 255, 0.72); }
.brand-row:not(.brand-row--soon):hover .brand-row-link { color: var(--bg); }
.brand-row:not(.brand-row--soon):hover .brand-row-arrow { transform: translateX(6px); }

.brand-row-num {
  font-size: 0.85rem;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.brand-row-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.brand-row-flag {
  font-family: var(--sans);
  font-size: 0.64rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border: 1px solid var(--line-strong);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-weight: 500;
}

.brand-row-desc {
  font-size: 0.89rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.5;
}

.brand-row-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

.brand-row-arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

/* Rows for brands that are not live yet stay inert and quiet */
.brand-row--soon .brand-row-name { color: var(--ink-soft); }
.brand-row--soon .brand-row-link {
  color: var(--ink-muted);
  font-weight: 400;
  font-size: 0.83rem;
}

@media (max-width: 900px) {
  .brand-row {
    grid-template-columns: 40px 1fr;
    gap: 0.45rem 1.25rem;
    padding: 1.5rem var(--pad);
  }
  .brand-row-num { grid-row: 1; align-self: start; padding-top: 0.3rem; }
  .brand-row-name { grid-column: 2; grid-row: 1; }
  .brand-row-desc { grid-column: 2; grid-row: 2; }
  .brand-row-link { grid-column: 2; grid-row: 3; margin-top: 0.5rem; }
}

/* ---------- Approach ---------- */

.approach {
  padding: clamp(3.25rem, 6vw, 4.75rem) 0;
  border-top: 1px solid var(--line);
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
  margin-top: 2.4rem;
}

.approach-item {
  border-top: 2px solid var(--accent);
  padding-top: 1.15rem;
}

.approach-num {
  display: block;
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 0.7rem;
  font-variant-numeric: tabular-nums;
}

.approach-item h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.06rem;
  line-height: 1.28;
  letter-spacing: -0.01em;
  margin: 0 0 0.55rem;
}

.approach-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.875rem;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .approach-grid { grid-template-columns: repeat(2, 1fr); gap: 1.85rem; }
}

@media (max-width: 540px) {
  .approach-grid { grid-template-columns: 1fr; }
}

/* ---------- Billing ---------- */

.billing {
  padding: clamp(3.25rem, 6vw, 4.75rem) 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.billing .section-lede strong {
  font-weight: 600;
  color: var(--ink);
}

.billing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 0;
  margin: 2.25rem 0 1.75rem;
  border-top: 1px solid var(--line-strong);
}

.billing-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.85rem 1rem 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.billing-item code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.83rem;
  letter-spacing: 0.01em;
  color: var(--accent);
  font-weight: 500;
}

.billing-item span {
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.billing-note {
  font-size: 0.92rem;
  color: var(--ink-soft);
  max-width: 66ch;
  margin: 0;
  line-height: 1.6;
}

.billing-note a {
  color: var(--accent);
  font-weight: 500;
  white-space: nowrap;
}

.billing-note a:hover { text-decoration: underline; }

/* ---------- Contact ---------- */

.contact {
  padding: clamp(3.25rem, 6vw, 4.75rem) 0;
  background: var(--ink);
  color: var(--bg);
  text-align: center;
}

.contact .section-title {
  margin: 0 auto 0.85rem;
  color: var(--bg);
}

.contact p {
  color: rgba(255, 255, 255, 0.72);
  margin: 0 auto 1.85rem;
  max-width: 52ch;
}

.contact .btn-primary { background: var(--bg); color: var(--ink); }
.contact .btn-primary:hover { background: var(--accent); color: var(--bg); }

/* ---------- Support page ---------- */

/* Interior pages get a shorter hero than the home page. */
.hero--page { padding: clamp(2.5rem, 5vw, 3.75rem) 0 clamp(2.25rem, 4.5vw, 3.25rem); }
.hero--page .hero-title { font-size: clamp(1.95rem, 4.2vw, 3.1rem); }
.hero--page .hero-sub { margin-bottom: 0; }

.support {
  padding: clamp(2.75rem, 5.5vw, 4.25rem) 0 clamp(3.25rem, 6vw, 4.75rem);
  border-top: 1px solid var(--line);
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 3.75rem);
  align-items: start;
}

.support-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.field { display: flex; flex-direction: column; }

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.field label {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 0.7rem 0.85rem;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea { resize: vertical; min-height: 9rem; }

.field input::placeholder,
.field textarea::placeholder { color: var(--ink-muted); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(168, 84, 42, 0.14);
}

/* Native select arrow varies too much between platforms to leave alone. */
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2379736a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
}

.field-hint {
  font-size: 0.8rem;
  color: var(--ink-muted);
  line-height: 1.5;
  margin: 0.5rem 0 0;
}

.field-hint a { color: var(--accent); font-weight: 500; }
.field-hint a:hover { text-decoration: underline; }

.support-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex-wrap: wrap;
}

.form-actions .btn:disabled { opacity: 0.6; cursor: default; }

.form-note {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin: 0;
  max-width: 34ch;
  line-height: 1.5;
}

.form-status {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  line-height: 1.55;
}

.form-status.is-ok {
  background: #f1f6f1;
  border: 1px solid #cbdfc9;
  color: #2c4a2c;
}

.form-status.is-error {
  background: #fdf3ef;
  border: 1px solid #eccbbd;
  color: #7d3418;
}

.support-aside {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: 1.6rem 1.6rem 1.75rem;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.aside-block h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.55rem;
}

.aside-block p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.aside-block strong { color: var(--ink); font-weight: 600; }

.aside-block a { color: var(--accent); font-weight: 500; }
.aside-block a:hover { text-decoration: underline; }

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

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */

.footer {
  background: #0d1017;
  color: var(--bg);
  padding: 2.75rem 0 1.5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 2.25rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #1d222c;
  margin-bottom: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--serif);
  font-size: 1.06rem;
  font-weight: 600;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-cols h4 {
  font-family: var(--sans);
  font-size: 0.76rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 1.15rem;
  font-weight: 500;
}

.footer-cols a {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  padding: 0.32rem 0;
  transition: color 0.15s ease;
}

.footer-cols a:hover { color: #fff; }

.footer-disclosure {
  padding-bottom: 1.4rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid #1d222c;
}

.footer-disclosure p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.48);
  max-width: 84ch;
}

.footer-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-cols { grid-template-columns: 1fr; gap: 2rem; }
}
