:root {
  --ink: #0c1823;
  --muted: #5c6975;
  --paper: #ffffff;
  --canvas: #f3f7f5;
  --line: #d8e1dd;
  --green: #0b6b5c;
  --green-deep: #064d43;
  --green-soft: #dff2ec;
  --lime: #c9f269;
  --blue: #1957d2;
  --purple: #6e3fa0;
  --shadow: 0 22px 70px rgba(14, 39, 34, .11);
  --radius: 24px;
  --shell: min(1240px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
img { max-width: 100%; }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 251, 249, .88);
  border-bottom: 1px solid rgba(12, 24, 35, .08);
  backdrop-filter: blur(18px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: 0 0 auto; }
.brand-mark {
  width: 46px; height: 46px; display: block; flex: 0 0 46px; overflow: hidden;
  color: transparent; font-size: 0; background: url("brand-logo.svg?v=4.0") center / contain no-repeat;
  filter: drop-shadow(0 8px 13px rgba(6, 72, 63, .18));
}
.brand-mark i { display: none; }
.brand-name { color: #0a1721; font-size: 1.02rem; font-weight: 860; letter-spacing: -.035em; line-height: .96; }
.brand-name small { display: block; margin-top: 3px; color: var(--green); font-size: .67em; font-weight: 820; letter-spacing: .105em; text-transform: uppercase; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 10px 12px; border-radius: 10px; color: #35434d; text-decoration: none;
  font-size: .91rem; font-weight: 680; white-space: nowrap; transition: .2s ease;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--green-deep); background: #eaf3ef; }
.header-contact {
  padding: 11px 16px; border: 1px solid var(--green); border-radius: 999px; color: var(--green-deep);
  text-decoration: none; font-weight: 780; font-size: .9rem; white-space: nowrap;
}
.menu-toggle { display: none; border: 0; background: transparent; padding: 8px; margin-left: auto; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px; background: var(--ink); }

.home-main { min-height: calc(100vh - 76px); overflow: hidden; position: relative; }
.hero {
  min-height: calc(100vh - 76px); display: grid; align-items: center; position: relative;
  isolation: isolate; padding: 64px 0 52px;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(2px); z-index: -2; pointer-events: none;
}
.hero::before { width: 500px; height: 500px; right: -140px; top: -180px; background: rgba(60, 188, 150, .15); animation: float-one 11s ease-in-out infinite; }
.hero::after { width: 340px; height: 340px; left: -180px; bottom: -100px; background: rgba(91, 133, 255, .10); animation: float-two 13s ease-in-out infinite; }
@keyframes float-one { 50% { transform: translate(-35px, 32px) scale(1.06); } }
@keyframes float-two { 50% { transform: translate(45px, -28px) scale(.94); } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(420px, .97fr); align-items: center; gap: clamp(42px, 7vw, 96px); }
.hero > .hero-grid { position: relative; z-index: 1; }
.hero > .hero-ambient { opacity: .52; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; color: var(--green); font-size: .76rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--green); }
.hero h1 { margin: 0; max-width: 760px; font-size: clamp(3.2rem, 6vw, 6.3rem); line-height: .96; letter-spacing: -.07em; font-weight: 760; }
.hero h1 em { color: var(--green); font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.hero-copy { max-width: 650px; margin: 28px 0 0; color: var(--muted); font-size: clamp(1.04rem, 1.5vw, 1.24rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button, .primary-button, .secondary-button {
  border: 0; border-radius: 13px; padding: 14px 18px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  text-decoration: none; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover, .primary-button:hover, .secondary-button:hover { transform: translateY(-2px); }
.button.primary, .primary-button { background: var(--green); color: #fff; box-shadow: 0 13px 28px rgba(11, 107, 92, .20); }
.button.primary:hover, .primary-button:hover { background: var(--green-deep); }
.button.ghost, .secondary-button { color: var(--ink); background: rgba(255,255,255,.7); border: 1px solid var(--line); }
.secondary-button:disabled, .primary-button:disabled { opacity: .42; cursor: not-allowed; transform: none; box-shadow: none; }
.trust-note { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 28px; color: #63716f; font-size: .82rem; font-weight: 680; }
.trust-note span { display: flex; align-items: center; gap: 7px; }
.trust-note span::before { content: "✓"; color: var(--green); font-weight: 900; }
.hero-visual { position: relative; min-height: 590px; }
.hero-frame {
  position: absolute; inset: 0 0 30px 22px; overflow: hidden; border-radius: 34px;
  box-shadow: var(--shadow); background: #d6e7e3;
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 64% 50%; animation: gentle-pan 18s ease-in-out infinite alternate; }
@keyframes gentle-pan { from { transform: scale(1.03) translateX(-1%); } to { transform: scale(1.09) translateX(2%); } }
.hero-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, transparent 42%, rgba(6, 58, 50, .28)); }
.floating-card {
  position: absolute; z-index: 2; border-radius: 20px; background: rgba(255,255,255,.92); backdrop-filter: blur(16px);
  box-shadow: 0 18px 45px rgba(10, 35, 30, .15); border: 1px solid rgba(255,255,255,.8);
}
.floating-card.results { left: -20px; bottom: 0; width: 250px; padding: 19px; }
.floating-card.results span { color: var(--green); font-size: .72rem; font-weight: 850; letter-spacing: .12em; }
.floating-card.results strong { display: block; margin-top: 7px; font-size: 1.1rem; line-height: 1.3; }
.floating-card.document { right: -22px; top: 44px; width: 220px; padding: 18px; }
.mini-document { height: 130px; padding: 18px; background: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.mini-document b { display: block; font-family: Georgia, serif; font-size: .95rem; }
.mini-document i { display: block; width: 55%; height: 3px; margin: 9px 0 13px; background: #1f292f; }
.mini-document span { display: block; height: 4px; margin: 7px 0; background: #d8ddde; }
.mini-document span:nth-of-type(2) { width: 86%; }
.mini-document span:nth-of-type(3) { width: 72%; }
.workflow-strip { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.workflow-strip a { padding: 15px 16px; border-radius: 16px; border: 1px solid rgba(12,24,35,.08); background: rgba(255,255,255,.72); text-decoration: none; transition: .2s ease; }
.workflow-strip a:hover { background: #fff; border-color: rgba(11,107,92,.3); transform: translateY(-2px); }
.workflow-strip b { display: block; color: var(--green); font-size: .72rem; letter-spacing: .12em; }
.workflow-strip span { display: block; margin-top: 3px; font-size: .9rem; font-weight: 780; }

.page-hero { min-height: 485px; display: grid; align-items: center; position: relative; isolation: isolate; overflow: hidden; padding: 62px 0 48px; background: linear-gradient(135deg, #edf8f4 0%, #f7faf9 58%, #eef5f2 100%); border-bottom: 1px solid var(--line); }
.page-hero > .shell { position: relative; z-index: 2; padding-right: min(37vw, 500px); }
.page-hero .crumb { color: var(--green); font-size: .77rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.page-hero h1 { max-width: 920px; margin: 12px 0 15px; font-size: clamp(2.7rem, 5vw, 5.25rem); line-height: .99; letter-spacing: -.058em; text-wrap: balance; }
.page-hero p { max-width: 760px; margin: 0; color: var(--muted); font-size: 1.08rem; }
.page-hero .hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.page-hero .hero-meta span { padding: 7px 11px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: #44525c; font-size: .78rem; font-weight: 700; }
.page-hero h1, .page-hero p { text-shadow: 0 1px 0 rgba(255,255,255,.8); }
.hero-ambient { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-ambient::before { content: ""; position: absolute; width: 560px; height: 560px; right: -90px; top: -210px; border: 1px solid rgba(11, 107, 92, .11); border-radius: 50%; box-shadow: 0 0 0 72px rgba(11, 107, 92, .025), 0 0 0 145px rgba(11, 107, 92, .018); animation: ambient-orbit 22s linear infinite; }
.hero-ambient::after { content: ""; position: absolute; width: 340px; height: 340px; right: 17%; bottom: -275px; border-radius: 50%; background: radial-gradient(circle, rgba(201, 242, 105, .22), rgba(201, 242, 105, 0) 68%); animation: ambient-pulse 9s ease-in-out infinite; }
.ambient-route { position: absolute; right: 5.5%; top: 20%; width: min(39vw, 560px); height: 54%; border: 1px dashed rgba(11, 107, 92, .2); border-width: 1px 0 0; border-radius: 50%; transform: rotate(-13deg); }
.ambient-route::before, .ambient-route::after { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 6px rgba(11, 107, 92, .09); }
.ambient-route::before { left: 5%; top: -4px; }
.ambient-route::after { right: 7%; top: -4px; background: var(--lime); }
.ambient-card { position: absolute; display: flex; align-items: center; gap: 9px; min-width: 150px; padding: 10px 13px 10px 10px; border: 1px solid rgba(11, 107, 92, .14); border-radius: 14px; background: rgba(255, 255, 255, .73); box-shadow: 0 16px 42px rgba(7, 56, 48, .07); backdrop-filter: blur(9px); color: #30433f; }
.ambient-card b { width: 35px; height: 35px; display: grid; place-items: center; flex: 0 0 35px; border-radius: 10px; color: #fff; background: var(--green); font-size: .72rem; letter-spacing: .02em; }
.ambient-card i { font-style: normal; font-size: .76rem; font-weight: 780; white-space: nowrap; }
.ambient-card-1 { right: 6%; top: 14%; animation: ambient-float-a 8s ease-in-out infinite; }
.ambient-card-2 { right: 24%; top: 38%; animation: ambient-float-b 9.5s ease-in-out infinite .4s; }
.ambient-card-3 { right: 7.5%; bottom: 18%; animation: ambient-float-a 10s ease-in-out infinite 1s; }
.ambient-card-4 { right: 29%; bottom: 8%; animation: ambient-float-b 8.7s ease-in-out infinite .8s; }
@keyframes ambient-float-a { 50% { transform: translate3d(-11px, 13px, 0) rotate(-1deg); } }
@keyframes ambient-float-b { 50% { transform: translate3d(14px, -10px, 0) rotate(1deg); } }
@keyframes ambient-orbit { to { transform: rotate(360deg); } }
@keyframes ambient-pulse { 50% { transform: scale(1.16); opacity: .72; } }
.page-content { padding: 46px 0 86px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.builder-workspace { display: grid; grid-template-columns: minmax(400px, .92fr) minmax(520px, 1.08fr); gap: 28px; align-items: start; }
.form-card, .tool-form, .result-panel, .tool-result, .builder-panel, .preview-panel {
  border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.93); box-shadow: 0 15px 45px rgba(12, 42, 36, .06);
}
.form-card, .tool-form, .builder-panel { padding: clamp(22px, 3.2vw, 38px); }
.result-panel, .tool-result, .preview-panel { padding: clamp(20px, 3vw, 34px); }
.builder-panel { max-height: calc(100vh - 112px); overflow: auto; scrollbar-width: thin; }
.preview-panel { position: sticky; top: 98px; min-height: 650px; background: #e8eeeb; }
.preview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.preview-toolbar div:first-child { min-width: 0; }
.preview-toolbar span { color: var(--green); font-size: .72rem; font-weight: 850; letter-spacing: .13em; }
.preview-toolbar h2 { margin: 3px 0 0; font-size: 1.14rem; }
.preview-toolbar .actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.preview-toolbar button { padding: 9px 11px; border-radius: 10px; border: 1px solid #cfd9d5; background: #fff; font-size: .78rem; font-weight: 800; }
.preview-toolbar button.primary-mini { color: #fff; background: var(--green); border-color: var(--green); }
.document-stage { overflow-x: hidden; overflow-y: visible; padding: 8px; }
.preview-empty { min-height: 520px; display: grid; place-items: center; text-align: center; padding: 40px; color: var(--muted); }
.preview-empty div { max-width: 330px; }
.preview-empty .paper-icon { width: 76px; height: 96px; margin: 0 auto 18px; border-radius: 6px; border: 2px solid #aebbb6; background: #fff; box-shadow: 8px 8px 0 #d5dedb; }
.preview-empty h3 { color: var(--ink); margin: 0 0 8px; }
.preview-empty p { margin: 0; }

.panel-head { display: flex; align-items: start; justify-content: space-between; gap: 18px; margin-bottom: 25px; }
.panel-kicker { margin: 0 0 5px; color: var(--green); font-size: .72rem; font-weight: 850; letter-spacing: .14em; }
.panel-head h2, .section-heading h2 { margin: 0; letter-spacing: -.035em; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.step-count { flex: 0 0 auto; color: var(--muted); font-size: .8rem; font-weight: 800; }
.form-section-title { display: flex; gap: 14px; align-items: start; margin: 30px 0 17px; padding-top: 24px; border-top: 1px solid var(--line); }
.form-section-title:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.form-section-title > span { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: var(--green); background: var(--green-soft); font-size: .75rem; font-weight: 900; }
.form-section-title h3 { margin: 0; font-size: 1.05rem; }
.form-section-title p { margin: 3px 0 0; color: var(--muted); font-size: .85rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
label { display: block; color: #24323b; font-size: .82rem; font-weight: 780; }
label + label, label + .two-col, .two-col + label, .two-col + .two-col { margin-top: 13px; }
input, select, textarea {
  width: 100%; margin-top: 7px; border: 1px solid #cdd8d4; border-radius: 12px; background: #fbfdfc;
  padding: 12px 13px; color: var(--ink); outline: 0; transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(11,107,92,.10); }
textarea { resize: vertical; min-height: 92px; line-height: 1.45; }
.optional { color: #7a878d; font-weight: 550; }
.field-help, .privacy-note { margin: 7px 0 0; color: #748078; font-size: .76rem; font-weight: 520; }
.input-prefix { display: flex; align-items: center; margin-top: 7px; border: 1px solid #cdd8d4; border-radius: 12px; background: #fbfdfc; overflow: hidden; }
.input-prefix span { padding-left: 13px; color: var(--muted); font-weight: 800; }
.input-prefix input { margin: 0; border: 0; box-shadow: none; }
.form-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.photo-field { display: grid; grid-template-columns: 74px 1fr; gap: 14px; align-items: center; margin-top: 13px; padding: 12px; border: 1px dashed #bdcac5; border-radius: 14px; background: #f8fbf9; }
.photo-avatar { width: 74px; height: 74px; overflow: hidden; display: grid; place-items: center; border-radius: 16px; background: #e0e9e5; color: #81908a; font-size: .72rem; text-align: center; }
.photo-avatar img { width: 100%; height: 100%; object-fit: cover; }
.photo-field input { padding: 8px; background: #fff; }
.format-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 16px; }
.format-choice { position: relative; }
.format-choice input { position: absolute; opacity: 0; pointer-events: none; }
.format-choice span { display: block; min-height: 92px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fbfdfc; }
.format-choice b { display: block; font-size: .9rem; }
.format-choice small { display: block; margin-top: 5px; color: var(--muted); font-size: .72rem; font-weight: 540; }
.format-choice input:checked + span { border-color: var(--green); box-shadow: 0 0 0 3px rgba(11,107,92,.1); background: #f0faf6; }
.sample-note { margin-top: 14px; padding: 12px 14px; border-radius: 12px; color: #31554d; background: #e9f5f1; font-size: .78rem; }

.quality-board { margin-top: 18px; padding: 16px; border-radius: 15px; background: #fff; border: 1px solid #cfd9d5; }
.quality-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.quality-head b { font-size: .85rem; }
.quality-score { color: var(--green); font-size: .8rem; font-weight: 900; }
.quality-meter { height: 7px; margin: 10px 0 12px; overflow: hidden; border-radius: 999px; background: #e6ece9; }
.quality-meter i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #1a7b68, #9bdc62); transition: width .3s ease; }
.quality-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.quality-list li { color: var(--muted); font-size: .76rem; }
.quality-list li::before { content: "○"; display: inline-block; width: 18px; color: #9ca8a3; font-weight: 900; }
.quality-list li.pass { color: #315d50; }
.quality-list li.pass::before { content: "✓"; color: var(--green); }

.tool-workbench { display: grid; grid-template-columns: 360px 1fr; align-items: start; gap: 24px; }
.tool-form.compact-form { position: sticky; top: 98px; }
.tool-result { min-height: 500px; }
.tool-form-head { margin-bottom: 24px; }
.tool-form-head span { color: var(--green); font-size: .72rem; font-weight: 850; letter-spacing: .13em; }
.tool-form-head h3 { margin: 4px 0 5px; font-size: 1.55rem; }
.tool-form-head p { margin: 0; color: var(--muted); font-size: .88rem; }
.tool-form .primary-button { width: 100%; margin-top: 18px; }
.empty-state { min-height: 420px; display: grid; place-items: center; text-align: center; color: var(--muted); }
.empty-state > div { max-width: 460px; }
.empty-state h3 { color: var(--ink); font-size: 1.8rem; margin: 10px 0; }

/* Profile matcher and research outputs */
.field-group + .field-group { border-top: 1px solid var(--line); margin-top: 25px; padding-top: 25px; }
.group-label { display: flex; align-items: center; gap: 10px; margin: 0 0 15px; color: var(--ink); font-weight: 850; }
.group-label span { color: var(--green); font-size: .76rem; }
.fx-details { margin-top: 10px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: #f8fbf9; }
.fx-details summary { font-weight: 750; font-size: .8rem; }
.result-summary { padding: 17px; border-radius: 15px; background: var(--green-soft); }
.result-summary p { margin: 6px 0 0; color: #45625a; font-size: .84rem; }
.country-list { display: grid; gap: 16px; margin-top: 18px; }
.country-card { border: 1px solid var(--line); border-radius: 18px; padding: 20px; background: #fff; }
.card-top, .match-title, .university-head, .guide-result-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.card-number, .result-label { margin: 0; color: var(--green); font-size: .68rem; font-weight: 850; letter-spacing: .12em; }
.country-card h3, .guide-result-head h3 { margin: 4px 0 0; font-size: 1.65rem; }
.fit-tag, .cost-status { padding: 7px 10px; border-radius: 999px; color: #17614f; background: #e0f4e9; font-size: .73rem; font-weight: 850; }
.fit-tag.stretch, .cost-status.stretch { color: #795a04; background: #fff1bd; }
.fit-tag.research, .cost-status.research { color: #873f3f; background: #ffe2df; }
.match-overview { margin-top: 15px; padding: 14px; border-radius: 13px; background: #f6f9f7; }
.score-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 11px; }
.score-item > span { display: flex; justify-content: space-between; font-size: .7rem; }
.score-item em { font-style: normal; color: var(--muted); }
.score-item i { display: block; height: 5px; margin-top: 4px; overflow: hidden; border-radius: 10px; background: #dfe7e3; }
.score-item u { display: block; height: 100%; background: var(--green); text-decoration: none; }
.card-reasons { padding-left: 19px; color: #435059; font-size: .83rem; }
.card-reasons li { margin: 6px 0; }
.card-reasons .caution, .uni-warning { color: #795a04; }
.university-panel { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 15px; }
.university-head strong { font-size: .75rem; color: var(--muted); }
.uni-intro, .uni-check, .card-details, .results-caveat, .country-request { color: var(--muted); font-size: .78rem; }
.university-list { padding: 0; list-style: none; }
.university-item { display: grid; grid-template-columns: 30px 1fr; gap: 8px; padding: 10px 0; border-top: 1px solid #edf1ef; }
.uni-index { color: var(--green); font-size: .72rem; font-weight: 850; }
.university-name, .programme-link { color: var(--blue); font-weight: 760; text-decoration: none; }
.uni-detail, .uni-cost, .uni-warning { margin: 3px 0; font-size: .75rem; }
.card-details { margin-top: 13px; padding-top: 10px; border-top: 1px dashed var(--line); }
.card-details p { margin: 7px 0; }
.more-button, .share-button { width: 100%; margin-top: 14px; padding: 13px; border-radius: 12px; border: 1px solid var(--line); background: #fff; text-align: center; text-decoration: none; color: var(--green-deep); font-weight: 820; }
.share-button { display: block; color: #fff; background: var(--green); border-color: var(--green); }
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 22px; }
.guide-grid article { padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: #fbfdfc; }
.guide-grid article > span { color: var(--green); font-size: .72rem; font-weight: 900; }
.guide-grid h4 { margin: 4px 0 8px; }
.guide-grid p, .guide-grid li { color: var(--muted); font-size: .82rem; }
.test-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.test-chips span { padding: 5px 8px; border-radius: 999px; background: #e8f2ee; font-size: .72rem; }
.callout-note { padding: 9px; border-left: 3px solid var(--green); background: #f0f7f4; }
.cost-board { margin-top: 15px; padding: 20px; border-radius: 17px; color: #fff; background: var(--green-deep); display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px; }
.cost-board span { font-size: .69rem; font-weight: 850; letter-spacing: .1em; }
.cost-board strong { display: block; margin: 4px 0; font-size: 2rem; }
.cost-board p { margin: 0; color: #d4e8e2; font-size: .8rem; }
.degree-horizon { margin-top: 15px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.18); }
.degree-horizon b, .degree-horizon small { display: block; }
.cost-split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cost-split span { padding: 10px; border-radius: 10px; background: rgba(255,255,255,.08); letter-spacing: 0; }
.cost-split b { display: block; color: var(--lime); }
.estimate-warning { color: var(--muted); font-size: .76rem; }
.official-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.official-links a { padding: 7px 9px; border-radius: 8px; color: var(--blue); background: #eef3ff; text-decoration: none; font-size: .75rem; font-weight: 700; }
.guide-universities { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.guide-universities > span { color: var(--green); font-size: .7rem; font-weight: 850; letter-spacing: .12em; }
.guide-universities div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.guide-universities a { color: var(--blue); font-weight: 750; }
.guide-universities p { color: var(--muted); font-size: .76rem; }
.route-line { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 20px 0; }
.route-line span { padding: 8px 10px; border-radius: 8px; background: #eaf4f0; font-size: .76rem; font-weight: 750; }
.route-line i { color: var(--green); font-style: normal; }
.attestation-table { border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.attestation-row { display: grid; grid-template-columns: .8fr 1fr 1.3fr; }
.attestation-row > * { padding: 11px; border-top: 1px solid var(--line); font-size: .77rem; }
.attestation-row.table-head > * { border-top: 0; background: #edf4f1; }
.job-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin-top: 22px; }
.job-metrics article { padding: 17px; border-radius: 14px; border: 1px solid var(--line); }
.job-metrics span { color: var(--green); font-size: .7rem; font-weight: 850; }
.job-metrics p { color: var(--muted); font-size: .82rem; }
.job-role { margin-top: 15px; padding: 17px; border-radius: 14px; background: #f4f8f6; }

/* Generated A4 documents */
.a4-document { width: 210mm; min-height: 297mm; margin: 0 auto; background: #fff; color: #111; box-shadow: 0 12px 35px rgba(24, 38, 33, .16); }
.a4-document.is-exporting { box-shadow: none; }
.standard-cv { padding: 20mm 19mm 18mm; font-family: Georgia, "Times New Roman", serif; font-size: 10.7pt; line-height: 1.28; }
.standard-cv .cv-top { min-height: 0; position: relative; padding-right: 0; }
.standard-cv .cv-photo { position: absolute; right: 0; top: 0; width: 36mm; height: 45mm; object-fit: cover; background: #e7ebea; }
.standard-cv h1 { margin: 0 0 2mm; font-size: 24pt; letter-spacing: .01em; }
.standard-cv .headline { margin: 0 0 2mm; font-size: 11pt; color: #333; }
.standard-cv .location { margin: 0 0 3mm; }
.standard-cv .contact-line { margin: 1.3mm 0; color: #173f9c; word-break: break-word; }
.standard-cv .contact-line b { display: inline-block; min-width: 17mm; color: #111; }
.standard-cv section { margin-top: 5mm; break-inside: avoid-page; page-break-inside: avoid; }
.standard-cv h2 { width: fit-content; margin: 0 0 2.5mm; padding-bottom: .8mm; border-bottom: .4mm solid #222; font-size: 14pt; font-weight: 700; break-after: avoid-page; page-break-after: avoid; }
.standard-cv p { margin: 0 0 2mm; text-align: justify; }
.standard-cv ul { margin: 1.4mm 0 2mm; padding-left: 5mm; }
.standard-cv li { margin: .8mm 0; }
.standard-cv .entry { margin: 0 0 4mm; break-inside: avoid-page; page-break-inside: avoid; }
.standard-cv.has-photo .cv-top { min-height: 49mm; padding-right: 50mm; }
.standard-cv .entry-head { display: flex; justify-content: space-between; gap: 8mm; align-items: baseline; }
.standard-cv .entry-head b { font-size: 11pt; }
.standard-cv .entry-head time { white-space: nowrap; color: #444; }
.standard-cv .entry-sub { font-style: italic; color: #333; }
.standard-cv .skill-line b { font-weight: 700; }

.europass-cv { font-family: Arial, Helvetica, sans-serif; font-size: 9.5pt; line-height: 1.35; color: #5c5c5c; }
.europass-cv .europass-top { min-height: 55mm; position: relative; display: grid; grid-template-columns: 34mm 1fr; gap: 8mm; padding: 12mm 18mm 9mm; background: #f3f3f3; }
.europass-cv .cv-photo { width: 29mm; height: 29mm; border-radius: 50%; border: 1mm solid #111; object-fit: cover; background: #ddd; }
.europass-brand { position: absolute; right: 18mm; top: 9mm; display: flex; align-items: center; gap: 3mm; color: var(--purple); font-size: 19pt; font-weight: 750; }
.europass-flag { width: 16mm; height: 10mm; display: grid; place-items: center; color: #ffd900; background: #164194; font-size: 8pt; letter-spacing: .08em; }
.europass-cv h1 { margin: 2mm 0 3mm; padding-bottom: 2mm; border-bottom: .25mm solid #666; font-size: 18pt; color: #555; }
.europass-cv .identity-lines { max-width: 138mm; color: #222; }
.europass-cv .identity-lines p { margin: 1.4mm 0; }
.europass-cv .identity-lines a { color: #0658a8; }
.europass-body { padding: 7mm 14mm 18mm; }
.europass-cv section { margin-top: 6mm; }
.europass-cv h2 { position: relative; margin: 0 0 4mm; padding: 0 0 1mm 5mm; border-bottom: .6mm solid #aaa; color: #111; font-size: 12pt; text-transform: uppercase; break-after: avoid-page; page-break-after: avoid; }
.europass-cv h2::before { content: ""; position: absolute; left: 0; top: 2.2mm; width: 2mm; height: 2mm; border-radius: 50%; background: #bbb; }
.europass-cv .entry { margin: 0 0 4mm 5mm; break-inside: avoid-page; page-break-inside: avoid; }
.europass-cv .meta { margin: 0 0 1mm; font-size: 8.3pt; text-transform: uppercase; }
.europass-cv .entry h3 { display: inline; margin: 0; padding-bottom: .5mm; border-bottom: .2mm solid #777; color: #5c5c5c; font-size: 10.2pt; text-transform: uppercase; }
.europass-cv .entry p { margin: 1.5mm 0; }
.europass-cv .entry ul { margin: 1.5mm 0; padding-left: 4mm; }
.europass-cv .skill-string { margin-left: 5mm; font-size: 10pt; }
.language-table { width: calc(100% - 5mm); margin-left: 5mm; border-collapse: collapse; color: #111; text-align: center; }
.language-table th, .language-table td { padding: 2.6mm 1mm; border-top: .25mm solid #777; border-bottom: .25mm solid #777; font-size: 8.4pt; }
.language-table thead th { font-weight: 750; }

.sop-sheet { padding: 24mm 24mm 22mm; font-family: "Times New Roman", Times, serif; font-size: 12pt; line-height: 1.7; }
.sop-sheet h1 { margin: 0 0 8mm; font-size: 15pt; font-weight: 500; text-transform: uppercase; }
.sop-sheet .sop-meta { margin: -5mm 0 8mm; color: #444; font-size: 10pt; line-height: 1.35; }
.sop-sheet p { margin: 0 0 5mm; text-align: justify; orphans: 3; widows: 3; }
.sop-sheet .sop-signoff { margin-top: 9mm; text-align: left; }

.draft-editor { margin-top: 18px; }
.draft-editor textarea { min-height: 420px; background: #fff; font-family: Georgia, serif; font-size: .9rem; line-height: 1.6; }
.draft-stats { display: flex; justify-content: space-between; gap: 14px; margin-top: 7px; color: var(--muted); font-size: .76rem; }
.tone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 7px; }
.tone-grid label { margin: 0; }
.tone-grid input { position: absolute; opacity: 0; }
.tone-grid span { display: block; padding: 10px; border: 1px solid var(--line); border-radius: 10px; text-align: center; font-size: .76rem; }
.tone-grid input:checked + span { color: var(--green-deep); background: var(--green-soft); border-color: var(--green); }

.site-footer { padding: 25px 0; border-top: 1px solid var(--line); color: var(--muted); background: #eef3f0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-inner p { margin: 0; font-size: .78rem; }
.analytics-disclosure { display: block; margin-top: 4px; color: #708079; font-size: .72rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-links a { font-size: .78rem; font-weight: 700; text-decoration: none; }

/* Private owner analytics */
[hidden] { display: none !important; }
.analytics-page { min-height: 100vh; background: radial-gradient(circle at 82% 4%, rgba(201,242,105,.18), transparent 28%), linear-gradient(145deg, #eef7f4, #f8faf9 48%, #eaf2ef); }
.analytics-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.analytics-header { border-bottom: 1px solid rgba(12,24,35,.08); background: rgba(248,251,249,.86); backdrop-filter: blur(16px); }
.analytics-header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.private-badge { padding: 7px 10px; border: 1px solid rgba(11,107,92,.18); border-radius: 999px; color: var(--green); background: #fff; font-size: .68rem; font-weight: 850; letter-spacing: .12em; }
.analytics-main { padding: 68px 0 90px; }
.analytics-intro { position: relative; }
.analytics-intro::after { content: ""; position: absolute; right: 0; top: -24px; width: 240px; height: 130px; border: 1px dashed rgba(11,107,92,.2); border-width: 1px 0 0; border-radius: 50%; transform: rotate(-12deg); }
.analytics-intro .crumb { color: var(--green); font-size: .72rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.analytics-intro h1 { max-width: 780px; margin: 12px 0 16px; font-size: clamp(3rem, 7vw, 6.4rem); line-height: .92; letter-spacing: -.065em; }
.analytics-intro p { max-width: 710px; margin: 0; color: var(--muted); font-size: 1.02rem; }
.analytics-login { margin-top: 42px; }
.analytics-login form { display: grid; grid-template-columns: 1fr minmax(260px, 360px) auto; align-items: end; gap: 20px; padding: 25px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.88); box-shadow: var(--shadow); }
.analytics-login form > div span, .analytics-toolbar span, .analytics-panel-head span { color: var(--green); font-size: .68rem; font-weight: 850; letter-spacing: .13em; }
.analytics-login h2, .analytics-toolbar h2, .analytics-panel h3 { margin: 4px 0; letter-spacing: -.035em; }
.analytics-login p, .analytics-toolbar p { margin: 0; color: var(--muted); font-size: .8rem; }
.analytics-login label { margin: 0; color: #38454d; font-size: .76rem; font-weight: 780; }
.analytics-login input { width: 100%; min-height: 45px; margin-top: 6px; padding: 10px 12px; border: 1px solid #cfdad5; border-radius: 11px; background: #fff; outline: none; }
.analytics-login input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(11,107,92,.1); }
.analytics-login .primary-button { min-height: 45px; padding-block: 10px; }
.analytics-status { grid-column: 2 / -1; min-height: 1em; color: #a23939 !important; }
.analytics-dashboard { margin-top: 44px; }
.analytics-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.analytics-toolbar > div:last-child { display: flex; gap: 8px; }
.analytics-toolbar button { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-weight: 780; }
.analytics-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.analytics-metrics article { min-height: 165px; padding: 22px; border: 1px solid rgba(11,107,92,.12); border-radius: 20px; background: rgba(255,255,255,.9); box-shadow: 0 15px 35px rgba(12,42,36,.055); }
.analytics-metrics span { color: var(--green); font-size: .67rem; font-weight: 850; letter-spacing: .12em; }
.analytics-metrics strong { display: block; margin-top: 15px; color: var(--ink); font-size: 2.8rem; line-height: 1; letter-spacing: -.05em; }
.analytics-metrics small { display: block; margin-top: 10px; color: var(--muted); font-size: .72rem; }
.analytics-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 14px; margin-top: 14px; }
.analytics-panel { min-height: 330px; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.91); box-shadow: 0 16px 38px rgba(12,42,36,.055); }
.analytics-pages { grid-column: 1 / -1; min-height: auto; }
.analytics-panel-head { margin-bottom: 23px; }
.analytics-panel h3 { font-size: 1.35rem; }
.analytics-list { display: grid; gap: 14px; }
.analytics-list-item > div { display: flex; justify-content: space-between; gap: 12px; color: #34434a; font-size: .79rem; }
.analytics-list-item > div b { color: var(--ink); }
.analytics-list-item > i { height: 5px; display: block; margin-top: 7px; overflow: hidden; border-radius: 999px; background: #e5ece8; }
.analytics-list-item > i em { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, var(--green), #46a58e); }
.analytics-empty { color: var(--muted); font-size: .82rem; }
.daily-chart { height: 235px; display: flex; align-items: end; gap: 5px; padding-top: 10px; border-bottom: 1px solid var(--line); }
.daily-bar { min-width: 0; flex: 1; height: 100%; display: flex; align-items: center; justify-content: end; flex-direction: column; }
.daily-bar > span { width: min(14px, 80%); height: calc(100% - 30px); display: flex; justify-content: end; flex-direction: column; overflow: hidden; border-radius: 5px 5px 2px 2px; background: #e9efec; }
.daily-bar i, .daily-bar b { width: 100%; min-height: 0; display: block; }
.daily-bar i { background: var(--green); }
.daily-bar b { background: var(--lime); }
.daily-bar small { margin-top: 7px; color: #819089; font-size: .55rem; writing-mode: vertical-rl; }
.analytics-footnote { margin: 18px 3px 0; color: var(--muted); font-size: .74rem; }

.feedback-fab { position: fixed; z-index: 45; right: 22px; bottom: 22px; display: inline-flex; align-items: center; gap: 8px; padding: 11px 15px; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; background: rgba(6,77,67,.94); color: #fff; box-shadow: 0 14px 35px rgba(6,77,67,.23); backdrop-filter: blur(12px); text-decoration: none; font-size: .82rem; font-weight: 820; transition: transform .2s ease, background .2s ease; }
.feedback-fab:hover { transform: translateY(-2px); background: var(--green); }
.feedback-fab span { color: var(--lime); }
.feedback-layout { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(300px, .58fr); gap: 26px; align-items: start; }
.feedback-card label + label, .feedback-card .two-col + .two-col, .feedback-card .two-col + label { margin-top: 15px; }
.feedback-trap { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.feedback-submit-row { display: flex; align-items: center; gap: 16px; margin-top: 20px; }
.feedback-status { margin: 0; color: var(--muted); font-size: .82rem; font-weight: 720; }
.feedback-status.success { color: var(--green); }
.feedback-status.error { color: #b42318; }
.feedback-aside { padding: 31px; border: 1px solid rgba(11,107,92,.14); border-radius: var(--radius); background: linear-gradient(150deg, #0a5d50, #073e37); color: #fff; box-shadow: var(--shadow); }
.feedback-aside > span { color: var(--lime); font-size: .72rem; font-weight: 850; letter-spacing: .14em; }
.feedback-aside h2 { margin: 9px 0 12px; font-size: clamp(1.65rem, 3vw, 2.35rem); line-height: 1.05; letter-spacing: -.04em; }
.feedback-aside > p { margin: 0 0 26px; color: rgba(255,255,255,.72); font-size: .92rem; }
.feedback-aside > div { padding: 16px 0; border-top: 1px solid rgba(255,255,255,.12); }
.feedback-aside b, .feedback-aside small { display: block; }
.feedback-aside b { font-size: .9rem; }
.feedback-aside small { margin-top: 4px; color: rgba(255,255,255,.64); font-size: .76rem; }

[data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity .55s ease, transform .55s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 1120px) {
  .main-nav a { padding-inline: 8px; font-size: .82rem; }
  .header-contact { display: none; }
  .hero-grid { grid-template-columns: 1fr .85fr; }
  .builder-workspace { grid-template-columns: 1fr; }
  .builder-panel { max-height: none; }
  .preview-panel { position: static; }
  .page-hero > .shell { padding-right: 26vw; }
  .ambient-card-2, .ambient-card-4 { display: none; }
}
@media (max-width: 860px) {
  :root { --shell: min(100% - 28px, 720px); }
  .menu-toggle { display: block; }
  .main-nav { position: fixed; inset: 76px 0 auto; display: none; padding: 16px; background: rgba(248,251,249,.98); border-bottom: 1px solid var(--line); box-shadow: 0 15px 30px rgba(0,0,0,.08); }
  .main-nav.is-open { display: grid; }
  .main-nav a { padding: 13px; font-size: .95rem; }
  .hero { padding-top: 42px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 430px; }
  .hero-frame { inset: 0 10px 25px; }
  .page-hero { min-height: 430px; }
  .page-hero > .shell { padding-right: 0; }
  .page-hero .hero-ambient { opacity: .34; }
  .ambient-card { min-width: 132px; padding: 8px; }
  .ambient-card-1 { right: -30px; top: 10%; }
  .ambient-card-3 { right: -38px; bottom: 12%; }
  .floating-card.document { right: 0; top: 28px; }
  .floating-card.results { left: 0; }
  .workflow-strip { grid-template-columns: 1fr 1fr; }
  .workspace, .tool-workbench { grid-template-columns: 1fr; }
  .tool-form.compact-form { position: static; }
  .job-metrics { grid-template-columns: 1fr; }
  .a4-document { transform-origin: top left; }
  .analytics-login form { grid-template-columns: 1fr; align-items: stretch; }
  .analytics-status { grid-column: auto; }
  .analytics-metrics { grid-template-columns: 1fr 1fr; }
  .analytics-grid { grid-template-columns: 1fr; }
  .analytics-pages { grid-column: auto; }
  .feedback-layout { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .header-inner { min-height: 68px; }
  .brand-mark { width: 39px; height: 39px; flex-basis: 39px; }
  .main-nav { inset-block-start: 68px; }
  .brand-name { font-size: .92rem; }
  .hero h1 { font-size: clamp(2.7rem, 15vw, 4.4rem); }
  .hero-visual { min-height: 360px; }
  .floating-card.document { width: 180px; }
  .floating-card.results { width: 205px; }
  .workflow-strip, .two-col, .guide-grid, .cost-board, .cost-split { grid-template-columns: 1fr; }
  .page-hero { min-height: 390px; padding: 48px 0 42px; }
  .page-content { padding-top: 28px; }
  .builder-panel, .preview-panel, .form-card, .tool-form, .result-panel, .tool-result { border-radius: 18px; padding: 18px; }
  .preview-toolbar { align-items: flex-start; flex-direction: column; }
  .preview-toolbar .actions { justify-content: flex-start; }
  .format-switch, .tone-grid { grid-template-columns: 1fr; }
  .document-stage { padding: 0; }
  .a4-document { width: 210mm; }
  .attestation-row { grid-template-columns: 1fr; padding: 8px; border-top: 1px solid var(--line); }
  .attestation-row > * { border-top: 0; padding: 4px; }
  .attestation-row.table-head { display: none; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .analytics-shell { width: min(100% - 28px, 620px); }
  .analytics-main { padding-top: 44px; }
  .analytics-intro::after { display: none; }
  .analytics-intro h1 { font-size: clamp(2.8rem, 15vw, 4.7rem); }
  .analytics-metrics { grid-template-columns: 1fr; }
  .analytics-metrics article { min-height: 140px; }
  .analytics-toolbar { align-items: flex-start; flex-direction: column; }
  .analytics-panel { padding: 18px; }
  .private-badge { display: none; }
  .feedback-fab { right: 14px; bottom: 14px; padding: 10px 13px; }
  .feedback-submit-row { align-items: flex-start; flex-direction: column; }
}

@media print {
  body { background: #fff; }
  .site-header, .site-footer, .page-hero, .builder-panel, .preview-toolbar { display: none !important; }
  .page-content, .preview-panel, .document-stage { padding: 0 !important; margin: 0 !important; background: #fff !important; border: 0 !important; box-shadow: none !important; }
  .builder-workspace { display: block !important; width: auto !important; }
  .a4-document { width: 210mm; min-height: 297mm; box-shadow: none; transform: none !important; margin: 0; }
  @page { size: A4; margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
