/* ============================================================
   Webnify design system (brief §11)
   cream #FFF8EE · ink #171717 · orange #F56822 · white #FFFFFF
   muted ink #56514B · rule #DED7CE · error #B42318
   Solid colors only. No gradients, glassmorphism or neon.
   ============================================================ */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/inter-latin-700-normal.woff2') format('woff2');
}

:root {
  --cream: #FFF8EE;
  --ink: #171717;
  --orange: #F56822;
  --orange-dark: #DE5518;
  --white: #FFFFFF;
  --muted: #56514B;
  --rule: #DED7CE;
  --error: #B42318;
  --font: 'Inter', Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: 20px;          /* phone container padding */
  --section-y: 64px;    /* phone section spacing */
  --header-h: 64px;     /* phone header height */
  --radius-card: 16px;
  --radius-btn: 8px;
}

@media (min-width: 640px) {
  :root { --pad: 32px; --header-h: 72px; }
}
@media (min-width: 1024px) {
  :root { --pad: 48px; --section-y: 104px; }
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: break-word;
}
@media (min-width: 1024px) {
  body { font-size: 18px; }
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button { font-family: inherit; }

/* ---------- layout ---------- */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
.container-narrow { max-width: 820px; }

.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section-alt { background: var(--white); }
.section-tight { padding-top: calc(var(--section-y) * 0.5); padding-bottom: calc(var(--section-y) * 0.5); }

.grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

main { display: block; }
body.has-sticky-apply { padding-bottom: 76px; }
@media (min-width: 900px) {
  body.has-sticky-apply { padding-bottom: 0; }
}

/* ---------- type ---------- */

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.hero-title {
  font-size: 40px;
  line-height: 1.05;
}
.page-title { font-size: 36px; line-height: 1.1; }
.section-title { font-size: 28px; line-height: 1.15; margin-bottom: 16px; }
.sub-heading { font-size: 22px; margin: 32px 0 12px; }
.hero-body, .section-body {
  color: var(--muted);
  margin-top: 16px;
  max-width: 56ch;
}
.section-note { color: var(--muted); font-size: 15px; margin-top: 12px; }

@media (min-width: 1024px) {
  .hero-title { font-size: 64px; }
  .page-title { font-size: 48px; }
  .section-title { font-size: 36px; }
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
}
.wordmark-mark { width: 34px; height: auto; }
.main-nav { display: none; gap: 28px; }
.nav-link {
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 2px;
}
.nav-link:hover { color: var(--orange-dark); }
.nav-link[aria-current="page"] { color: var(--orange-dark); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-cta { display: none; }
@media (max-width: 379px) {
  .header-cta { padding: 8px 10px; font-size: 14px; }
  .wordmark-text { font-size: 18px; }
  .menu-btn-label { font-size: 14px; }
}
@media (max-width: 359px) {
  .wordmark-text { display: none; }
  .wordmark-mark { width: 40px; }
  .header-inner { gap: 8px; }
}
.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  padding: 10px 12px;
  min-height: 44px;
  cursor: pointer;
  color: var(--ink);
}
.menu-btn-box { display: inline-flex; flex-direction: column; gap: 5px; width: 20px; }
.menu-btn-box span { height: 2px; background: var(--ink); border-radius: 1px; transition: transform 160ms var(--ease), opacity 160ms var(--ease); }
.menu-btn-box.is-open span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn-box.is-open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.menu-btn-label { font-size: 15px; font-weight: 600; }
@media (min-width: 900px) {
  .main-nav { display: flex; }
  .header-cta { display: inline-flex; }
  .menu-btn { display: none; }
}

/* ---------- drawer ---------- */

.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer[hidden] { display: none; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(23, 23, 23, 0.45); }
.drawer-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(340px, 88vw);
  background: var(--cream);
  border-left: 1px solid var(--rule);
  padding: 16px 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.drawer-head .wordmark-text { font-weight: 700; font-size: 20px; }
.drawer-nav { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; }
.drawer-link {
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  padding: 14px 4px;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--rule);
}
.drawer-link[aria-current="page"] { color: var(--orange-dark); }
.drawer-cta { margin-top: 20px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 14px 22px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), transform 160ms var(--ease), border-color 160ms var(--ease);
}
.btn-primary {
  background: var(--orange);
  color: var(--ink);
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: var(--cream); }
.btn-small { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.btn:disabled {
  background: var(--rule);
  color: var(--muted);
  cursor: not-allowed;
  transform: none;
}
.btn:focus-visible,
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.text-link { color: var(--ink); font-weight: 600; text-decoration: none; }
.text-link:hover, .text-link:focus-visible { text-decoration: underline; }
.as-button {
  background: none;
  border: 0;
  padding: 8px 4px;
  min-height: 44px;
  cursor: pointer;
  font-size: 15px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 18px;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- hero ---------- */

.hero { padding: 48px 0; }
.hero-page { padding: 40px 0 24px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-support { margin-top: 18px; color: var(--muted); font-size: 15px; }
.hero-art { width: 100%; height: auto; }

@media (min-width: 1024px) {
  .hero { padding: 72px 0; }
  .hero-grid { grid-template-columns: 55fr 45fr; gap: 48px; }
}

/* course hero with sticky fee sidebar */
.course-hero-grid { display: grid; gap: 24px; }
.fee-sidebar {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: 24px;
}
.fee-sidebar-label { font-weight: 600; color: var(--muted); font-size: 15px; }
.fee-sidebar-amount { font-size: 34px; font-weight: 700; margin: 4px 0 8px; }
.fee-sidebar-note { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.fee-sidebar-cta { width: 100%; }
@media (min-width: 1024px) {
  .course-hero-grid { grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
  .fee-sidebar { position: sticky; top: calc(var(--header-h) + 24px); }
}
.course-fee-line { margin-top: 18px; font-size: 18px; }
.fee-launch-note { margin-top: 6px; color: var(--muted); font-size: 15px; }

/* ---------- split blocks (home / about) ---------- */

.split-blocks { display: grid; gap: 24px; margin-top: 32px; }
@media (min-width: 720px) {
  .split-blocks { grid-template-columns: 1fr 1fr; }
}
.split-block {
  border-radius: var(--radius-card);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--rule);
}
.split-block h3 { font-size: 24px; }
.split-block p { color: var(--muted); }
.split-block .btn { margin-top: 12px; }
.split-block-dark { background: var(--ink); border-color: var(--ink); }
.split-block-dark h3 { color: var(--cream); }
.split-block-dark p { color: #CFc8c0; }
.split-block-light { background: var(--cream); }

/* ---------- cards ---------- */

.card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.card-title { font-size: 20px; }
.card-summary { color: var(--muted); }
.card .text-link, .card .btn { margin-top: auto; }
.card-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 14px;
  color: var(--muted);
}
.card-facts li::before { content: "·"; margin-right: 8px; color: var(--orange); }
.card-facts li:first-child::before { content: ""; margin: 0; }
.card-fee { font-weight: 600; font-size: 15px; }

.work-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--cream);
  border: 1px dashed var(--rule);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.work-thumb span {
  font-size: 40px;
  font-weight: 700;
  color: var(--orange);
}
.work-thumb em { font-style: normal; font-size: 13px; color: var(--muted); }

.section-more { margin-top: 32px; }

/* ---------- package cards ---------- */

.pkg-price { font-size: 26px; font-weight: 700; }
.pkg-billing { font-size: 14px; font-weight: 600; color: var(--muted); }
.pkg-bullets li, .plain-list li {
  position: relative;
  padding-left: 20px;
  margin-top: 8px;
}
.pkg-bullets li::before, .check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--orange);
}
.check-list li { position: relative; padding-left: 24px; margin-top: 10px; }
.pkg-conditions { margin-top: 12px; border-top: 1px solid var(--rule); padding-top: 12px; }
.pkg-cond {
  font-size: 14px;
  color: var(--muted);
  position: relative;
  padding-left: 18px;
  margin-top: 6px;
}
.pkg-cond::before { content: "—"; position: absolute; left: 0; color: var(--orange); }
.exclude-list li { position: relative; padding-left: 22px; margin-top: 10px; color: var(--muted); }
.exclude-list li::before { content: "×"; position: absolute; left: 0; color: var(--error); font-weight: 700; }
.plain-list li { margin-top: 8px; }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 8px; padding-bottom: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.chip:hover { border-color: var(--ink); }

/* ---------- steps ---------- */

.how-grid { display: grid; gap: 32px; margin-top: 32px; }
@media (min-width: 720px) { .how-grid { grid-template-columns: 1fr 1fr; } }
.how-col h3 { font-size: 22px; margin-bottom: 16px; }
.steps { counter-reset: step; }
.steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-weight: 600;
}
.step-num {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.steps-wide li { border-bottom: 0; padding: 10px 0; }
.how-note { margin-top: 24px; color: var(--muted); font-size: 15px; }

/* ---------- accordion ---------- */

.accordion-group { border-top: 1px solid var(--rule); }
.acc { border-bottom: 1px solid var(--rule); }
.acc summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px;
  font-weight: 600;
  min-height: 44px;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: "+";
  flex: none;
  font-size: 22px;
  font-weight: 400;
  color: var(--orange);
  transition: transform 180ms var(--ease);
}
.acc[open] summary::after { transform: rotate(45deg); }
.acc-body { padding: 0 4px 18px; color: var(--muted); }
.acc[open] .acc-body { animation: accOpen 180ms var(--ease); }
@keyframes accOpen {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.accordion-controls { display: flex; gap: 16px; margin-top: 8px; }
.accordion-controls-top { margin: 0; }
.syllabus-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }

/* ---------- forms ---------- */

.webnify-form {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: 32px 24px;
}
@media (min-width: 720px) { .webnify-form { padding: 40px; } }
.form-heading { font-size: 26px; }
.form-body { color: var(--muted); margin-top: 8px; }
.form-grid { display: grid; gap: 18px; margin-top: 24px; }
@media (min-width: 720px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field-full { grid-column: 1 / -1; }
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label-like { font-weight: 600; font-size: 15px; }
.optional-tag { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"],
.field select, .field textarea {
  font-family: inherit;
  font-size: 16px;
  padding: 12px 14px;
  min-height: 48px;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-btn);
  background: var(--cream);
  color: var(--ink);
  width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: 14px; font-weight: 600; }
.field-consent { flex-direction: row; flex-wrap: wrap; gap: 10px; margin-top: 6px; align-items: flex-start; }
.field-consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--orange); }
.field-consent label { font-weight: 400; flex: 1; min-width: 220px; font-size: 15px; }
.field-consent .field-error { flex-basis: 100%; }
.static-line { font-size: 16px; padding: 10px 0; font-weight: 600; }
.fee-summary { font-size: 17px; padding: 8px 0; }
.fee-phase { color: var(--muted); font-size: 14px; }
.payment-note { margin-top: 18px; color: var(--muted); font-size: 15px; }
.form-actions { margin-top: 24px; }
.form-status { margin-top: 12px; font-weight: 600; min-height: 1.2em; }
.noscript-note { margin-top: 16px; color: var(--error); font-weight: 600; }
.hp-field { position: absolute; left: -9999px; top: -9999px; height: 1px; width: 1px; overflow: hidden; }
.error-summary {
  border: 2px solid var(--error);
  border-radius: var(--radius-btn);
  padding: 14px 16px;
  margin-bottom: 20px;
  background: #FBEFEE;
}
.error-summary p { font-weight: 700; color: var(--error); margin-bottom: 6px; }
.error-summary ul li { margin-top: 4px; }
.error-summary a { color: var(--error); }

/* form state blocks (success/failure), filled by JS */
.form-state { margin-top: 20px; border-radius: var(--radius-btn); padding: 20px; }
.form-state.state-success { background: var(--cream); border: 1.5px solid var(--ink); }
.form-state.state-failure { background: #FBEFEE; border: 1.5px solid var(--error); }
.form-state h3 { font-size: 20px; }
.form-state p { margin-top: 8px; }
.form-state .reference { font-weight: 700; }
.form-state .state-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }

/* ---------- contact ---------- */

.contact-grid { display: grid; gap: 40px; }
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 380px 1fr; }
}
.mode-switch { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.mode-btn[aria-pressed="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.contact-rows { margin: 0; }
.contact-row { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.contact-row dt { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.contact-row dd { margin: 4px 0 0; font-weight: 600; }
.contact-note { margin-top: 18px; color: var(--muted); font-size: 15px; }

/* ---------- sticky apply (course pages, phone) ---------- */

.sticky-apply {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 30;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(23, 23, 23, 0.18);
  transition: opacity 160ms var(--ease), transform 160ms var(--ease);
}
.sticky-apply[hidden] { display: none; }
.sticky-apply.is-hidden { opacity: 0; pointer-events: none; transform: translateY(8px); }
.sticky-apply-fee { font-weight: 700; }
@media (min-width: 900px) { .sticky-apply { display: none; } }

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

.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--cream);
  padding: 48px 0 32px;
}
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr 1fr; }
}
.footer-logo img { width: 44px; height: auto; }
.footer-name { font-weight: 700; font-size: 18px; margin-top: 12px; }
.footer-tagline { color: var(--muted); margin-top: 4px; }
.footer-loc { color: var(--muted); font-size: 14px; margin-top: 10px; max-width: 32ch; }
.footer-heading { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; }
.footer-col a { text-decoration: none; padding: 5px 0; font-size: 15px; min-height: 24px; }
.footer-col a:hover { color: var(--orange-dark); text-decoration: underline; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 14px; }

/* ---------- breadcrumb ---------- */

.breadcrumb { padding: 16px 0 0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); max-width: 1200px; margin: 0 auto; padding: 0 var(--pad); }
.breadcrumb a { color: var(--muted); }

/* ---------- legal ---------- */

.legal-copy h2 { font-size: 24px; margin: 36px 0 10px; }
.legal-copy h2:first-child { margin-top: 0; }
.legal-copy p, .legal-copy li { color: var(--muted); margin-top: 8px; }
.legal-copy ul { list-style: disc; padding-left: 22px; }

/* ---------- CTA band ---------- */

.section-cta { background: var(--ink); color: var(--cream); }
.section-cta .section-body { color: #CFC8C0; }
.cta-inner { text-align: left; }
.cta-inner .hero-actions { justify-content: flex-start; }
.section-cta .btn-secondary { color: var(--cream); border-color: var(--cream); }
.section-cta .btn-secondary:hover { background: var(--cream); color: var(--ink); }

/* ---------- reveal motion ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 320ms var(--ease), transform 320ms var(--ease);
  transition-delay: var(--stagger, 0ms);
}
.reveal.in { opacity: 1; transform: translateY(0); }
/* no-JS fallback: content stays visible */
.no-js .reveal, html.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .menu-btn-box span, .acc summary::after, .sticky-apply { transition: none; }
  .btn-primary:hover, .btn-secondary:hover { transform: none; }
  .acc[open] .acc-body { animation: none; }
}
