@charset "UTF-8";

:root {
  --brand-900: #034769;
  --brand-700: #086fa1;
  --brand-400: #3ca0d0;
  --accent: #ff8900;
  --teal: #559088;
  --teal-soft: rgba(85, 144, 136, 0.12);
  --teal-mid: rgba(85, 144, 136, 0.26);
  --panel: rgba(255, 255, 255, 0.96);
  --line: #d6e1ea;
  --text: #16232a;
  --muted: #5f7784;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.12);
  --radius: 26px;
  --warm-soft: #fff4e6;
  --ink-soft: #5f7784;
}


* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, "Lato", "Segoe UI", Tahoma, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1000px 500px at -5% -10%, rgba(255, 137, 0, 0.18), transparent 65%),
    radial-gradient(900px 500px at 105% 0%, rgba(60, 160, 208, 0.18), transparent 60%),
    linear-gradient(135deg, #034769 0%, #086fa1 45%, #3ca0d0 100%);
}

a { color: inherit; }
button { font: inherit; }

.page-shell {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  position: relative;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--line);
  background: #eef3f6;
  color: var(--brand-900);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.nav-btn:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.hero {
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, var(--teal), var(--brand-400)) border-box;
  color: #fff;
  border-radius: 32px;
  padding: 30px;
  box-shadow: var(--shadow);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("https://www.transparenttextures.com/patterns/diagonal-noise.png");
  opacity: 0.05;
  pointer-events: none;
}

.hero-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: rgba(8, 111, 161, 0.08);
  border: 1px solid rgba(85, 144, 136, 0.28);
  color: var(--brand-900);
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  color: var(--brand-900);
}

.hero p {
  margin: 0;
  max-width: 860px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
}

.article-stack {
  display: grid;
  gap: 22px;
  margin: 24px auto 36px;
}

.flow-card,
.example-block {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.flow-card::after,
.example-block::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("https://www.transparenttextures.com/patterns/diagonal-noise.png");
  opacity: 0.035;
  pointer-events: none;
}

.flow-card { padding: 28px 30px; }

.section-label,
.example-tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--brand-700);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-title {
  margin: 12px 0 12px;
  font-size: 30px;
  line-height: 1.16;
  color: var(--brand-900);
}

.lead,
.section-copy,
.flow-section p,
.criteria-row p,
.example-section p,
.example-section li,
.small-note {
  color: var(--muted);
  line-height: 1.8;
}

.criteria-list,
.example-body { margin-top: 18px; }

.criteria-row,
.flow-section,
.example-section {
  padding: 18px 0;
  border-top: 1px solid rgba(201, 220, 235, 0.9);
}

.criteria-row:first-child,
.flow-section:first-child,
.example-section:first-child { border-top: 0; padding-top: 0; }
.criteria-row:last-child,
.flow-section:last-child,
.example-section:last-child { padding-bottom: 0; }

.criteria-row h3,
.flow-section h2,
.example-section h4 { margin: 0 0 8px; }
.criteria-row h3 { font-size: 18px; color: var(--brand-700); }
.flow-section h2 { font-size: 24px; color: var(--brand-700); }

.checklist,
.example-section ul,
.source-list {
  margin: 10px 0 0;
  padding-left: 20px;
}

.examples-flow { display: grid; gap: 22px; }
.example-head { padding: 26px 30px 0; }
.example-head h3 { margin: 14px 0 0; font-size: 26px; line-height: 1.3; }
.example-body { padding: 0 30px 26px; }
.example-section h4 {
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-700);
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.step-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(8, 111, 161, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 248, 253, 0.98));
  box-shadow: 0 10px 22px rgba(3, 71, 105, 0.08);
}

.step-no {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brand-700), var(--brand-900));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.step-card p {
  margin: 0;
}

.example-plan-grid {
  margin-top: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.example-plan-card {
  align-items: start;
  gap: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(238,247,251,0.98));
  border-color: rgba(8, 111, 161, 0.16);
  box-shadow: 0 12px 24px rgba(3, 71, 105, 0.08);
}

.example-plan-copy {
  margin-top: 10px !important;
}

.example-plan-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--brand-900);
  font-size: 15px;
}

.example-plan-card p {
  color: var(--muted);
  line-height: 1.6;
}

.structure-grid {
  margin-top: 12px;
}

.structure-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--brand-900);
  font-size: 15px;
}

.structure-card p {
  color: var(--ink-soft);
}

.format-guide {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed rgba(12, 117, 166, 0.22);
}

.format-guide h3 {
  margin: 0 0 12px;
  color: var(--brand-900);
  font-size: 18px;
}

.format-grid {
  display: grid;
  gap: 12px;
}

.format-card {
  gap: 8px;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(248, 252, 255, 0.98), rgba(235, 246, 251, 0.98));
}

.format-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--brand-900);
  font-size: 15px;
}

.format-card p {
  color: var(--ink-soft);
}

.model-paper {
  margin-top: 6px;
  padding: 20px 22px;
  border-radius: 22px;
  border: 1px solid var(--teal-mid);
  background: linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
  box-shadow: inset 0 0 0 1px rgba(60, 160, 208, 0.08);
}

.model-doc-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--brand-900);
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(8, 111, 161, 0.12);
}

.model-doc-subject {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-700);
  margin-bottom: 12px;
}

.model-answer {
  margin: 0;
  color: var(--text) !important;
  font-size: 16px;
  line-height: 1.95;
}

.model-answer + .model-answer { margin-top: 16px; }
.inline-help { margin-top: 12px !important; font-size: 14px; }
.grammar-focus { margin-top: 14px !important; }

.assessment-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.paragraph-note,
.assessment-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(8, 111, 161, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 253, 0.98));
  box-shadow: 0 10px 22px rgba(3, 71, 105, 0.06);
}

.model-block + .model-block {
  margin-top: 18px;
}

.model-block-label {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(60, 160, 208, 0.16), rgba(85, 144, 136, 0.14));
  color: var(--brand-900);
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 10px;
}

.inline-paragraph-note {
  grid-template-columns: 1fr;
  margin-top: 10px;
  border-left: 4px solid #8b5cf6;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.08), rgba(139, 92, 246, 0.03));
}

.inline-paragraph-note h5 {
  margin: 0 0 6px;
  color: #6d28d9;
  font-size: 15px;
}

.inline-paragraph-note p {
  margin: 0;
}

.model-signoff {
  margin-top: 18px;
}

.paragraph-note-no,
.assessment-mark {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brand-700), var(--brand-900));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.assessment-mark {
  background: linear-gradient(180deg, var(--accent), #d96d00);
}

.paragraph-note h5 {
  margin: 0 0 6px;
  color: var(--brand-700);
  font-size: 15px;
}

.paragraph-note p,
.assessment-card p {
  margin: 0;
}

.grammar-term {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(8, 111, 161, 0.2);
  background: rgba(60, 160, 208, 0.12);
  color: var(--brand-900);
  cursor: pointer;
  text-decoration: none;
  transition: transform 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

.grammar-term:hover {
  background: rgba(255, 137, 0, 0.18);
  box-shadow: 0 2px 10px rgba(255, 137, 0, 0.18);
  transform: translateY(-1px);
}

.grammar-inline {
  padding: 1px 5px;
  border: 0;
  border-bottom: 2px dashed rgba(8, 111, 161, 0.7);
  border-radius: 8px;
  background: rgba(255, 137, 0, 0.12);
  line-height: inherit;
  vertical-align: baseline;
}

.dialog-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 27, 43, 0.48);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 100;
}

.dialog-backdrop.open { opacity: 1; pointer-events: auto; }

.grammar-dialog {
  position: fixed;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -46%) scale(0.98);
  width: min(520px, calc(100% - 24px));
  max-height: min(80vh, 760px);
  background: #fff;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(15, 43, 66, 0.24);
  padding: 24px;
  z-index: 101;
  opacity: 0;
  pointer-events: none;
  overflow-y: auto;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.grammar-dialog.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.grammar-dialog h3 { margin: 0 0 10px; font-size: 24px; }
.grammar-dialog p { margin: 0; line-height: 1.7; color: var(--muted); }

.grammar-meta {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.grammar-panels {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.grammar-meta-block {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(8, 111, 161, 0.12);
  background: linear-gradient(180deg, #ffffff, #f5fbff);
}

.grammar-panel-card {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(8, 111, 161, 0.14);
  background: linear-gradient(180deg, #ffffff, #f5fbff);
  box-shadow: 0 10px 22px rgba(3, 71, 105, 0.06);
}

.grammar-panel-card h4 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--brand-900);
}

.grammar-panel-card p {
  margin: 0;
}

.grammar-panel-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.grammar-panel-grid .grammar-meta-block {
  padding: 10px 12px;
}

.grammar-panel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  background: rgba(60, 160, 208, 0.1);
  color: var(--brand-900);
}

.grammar-meta-block h4 {
  margin: 0 0 6px;
  color: var(--brand-700);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.grammar-meta-block p {
  margin: 0;
}

.dialog-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}

.dialog-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  text-decoration: none;
}

.footer-nav { padding: 0 0 40px; }
.footer-nav .topbar { padding-top: 0; }

@media (max-width: 960px) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
  }
  .nav-btn { width: 100%; }
  .flow-card { padding: 22px 20px; }
  .example-head,
  .example-body { padding-left: 20px; padding-right: 20px; }
}


.structure-guide-card {
  position: relative;
  overflow: hidden;
}

.structure-guide-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(60,160,208,0.14), transparent 42%);
  pointer-events: none;
}

.structure-guide-card .section-title,
.intro-card .section-title {
  margin-bottom: 10px;
}

.criteria-list {
  display: grid;
  gap: 14px;
}

.criteria-row {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(8, 111, 161, 0.14);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(241,248,253,0.95));
  box-shadow: 0 10px 24px rgba(5, 42, 63, 0.08);
}

.criteria-row h3 {
  margin: 0 0 8px;
  color: var(--brand-900);
}

.criteria-row p {
  margin: 0;
}

.intro-card .criteria-list {
  counter-reset: criteriaItem;
  gap: 12px;
}

.intro-card .criteria-row {
  position: relative;
  padding: 16px 16px 16px 62px;
  border-radius: 20px;
  border: 1px solid rgba(8, 111, 161, 0.16);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,250,254,0.96));
  box-shadow:
    0 12px 24px rgba(4, 48, 74, 0.07),
    inset 0 1px 0 rgba(255,255,255,0.9);
  overflow: hidden;
}

.intro-card .criteria-row::before {
  counter-increment: criteriaItem;
  content: counter(criteriaItem);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(180deg, #2588b7, #086fa1);
  box-shadow: 0 8px 16px rgba(8, 111, 161, 0.35);
}

.intro-card .criteria-row::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.42), rgba(255,255,255,0) 40%);
  pointer-events: none;
}

.intro-card .criteria-row h3 {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.18;
  color: var(--brand-900);
}

.intro-card .criteria-row p {
  margin: 0;
  line-height: 1.7;
  color: var(--muted);
}

.example-section {
  position: relative;
}

.example-section h4 {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(60, 160, 208, 0.12);
  color: var(--brand-900);
  margin-bottom: 14px;
}

.model-paper .model-block + .model-block {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed rgba(8, 111, 161, 0.14);
}

.hero-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.guidance-card .checklist {
  display: grid;
  gap: 10px;
  padding-left: 0;
  list-style: none;
}

.guidance-card .checklist li {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(8, 111, 161, 0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,249,252,0.98));
}

.examples-intro {
  background: linear-gradient(180deg, rgba(255,255,255,0.97), rgba(245,250,253,0.98));
}

.model-paper {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.grammar-inline {
  padding: 0 4px;
  border-bottom: 2px dashed rgba(8, 111, 161, 0.7);
  border-radius: 6px;
  background: rgba(255, 137, 0, 0.10);
}

@media (max-width: 960px) {
  .hero-nav {
    flex-direction: column;
  }
  .intro-card .criteria-row {
    padding-left: 56px;
  }
  .intro-card .criteria-row h3 {
    font-size: 21px;
  }
}
