/* Ohana Apps — site styles */
:root {
  --ink: #10243a;
  --ink-soft: #46586b;
  --ocean: #0e7c86;
  --ocean-deep: #0a4d5c;
  --lagoon: #19b3a6;
  --coral: #ff7a59;
  --coral-deep: #e85f3d;
  --sand: #fbf7f1;
  --sand-2: #f3ece1;
  --line: #e6ddd0;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(16, 36, 58, 0.08);
  --shadow-lg: 0 24px 60px rgba(16, 36, 58, 0.16);
  --max: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ocean); text-decoration: none; }
a:hover { color: var(--coral-deep); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-family: var(--font-display); font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1em; }

.container { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--white); padding: .5rem 1rem; z-index: 100; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 241, 0.88);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--ink); font-weight: 700; font-size: 1.15rem; }
.brand:hover { color: var(--ink); }
.brand img { width: 38px; height: 38px; flex: none; }
.brand small { display: block; font-weight: 500; font-size: .72rem; color: var(--ink-soft); letter-spacing: .08em; text-transform: uppercase; margin-top: -3px; }
.nav-links { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-weight: 550; padding: .5rem .9rem; border-radius: 999px; font-size: .97rem; }
.nav-links a:hover { background: var(--sand-2); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ocean); background: rgba(14, 124, 134, .09); }
.nav-links .btn { margin-left: .5rem; }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 28px; height: 28px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: 999px;
  font-weight: 650; font-size: 1rem; border: 2px solid transparent;
  transition: transform .15s, box-shadow .15s, background .15s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--coral); color: var(--white); box-shadow: 0 8px 20px rgba(255, 122, 89, .3); }
.btn-primary:hover { background: var(--coral-deep); color: var(--white); }
.btn-ghost { border-color: currentColor; color: var(--ocean); }
.btn-ghost:hover { background: rgba(14, 124, 134, .08); color: var(--ocean); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { color: var(--ink); box-shadow: var(--shadow); }
.btn-gold { background: #e9b23a; color: #2b1a0c; }
.btn-gold:hover { background: #f4c254; color: #2b1a0c; }
.nav-links .btn-primary { padding: .55rem 1.1rem; color: var(--white); }
.nav-links .btn-primary:hover { background: var(--coral-deep); color: var(--white); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 5.5rem 0 6.5rem; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(25, 179, 166, .22), transparent 65%);
  z-index: -1;
}
.hero::after {
  content: ""; position: absolute; left: -200px; bottom: -260px; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(255, 122, 89, .16), transparent 65%);
  z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ocean); background: rgba(14, 124, 134, .09);
  padding: .4rem .85rem; border-radius: 999px; margin-bottom: 1.2rem;
}
.hero h1 span { color: var(--ocean); }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-art { position: relative; }
.hero-art .wave-card {
  background: linear-gradient(150deg, var(--ocean-deep), var(--ocean) 55%, var(--lagoon));
  border-radius: 28px; aspect-ratio: 1 / 1; box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden; display: grid; place-items: center;
}
.hero-art .wave-card svg.waves { position: absolute; inset: auto 0 0 0; width: 100%; height: 45%; }
.floating {
  position: absolute; background: var(--white); border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: .8rem 1rem; display: flex; align-items: center; gap: .7rem; font-weight: 600; font-size: .92rem;
}
.floating img { width: 44px; height: 44px; border-radius: 11px; }
.floating small { display: block; font-weight: 500; color: var(--ink-soft); font-size: .78rem; }
.floating.f1 { left: -28px; bottom: 18%; }
.floating.f2 { right: -18px; top: 12%; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lagoon); box-shadow: 0 0 0 4px rgba(25,179,166,.2); }

/* Sections */
section { padding: 5rem 0; }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }
.band { background: var(--white); border-block: 1px solid var(--line); }

.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.band .card { background: var(--sand); box-shadow: none; }
.card p { color: var(--ink-soft); margin: 0; }
.icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(14, 124, 134, .1); color: var(--ocean); margin-bottom: 1.1rem;
}
.icon svg { width: 26px; height: 26px; }
.icon.coral { background: rgba(255, 122, 89, .12); color: var(--coral-deep); }
.icon.sun { background: rgba(233, 178, 58, .16); color: #b07d10; }

/* Featured game */
.game-feature {
  background: radial-gradient(ellipse at 75% 40%, #4a2f1c, #24160d 60%, #170e08);
  color: #f5e9d6; border-radius: 28px; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; box-shadow: var(--shadow-lg);
}
.game-feature .copy { padding: 3.2rem; }
.game-feature h2 { color: #e9b23a; display: flex; align-items: center; gap: .8rem; }
.game-feature h2 img { width: 56px; height: 56px; border-radius: 14px; }
.game-feature p { color: #e6d6bd; }
.game-feature .tag { color: #ffd27a; font-weight: 600; }
.game-feature .art { align-self: stretch; background: url("../img/ironkeep-castle.png") center / contain no-repeat; min-height: 340px; margin: 1rem; -webkit-mask-image: radial-gradient(ellipse 50% 50% at center, #000 60%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at center, #000 60%, transparent 100%); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0 1.8rem; padding: 0; list-style: none; }
.chips li { font-size: .82rem; font-weight: 600; padding: .35rem .8rem; border-radius: 999px; background: rgba(233, 178, 58, .14); color: #ffd98c; border: 1px solid rgba(233, 178, 58, .3); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat strong { display: block; font-family: var(--font-display); font-size: 2.6rem; color: var(--ocean); line-height: 1.1; }
.stat span { color: var(--ink-soft); font-size: .95rem; }

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--ocean-deep), var(--ocean));
  color: var(--white); border-radius: 28px; padding: 3.5rem; text-align: center; position: relative; overflow: hidden;
}
.cta h2 { color: var(--white); }
.cta p { color: rgba(255, 255, 255, .82); max-width: 34em; margin-inline: auto; margin-bottom: 1.8rem; }
.cta::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.07); }

/* Page header */
.page-hero { padding: 4.5rem 0 3rem; text-align: center; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: -40% 10% auto; height: 520px;
  background: radial-gradient(ellipse, rgba(25, 179, 166, .18), transparent 65%); z-index: -1;
}
.page-hero .lead { margin-inline: auto; }

/* App detail */
.app-detail { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: start; }
.app-title { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.2rem; }
.app-title img { width: 84px; height: 84px; border-radius: 20px; box-shadow: var(--shadow); }
.app-title h2 { margin: 0; }
.app-title p { margin: 0; color: var(--ink-soft); }
.feature-list { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: 1rem; }
.feature-list li { display: grid; grid-template-columns: 40px 1fr; gap: .9rem; align-items: start; }
.feature-list .em { width: 40px; height: 40px; border-radius: 12px; background: var(--sand-2); display: grid; place-items: center; font-size: 1.25rem; }
.feature-list strong { display: block; }
.feature-list span { color: var(--ink-soft); font-size: .97rem; }
.phones { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.phones img { height: auto; border-radius: 22px; border: 6px solid #1c1410; box-shadow: var(--shadow-lg); }
.phones img:nth-child(2) { margin-top: 2.5rem; }
.meta-table { width: 100%; border-collapse: collapse; font-size: .95rem; margin-top: 1.5rem; }
.meta-table td { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.meta-table td:first-child { color: var(--ink-soft); width: 42%; }

.coming { border-style: dashed; text-align: center; padding: 2.5rem 1.8rem; }
.coming .badge { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--coral-deep); background: rgba(255,122,89,.12); padding: .3rem .7rem; border-radius: 999px; margin-bottom: 1rem; }

/* About */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.quote {
  font-family: var(--font-display); font-size: 1.55rem; line-height: 1.45; color: var(--ocean-deep);
  border-left: 4px solid var(--coral); padding: .4rem 0 .4rem 1.5rem; margin: 0;
}
.quote cite { display: block; font-family: var(--font); font-size: .95rem; font-style: normal; color: var(--ink-soft); margin-top: 1rem; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding-left: 2.6rem; margin-bottom: 2rem; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 3px solid var(--lagoon); }
.timeline time { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ocean); }
.timeline p { color: var(--ink-soft); margin: .2rem 0 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2.5rem; align-items: start; }
.contact-card { background: linear-gradient(150deg, var(--ocean-deep), var(--ocean)); color: var(--white); border-radius: var(--radius); padding: 2.2rem; }
.contact-card h3 { color: var(--white); }
.contact-card p { color: rgba(255,255,255,.82); }
.contact-card .email { font-size: 1.35rem; font-weight: 700; color: var(--white); word-break: break-all; display: inline-block; margin: .3rem 0 1.4rem; border-bottom: 2px solid rgba(255,255,255,.35); }
.contact-card .email:hover { border-color: var(--coral); }
.contact-card ul { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .9rem; }
.contact-card li { display: flex; gap: .7rem; align-items: flex-start; color: rgba(255,255,255,.9); font-size: .97rem; }
.contact-card li svg { width: 20px; height: 20px; flex: none; margin-top: 3px; opacity: .85; }
form.card:hover { transform: none; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: 12px; background: var(--sand);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lagoon); box-shadow: 0 0 0 4px rgba(25,179,166,.15); background: var(--white); }
.field textarea { min-height: 140px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: .85rem; color: var(--ink-soft); margin: .8rem 0 0; }

.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.4rem; margin-bottom: .8rem; }
.faq summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--ocean); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); margin: .8rem 0 0; }

/* Prose (privacy) */
.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 1.2rem; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 4rem 0 2rem; margin-top: 3rem; font-size: .95rem; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: var(--coral); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer .brand { color: var(--white); margin-bottom: 1rem; }
.site-footer .brand small { color: rgba(255,255,255,.55); }
.site-footer h4 { color: var(--white); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin: .4rem 0 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 3rem; padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .87rem; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .game-feature, .app-detail, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 3.5rem; }
  .hero-art { max-width: 440px; margin-inline: auto; width: 100%; }
  .game-feature .art { min-height: 260px; order: -1; }
  .game-feature .copy { padding: 2.2rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { gap: 1rem; }
  .grid-3 .card { padding: 1.4rem; }
  .phones { max-width: 520px; margin-inline: auto; width: 100%; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--sand); border-bottom: 1px solid var(--line); padding: .8rem 1.25rem 1.2rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .8rem 1rem; }
  .nav-links .btn { margin: .5rem 0 0; justify-content: center; }
  section { padding: 3.5rem 0; }
  .grid-3, .grid-2, .grid-4, .field-row { grid-template-columns: 1fr; }
  .cta { padding: 2.5rem 1.5rem; }
  .floating.f1 { left: 8px; } .floating.f2 { right: 8px; }
  .footer-grid { grid-template-columns: 1fr; }
}
.nav-links a.btn-primary[aria-current="page"] { background: var(--coral-deep); color: var(--white); }
