/* simpananawan.com: white and navy, same design as the CDN app. */
:root {
  --navy: #0b1f44;
  --navy-hover: #16336d;
  --ink: #0b1f44;
  --muted: #5b6b85;
  --line: #e3e8f0;
  --tint: #f5f7fb;
  --white: #ffffff;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--white); color: var(--ink); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
svg { flex: none; }
.wrap { max-width: 1072px; margin: 0 auto; padding: 0 16px; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(40px, 6vw, 64px); }
h2 { font-size: clamp(30px, 4.2vw, 42px); }
h3 { font-size: 17px; line-height: 1.35; margin: 0 0 6px; }
code { font-family: var(--mono); font-size: 0.86em; background: var(--tint); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--navy); color: var(--white); padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 8px; border: 1px solid var(--navy); background: var(--navy); color: var(--white); font: 500 15px var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer; }
.btn:hover { background: var(--navy-hover); }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn.ghost { background: var(--white); color: var(--navy); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--navy); }
.btn.light { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn.light:hover { background: #e8edf6; }
.btn.outline { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.35); }
.btn.outline:hover { background: rgba(255, 255, 255, 0.08); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.bar { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { font: 28px/1 var(--serif); text-decoration: none; color: inherit; }
.bar .links { display: flex; gap: 28px; font-size: 14px; }
.bar .links a, .bar .login, .bar .lang { color: var(--muted); text-decoration: none; }
.bar .links a:hover, .bar .links a[aria-current], .bar .login:hover, .bar .lang:hover { color: var(--navy); }
.bar .auth { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.bar .lang { font-weight: 600; font-size: 13px; border: 1px solid var(--line); border-radius: 6px; padding: 3px 7px; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; right: 0; top: calc(100% + 8px); display: grid; min-width: 220px; padding: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(11, 31, 68, 0.14); }
.menu nav a { padding: 10px 12px; border-radius: 8px; text-decoration: none; font-size: 15px; }
.menu nav a:hover { background: var(--tint); }
@media (max-width: 820px) {
  .bar .links, .bar .login { display: none; }
  .menu { display: block; }
}
@media (max-width: 420px) { .bar .auth .btn { display: none; } }

/* Home hero */
.hero { background: var(--navy); color: var(--white); padding: 88px 0 96px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.6vw, 64px); }
.hero .lead { color: #c3cde0; font-size: 18px; max-width: 46ch; margin: 20px 0 32px; }
.hero small { display: block; margin-top: 18px; color: #93a3c1; font-size: 13px; }
@media (max-width: 900px) { .hero { padding: 56px 0 72px; } .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 48px; } }
.sketch { position: relative; }
.window { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35); display: grid; grid-template-columns: 76px 1fr; min-height: 300px; }
.window .side { background: #13295a; padding: 16px 12px; display: grid; align-content: start; gap: 10px; }
.window .side i { display: block; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.18); }
.window .side i:first-child { background: rgba(255, 255, 255, 0.55); width: 70%; margin-bottom: 8px; }
.window .pane { padding: 16px; display: grid; gap: 12px; align-content: start; }
.window .search { height: 26px; border-radius: 6px; background: var(--tint); }
.window .chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.window .chips i { height: 22px; border-radius: 5px; border: 1px solid var(--line); }
.window .tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.window .tiles i { aspect-ratio: 1; border-radius: 6px; }
.t1 { background: linear-gradient(135deg, #0b1f44, #3b5896); } .t2 { background: linear-gradient(135deg, #1e3a8a, #93c5fd); }
.t3 { background: linear-gradient(135deg, #c7d2e6, #f5f7fb); } .t4 { background: linear-gradient(135deg, #3b5896, #c3cde0); }
.t5 { background: linear-gradient(135deg, #13295a, #60a5fa); } .t6 { background: linear-gradient(135deg, #e3e8f0, #93a3c1); }
.url-card { position: absolute; left: -28px; bottom: -32px; max-width: calc(100% + 28px); background: var(--white); color: var(--ink); border-radius: 10px; padding: 14px 16px; box-shadow: 0 16px 40px rgba(11, 31, 68, 0.3); font-size: 13px; }
.url-card code { display: block; background: none; border: 0; padding: 0; font-size: 12px; color: var(--muted); }
.url-card code b { color: var(--navy); }
.url-card .size { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 600; }
.url-card .size s { color: var(--muted); font-weight: 400; }
.url-card .size span { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--muted); }
@media (max-width: 900px) { .url-card { left: 12px; right: 12px; bottom: -28px; max-width: none; } }

/* Sections */
.section { padding: 96px 0 0; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.section h2 { max-width: 22ch; }
.sub { color: var(--muted); margin: 12px 0 0; max-width: 62ch; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.feature { position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.feature:hover { border-color: #c3cde0; }
.feature .ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--tint); color: var(--navy); margin-bottom: 16px; }
.feature .ic svg { width: 20px; height: 20px; }
.feature h3 a { text-decoration: none; }
.feature h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }
.feature .more { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 500; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .features { grid-template-columns: minmax(0, 1fr); } .section { padding-top: 72px; } }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 40px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid var(--navy); padding-top: 20px; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font: 40px/1 var(--serif); color: var(--navy); margin-bottom: 14px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.shot { margin: 40px 0 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 24px 48px rgba(11, 31, 68, 0.12); }
.shot.plain img { box-shadow: none; }
.shot figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); text-align: center; }

/* Try it */
.card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.try { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; margin-top: 32px; }
@media (max-width: 760px) { .try { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 16px; } }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; align-content: start; }
.fields .wide { grid-column: 1 / -1; }
label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
input, select { width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; min-height: 44px; }
.out { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: start; min-width: 0; }
.link-row { display: flex; gap: 8px; }
.link-row code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; display: block; padding: 12px; font-size: 13px; border: 0; }
.preview { display: grid; place-items: center; min-height: 240px; background: var(--tint); border-radius: 8px; overflow: hidden; }
.preview img { max-width: 100%; max-height: 360px; display: block; }
.preview p { color: var(--muted); padding: 16px; margin: 0; text-align: center; }
.stats { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 13px; color: var(--muted); min-height: 21px; }
.stats strong { color: var(--navy); font-weight: 600; }
.err { color: #b42318; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 24px 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
td:first-child { white-space: nowrap; }

/* FAQ */
.faq { margin-top: 32px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 600; font-size: 17px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 28px/1 var(--serif); color: var(--muted); flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details > :not(summary) { margin: -6px 0 20px; color: var(--muted); max-width: 72ch; }

/* Closing band */
.band { margin-top: 112px; background: var(--navy); color: var(--white); padding: 72px 0; text-align: center; }
.band h2 { margin: 0 auto; font-size: clamp(34px, 5vw, 52px); max-width: 20ch; }
.band p { color: #c3cde0; margin: 16px auto 28px; max-width: 50ch; }
.band .cta { justify-content: center; }

/* Inner pages */
.page-head { background: var(--tint); border-bottom: 1px solid var(--line); padding: 28px 0 48px; }
.page-head h1 { font-size: clamp(36px, 5vw, 54px); max-width: 22ch; margin-top: 20px; }
.page-head .lead { font-size: 18px; color: var(--muted); max-width: 62ch; margin: 16px 0 0; }
.page-head .meta { font-size: 13px; color: var(--muted); margin-top: 16px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #b9c4d6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--navy); }
.crumbs [aria-current] { color: var(--ink); }

/* Long-form text: guides, docs, feature pages */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 56px; padding-top: 48px; }
.layout.single { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
@media (max-width: 900px) { .layout { grid-template-columns: minmax(0, 1fr); gap: 0; } .toc { display: none; } }
.prose { min-width: 0; max-width: 720px; font-size: 17px; }
.prose h2 { font-size: clamp(28px, 3.6vw, 36px); margin: 48px 0 12px; scroll-margin-top: 88px; }
.prose h3 { font-size: 19px; margin: 32px 0 8px; scroll-margin-top: 88px; }
.prose p, .prose ul, .prose ol { margin: 0 0 18px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--navy); text-underline-offset: 3px; }
.prose a.btn { color: var(--white); text-decoration: none; }
.prose a.btn.ghost { color: var(--navy); }
.prose pre { background: var(--navy); color: #e6ecf7; border-radius: 10px; padding: 16px 18px; overflow-x: auto; font: 14px/1.6 var(--mono); margin: 0 0 20px; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; overflow-wrap: normal; }
.prose figure { margin: 28px 0; }
.prose figure img { display: block; border-radius: 10px; border: 1px solid var(--line); }
.prose figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; }
.prose table { font-size: 15px; }
.note { border-left: 3px solid var(--navy); background: var(--tint); border-radius: 0 10px 10px 0; padding: 14px 18px; margin: 0 0 20px; font-size: 16px; }
.note p:last-child { margin: 0; }
.toc { position: sticky; top: 88px; align-self: start; font-size: 14px; }
.toc p { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; border-left: 1px solid var(--line); }
.toc a { display: block; padding-left: 14px; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--navy); }
.next { margin-top: 56px; padding: 24px; border: 1px solid var(--line); border-radius: 12px; }
.next h2 { font-size: 26px; margin: 0 0 8px; }
.next p { color: var(--muted); margin: 0 0 16px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 32px; }
.cards article { position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.cards article:hover { border-color: #c3cde0; }
.cards h2, .cards h3 { font: 600 18px/1.35 var(--sans); margin: 0 0 8px; }
.cards a { text-decoration: none; }
.cards a::after { content: ""; position: absolute; inset: 0; }
.cards p { margin: 0; color: var(--muted); font-size: 15px; }

/* Footer */
.site-footer { margin-top: 112px; border-top: 1px solid var(--line); background: var(--tint); font-size: 14px; }
.t-home .site-footer { margin-top: 0; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.site-footer .about p { color: var(--muted); max-width: 30ch; margin: 12px 0 0; }
.site-footer h2 { font: 600 12px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer .legal { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 20px; padding-bottom: 32px; color: var(--muted); }
.site-footer .legal a { color: var(--muted); }
.site-footer .legal a[aria-current] { color: var(--ink); font-weight: 500; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } .site-footer .about { grid-column: 1 / -1; } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: minmax(0, 1fr); max-width: 460px; } }
.plan { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; padding: 28px; background: var(--white); }
.plan.popular { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy), 0 24px 48px rgba(11, 31, 68, 0.1); }
.plan .tag { position: absolute; top: -12px; left: 28px; margin: 0; background: var(--navy); color: var(--white); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; border-radius: 999px; padding: 3px 12px; }
.plan h2 { font: 600 20px var(--sans); margin: 0 0 12px; }
.plan .price { margin: 0; display: flex; align-items: baseline; gap: 4px; }
.plan .price b { font: 40px/1.1 var(--serif); font-weight: 400; }
.plan .price span { color: var(--muted); font-size: 15px; }
.plan .storage { margin: 8px 0 20px; font-size: 17px; }
.plan ul { list-style: none; margin: 0 0 24px; padding: 20px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 15px; color: var(--muted); }
.plan li { padding-left: 24px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 10px; height: 6px; border-left: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(-45deg); }
.plan .btn { margin-top: auto; }
.steps-inline { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 12px; }
.steps-inline li { counter-increment: s; padding-left: 40px; position: relative; }
.steps-inline li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: var(--white); display: grid; place-items: center; font-size: 14px; font-weight: 600; }
