/* Rhumb Line Apps — shared styles
   Brand palette mirrors the ICW Planner app theme for cross-product consistency. */

:root {
  --navy:      #0F2B3C;
  --teal:      #1A4A5E;
  --seagreen:  #2E8B8B;
  --gold:      #D4A020;
  --brass:     #E8C97A;
  --warm:      #E67E22;
  --red:       #C0392B;
  --canvas:    #F5F0E8;
  --paper:     #FBF8F2;
  --ink:       #16232B;
  --label:     #4A5568;
  --muted:     #7F8C8D;
  --line:      #E3DBCB;

  --maxw: 1080px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15,43,60,.06), 0 8px 30px rgba(15,43,60,.08);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-serif); line-height: 1.15; letter-spacing: -0.01em; color: var(--navy); }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin: 0 0 .4em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin: 0 0 .5em; }
h3 { font-size: 1.2rem; margin: 0 0 .4em; }

p { margin: 0 0 1em; }
a { color: var(--seagreen); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251,248,242,.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-serif); font-weight: 700; font-size: 1.15rem; color: var(--navy); }
.brand:hover { text-decoration: none; }
.brand svg { display: block; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--label); font-size: .96rem; font-weight: 500; }
.nav-links a:hover { color: var(--navy); text-decoration: none; }
@media (max-width: 640px) { .nav-links a.hide-sm { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; cursor: pointer;
  border: 1px solid transparent; transition: transform .08s ease, box-shadow .2s ease, background .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: var(--navy); box-shadow: 0 6px 18px rgba(212,160,32,.35); }
.btn-primary:hover { background: #e0ac2b; }
.btn-ghost { background: transparent; color: var(--paper); border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-dark { background: var(--navy); color: var(--paper); }
.btn-dark:hover { background: var(--teal); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 500px at 78% -10%, var(--teal), transparent 60%), var(--navy);
  color: var(--paper);
  padding: 88px 0 96px;
}
.hero .compass { position: absolute; right: -60px; top: 50%; transform: translateY(-50%); opacity: .16; pointer-events: none; }
.hero h1 { color: #fff; }
.hero p.lede { font-size: 1.25rem; color: #cfe0e2; max-width: 620px; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 700; color: var(--brass); margin-bottom: 18px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.center { text-align: center; }
.section-head { max-width: 620px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--label); font-size: 1.08rem; }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}
.card .ico { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(46,139,139,.12); color: var(--seagreen); margin-bottom: 16px; }
.card h3 { color: var(--teal); }
.card p { color: var(--label); margin: 0; font-size: .98rem; }

/* Product card (studio home) */
.product {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 22px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); transition: transform .1s, box-shadow .2s;
}
.product:hover { transform: translateY(-2px); box-shadow: 0 10px 40px rgba(15,43,60,.13); text-decoration: none; }
.product .appicon { width: 96px; height: 96px; border-radius: 21px; box-shadow: var(--shadow); }
.product h3 { margin: 0 0 4px; color: var(--navy); }
.product p { margin: 0; color: var(--label); font-size: .98rem; }
.product .platform { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.badge-live { background: rgba(46,139,139,.14); color: var(--seagreen); }
.badge-soon { background: rgba(127,140,141,.16); color: var(--muted); }
@media (max-width: 640px) {
  .product { grid-template-columns: 72px 1fr; }
  .product .appicon { width: 72px; height: 72px; border-radius: 16px; }
  .product .product-cta { grid-column: 1 / -1; }
}

/* Feature list with checkmarks */
.feat { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.feat li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; color: var(--label); }
.feat li b { color: var(--ink); font-weight: 600; }
.feat .tick { color: var(--seagreen); font-weight: 800; }

/* Pricing */
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 720px; margin: 0 auto; }
@media (max-width: 640px) { .tiers { grid-template-columns: 1fr; } }
.tier { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.tier.featured { border-color: var(--gold); box-shadow: 0 10px 40px rgba(212,160,32,.18); }
.tier .price { font-family: var(--font-serif); font-size: 2rem; color: var(--navy); }
.tier .price small { font-size: .95rem; color: var(--muted); font-family: var(--font-sans); }

/* ---------- Legal / prose pages ---------- */
.legal { padding: 56px 0 84px; }
.legal h1 { margin-bottom: .2em; }
.legal .updated { color: var(--muted); font-size: .92rem; margin-bottom: 2.4em; }
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; color: var(--teal); }
.legal h3 { font-size: 1.08rem; margin-top: 1.4em; }
.legal p, .legal li { color: #2c3a42; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .5em; }
.callout { background: rgba(46,139,139,.08); border-left: 4px solid var(--seagreen);
  padding: 16px 20px; border-radius: 8px; margin: 1.4em 0; }
.callout.warn { background: rgba(230,126,34,.09); border-left-color: var(--warm); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #a9c0c6; padding: 54px 0 40px; margin-top: 0; }
.site-footer a { color: #cfe0e2; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { max-width: 300px; }
.footer-brand .brand { color: #fff; margin-bottom: 12px; }
.footer-brand p { color: #86a2aa; font-size: .92rem; }
.footer-col h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-col a { font-size: .95rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px;
  font-size: .85rem; color: #6f8a92; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Anchors offset for sticky header */
:target { scroll-margin-top: 84px; }
