/* Pocket Aquascape — deep-water navy, pale aqua for what is on, warm gold used sparingly,
   a serif for names (the app's own palette, App/Design.swift). */
:root {
  --deep: #01060f; --deeper: #020a14; --glass: rgba(5, 20, 31, .78);
  --text: rgba(255,255,255,.94); --secondary: rgba(255,255,255,.62); --hairline: rgba(255,255,255,.16);
  --accent: #ade9e0; --gold: #f5d694;
  --serif: "New York", "Iowan Old Style", Georgia, "Noto Serif KR", "Hiragino Mincho ProN", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Hiragino Sans", "PingFang TC", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--deep); color: var(--text); font: 17px/1.65 var(--sans); }
a { color: var(--accent); }
header { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid var(--hairline); background: var(--deeper); position: relative; z-index: 2; }
header .home { font-family: var(--serif); color: var(--text); text-decoration: none; font-size: 18px; }
.langs { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; }
.langs a { color: var(--secondary); text-decoration: none; }
.langs a[aria-current] { color: var(--accent); }
footer { padding: 28px 20px 40px; text-align: center; font-size: 14px; color: var(--secondary); border-top: 1px solid var(--hairline); }
footer a { color: var(--secondary); }

/* Landing */
.hero { position: relative; min-height: 82vh; display: grid; place-items: end start; overflow: hidden; }
.hero .scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(1,6,15,.05) 30%, rgba(1,6,15,.92) 100%); }
.hero-text { position: relative; padding: 40px 24px 56px; max-width: 640px; }
.icon { border-radius: 22px; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 6vw, 52px); line-height: 1.15; margin: 16px 0 6px; }
.subtitle { color: var(--gold); margin: 0 0 12px; font-size: 19px; }
.promo { color: var(--text); margin: 0 0 24px; }
.get { display: inline-block; padding: 13px 24px; border-radius: 999px; background: var(--accent); color: #02121a;
  text-decoration: none; font-weight: 600; }
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2px; }
.strip img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }

/* Documents */
main { display: block; }
.doc main, article.support { max-width: 760px; margin: 0 auto; padding: 32px 20px 48px; }
.doc h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 5vw, 36px); line-height: 1.25; }
.doc h2 { font-size: 20px; margin-top: 2em; padding-top: .6em; border-top: 1px solid var(--hairline); }
.doc li { margin: .3em 0; }
.table { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px; border-bottom: 1px solid var(--hairline); }
th { color: var(--secondary); font-weight: 600; }
mark.todo { background: #ffe066; color: #000; padding: 0 4px; border-radius: 3px; }
.credits { font-size: 15px; padding-left: 1.1em; }
.small { font-size: 14px; color: var(--secondary); }

/* Phones: tables become stacked cards so nothing needs sideways scrolling. */
@media (max-width: 600px) {
  body { font-size: 16px; }
  table, thead, tbody, tr, td { display: block; }
  thead { display: none; }
  tr { border: 1px solid var(--hairline); border-radius: 12px; padding: 6px 12px; margin: 12px 0; background: var(--glass); }
  td { border: 0; padding: 6px 0; }
  td::before { content: attr(data-h); display: block; font-size: 13px; color: var(--secondary); }
}
