/* readysail.app: shared tokens, type and chrome of the landing, privacy and support pages. Light only. */
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/Poppins-Regular.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/Poppins-Medium.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/Poppins-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/Poppins-Bold.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f7f8fa;
  --surface2: #eff1f4;
  --text: #111318;
  --text2: #4a5060;
  --text3: #747a88;
  --border: #e6e8ec;
  --gold: #F4AC0F;
  --on-gold: #1B1608;
  --accent-text: #C47600;
  --accent-soft: #fef4dc;
  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { background: var(--bg); }
body {
  margin: 0; color: var(--text); font: 400 16px/1.7 var(--font);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-synthesis: none; text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent-text); text-underline-offset: 3px; }
strong { color: var(--text); font-weight: 600; }

.brand { display: flex; gap: 10px; color: var(--text); text-decoration: none; }
.brand img { height: 28px; width: auto; }
/* Same wordmark as the app (ReadySailWordmark): regular "Ready", bold gold "SAIL", bold "Exam". */
.wm { font-weight: 400; color: var(--text); font-size: 19px; letter-spacing: -0.01em; white-space: nowrap; }
.wm b { font-weight: 700; }
.wm .sail { color: var(--gold); }

/* EN / ID switch, styled like the app's theme toggle. */
.lang { display: inline-flex; padding: 3px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); }
.lang button {
  width: 38px; height: 32px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font-size: 13px; font-weight: 600; line-height: 1; color: var(--text3); transition: background .18s, color .18s;
}
.lang button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-text); }
.lang button:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }

/* ---------- Site chrome shared by every page: layout, type scale, header, buttons, footer ---------- */
:root { --header-h: 72px; --radius: 24px; --shadow: 0 1px 2px rgba(17,19,24,.04), 0 8px 24px -12px rgba(17,19,24,.10); --line: #cfd3da; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { overflow-x: hidden; }
img { max-width: 100%; display: block; }

/* Both languages live in the page; html[lang] shows one of them (assets/lang.js). */
html[lang="en"] body [lang="id"], html[lang="id"] body [lang="en"] { display: none !important; }

/* Type scale */
h1, h2, h3, h4 { margin: 0; color: var(--text); font-weight: 600; text-wrap: balance; }
p, li { text-wrap: pretty; }
.display { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.06; letter-spacing: -.035em; font-weight: 700; }
.h2 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.12; letter-spacing: -.03em; }
.h3 { font-size: clamp(23px, 2.4vw, 30px); line-height: 1.22; letter-spacing: -.022em; }
.h4 { font-size: 17px; line-height: 1.4; letter-spacing: -.01em; }
.lead { margin: 0; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.65; color: var(--text2); }
.body { margin: 0; font-size: 16px; line-height: 1.7; color: var(--text2); }
.small { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text3); }
.eyebrow { display: block; margin-bottom: 14px; font-size: 13px; font-weight: 600; line-height: 1.4; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }

/* Layout */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
section { padding: 112px 0; }
.tint { background: var(--surface); }
.head { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.head .lead { margin-top: 18px; }
.head-left { max-width: 620px; }
.head-left .lead { margin-top: 18px; }
@media (max-width: 760px) { section { padding: 76px 0; } .head { margin-bottom: 44px; } .wrap { padding: 0 20px; } }

/* Header */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: transparent; border-bottom: 1px solid transparent; transition: background-color .25s, border-color .25s, backdrop-filter .25s; }
.site-header.scrolled { background: rgba(255,255,255,.82); backdrop-filter: saturate(1.8) blur(16px); -webkit-backdrop-filter: saturate(1.8) blur(16px); border-bottom-color: var(--border); }
.site-header.menu-open { background: var(--bg); }
.site-header .wrap { height: var(--header-h); display: flex; align-items: center; gap: 20px; }
.site-header .brand { margin-right: auto; }
.nav { display: flex; gap: 2px; }
.nav a { padding: 8px 14px; border-radius: 999px; color: var(--text2); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; transition: color .15s, background .15s; }
.nav a:hover { color: var(--text); background: var(--surface); }
.menu-btn { display: none; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); cursor: pointer; align-items: center; justify-content: center; }
.site-header .button { padding: 10px 18px; font-size: 14px; white-space: nowrap; }
@media (max-width: 1140px) {
  .nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: 0 24px 32px -24px rgba(17,19,24,.18); }
  .nav.open { display: flex; }
  .nav a { padding: 13px 14px; font-size: 16px; border-radius: 12px; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 560px) { .site-header .button { display: none; } .site-header .wrap { gap: 10px; } }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px; background: var(--gold); color: var(--on-gold); font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; transition: background .15s; }
.button:hover { background: #e9a000; }
.button.secondary { background: var(--bg); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.button.secondary:hover { background: var(--surface); }
.link { font-weight: 600; font-size: 15px; color: var(--text); text-decoration: none; }
.link:hover { color: var(--accent-text); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* Footer with the big wordmark */
.site-footer { overflow: hidden; padding: 72px 0 0; border-top: 1px solid var(--border); background: var(--surface); }
.site-footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .cols .small { max-width: 300px; margin-top: 16px; font-weight: 500; font-size: 14pt; }
.site-footer h4 { margin-bottom: 14px; font-size: 14px; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer li a { font-size: 14px; color: var(--text2); text-decoration: none; }
.site-footer li a:hover { color: var(--accent-text); }
.site-footer .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); }
/* First footer column: the company behind ReadySAIL (logo, name, address). */
.site-footer .company { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.site-footer .company-logo { flex: none; }
.site-footer .company-logo img { width: 46px; height: auto; }
.site-footer .company-name { margin: 0 0 6px; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--text); }
.site-footer address { margin: 0; font-style: normal; font-size: 14px; line-height: 1.65; color: var(--text3); }
.bigword { display: block; width: 100%; height: auto; margin-top: 56px; fill: rgba(17,19,24,.07); }
@media (max-width: 820px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } .site-footer .cols > :first-child { grid-column: 1 / -1; } }

/* Document pages (privacy, support): one language block shown at a time. */
[data-lang] { display: none; }
html[lang="id"] [data-lang="id"], html[lang="en"] [data-lang="en"] { display: block; }

.doc { max-width: 1280px; margin: 0 auto; padding: calc(var(--header-h) + 56px) 24px 96px; }
.doc > article { max-width: 780px; }
.doc.with-toc > article { max-width: none; }
/* Privacy and support: the same 1280px container as the landing page, a sticky table of contents on the left
   and the text in a readable column. */
.doc.with-toc { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 0 96px; align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 32px); padding-top: 6px; }
.toc-title { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.toc ol { list-style: none; margin: 0; padding: 0 0 0 2px; border-left: 1px solid var(--border); }
.toc li { margin: 0; }
.toc a { display: block; margin-left: -1px; padding: 7px 0 7px 16px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.45; color: var(--text2); text-decoration: none; transition: color .15s, border-color .15s; }
.toc a:hover { color: var(--text); }
.toc a.active { border-left-color: var(--gold); color: var(--text); font-weight: 600; }
.doc h2[id] { scroll-margin-top: calc(var(--header-h) + 24px); }
@media (max-width: 960px) {
  .doc.with-toc { display: block; }
  .toc { display: none !important; }
}
@media (max-width: 760px) { .doc { padding-left: 20px; padding-right: 20px; } }
.doc h1 { font-size: clamp(30px, 5vw, 40px); font-weight: 600; line-height: 1.15; letter-spacing: -.025em; margin: 0 0 8px; }
.doc .muted { color: var(--text3); font-size: 14px; margin: 0; }
.doc h2 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; line-height: 1.35; margin: 40px 0 10px; padding-top: 28px; border-top: 1px solid var(--border); }
.doc p, .doc li { color: var(--text2); }
.doc ul, .doc ol { padding-left: 20px; }
.doc li { margin-bottom: 6px; }
.table-wrap { overflow-x: auto; margin: 14px 0; border: 1px solid var(--border); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.6; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { background: var(--surface); color: var(--text); font-weight: 600; }
td { color: var(--text2); }

