/* =========================================================================
   Flying Island — site styles
   Brand tokens, type, and components. One stylesheet for the whole site.
   Palette + type are the locked Flying Island brand system.
   Nothing external loads: fonts are self-hosted, logos are local SVG.
   ========================================================================= */

/* ---- Self-hosted fonts (no network calls) ---- */
@font-face {
  font-family: "DM Serif Text";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/dm-serif-text-latin-400-normal.woff2") format("woff2"),
       url("/assets/fonts/dm-serif-text-latin-ext-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/inter-latin-700-normal.woff2") format("woff2");
}

/* ---- Tokens ---- */
:root {
  --paper:    #FAF6EF;
  --paper-2:  #F3ECDF;   /* slightly deeper paper for bands */
  --ink:      #232D3F;
  --slate:    #57616E;
  --line:     #E4DCCE;
  --seaglass: #8FC7B4;
  --teal:     #72A7A8;
  --bluegrey: #55879B;
  --harbour:  #38678F;   /* primary accent */
  --harbour-d:#2C5273;   /* darker harbour for hovers */
  --evergreen:#2E6B5C;
  --mist:     #DDEFE7;   /* pale wash */
  --sky:      #7FA8CF;   /* brightened blue for dark surfaces */

  --accent:   var(--harbour);   /* per-page override */
  --accent-soft: var(--mist);

  --serif: "DM Serif Text", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1080px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(35,45,63,.05), 0 10px 30px -18px rgba(35,45,63,.28);
  --shadow-lift: 0 2px 4px rgba(35,45,63,.06), 0 22px 48px -24px rgba(35,45,63,.38);
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--harbour); text-decoration: none; }
a:hover { color: var(--harbour-d); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; color: var(--ink); margin: 0 0 .5em; letter-spacing: .1px; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1rem; }
strong { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
::selection { background: var(--mist); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; margin-left: auto; margin-right: auto; }
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.center { text-align: center; }
.muted { color: var(--slate); }
.serif { font-family: var(--serif); }
.eyebrow {
  font-family: var(--sans); font-weight: 600; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  margin: 0 0 .9rem;
}
.lead { font-size: 1.18rem; color: var(--slate); }

/* ---- Skip link (a11y) ---- */
.skip {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 200;
}
.skip:focus { left: 0; color: var(--paper); }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,246,239,.86);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand-lockup { display: inline-flex; align-items: center; }
.brand-lockup img { height: 26px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink); font-weight: 500; font-size: .96rem;
  padding: 8px 12px; border-radius: 9px; line-height: 1;
}
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a.is-current { color: var(--harbour); }
.nav .nav-cta {
  background: var(--harbour); color: var(--paper); margin-left: 6px;
}
.nav .nav-cta:hover { background: var(--harbour-d); color: var(--paper); }
/* keep the CTA text visible even when it's the current page */
.nav .nav-cta.is-current { background: var(--harbour-d); color: var(--paper); }

/* mobile disclosure nav */
.nav-toggle { display: none; }
.menu-btn {
  display: none; align-items: center; gap: 8px; cursor: pointer;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  padding: 8px 12px; border-radius: 10px; font: 500 .95rem var(--sans);
}
.menu-btn svg { height: 16px; width: 16px; }

@media (max-width: 760px) {
  .nav { position: fixed; inset: 66px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px 16px 18px;
    gap: 2px; transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .16s ease, transform .16s ease; box-shadow: var(--shadow); }
  .nav a { padding: 12px 10px; border-radius: 10px; font-size: 1.02rem; }
  .nav .nav-cta { margin: 6px 0 0; text-align: center; }
  .nav-toggle:checked ~ .nav { opacity: 1; transform: none; pointer-events: auto; }
  .menu-btn { display: inline-flex; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font: 600 1rem var(--sans); line-height: 1; cursor: pointer;
  padding: 14px 22px; border-radius: 12px; border: 1px solid transparent;
  transition: transform .06s ease, background .16s ease, box-shadow .16s ease, border-color .16s ease;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--harbour); color: var(--paper); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--harbour-d); color: var(--paper); box-shadow: var(--shadow-lift); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--paper-2); color: var(--ink); border-color: #d7ccb8; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: var(--shadow); }
.btn-accent:hover { filter: brightness(.94); color: #fff; box-shadow: var(--shadow-lift); }
.btn-lg { padding: 16px 26px; font-size: 1.05rem; }
.btn .arrow { transition: transform .16s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row { justify-content: center; }

/* ---- Hero ---- */
.hero { padding: 84px 0 60px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 50% -8%, rgba(143,199,180,.30), transparent 70%),
    radial-gradient(45% 40% at 88% 10%, rgba(127,168,207,.20), transparent 70%);
}
.hero .mark-lg { height: 76px; width: auto; margin: 0 auto 26px; }
.hero h1 { margin-bottom: .35em; }
.hero .lead { max-width: 620px; margin: 0 auto 1.8rem; }
.voice-line { font-family: var(--serif); color: var(--harbour); font-size: 1.05rem; margin-bottom: 1.1rem; }

/* ---- Hero (illustration at the top, headline in the bottom fade) ----
   The image runs to the top of the hero (no top fade) and fades into paper at
   the bottom; the headline sits in that fade. Default title is white-over-image;
   add class "title-dark" to .hero-top for the ink-on-paper treatment. */
.hero-top { background: var(--paper); text-align: center; }
.hero-band { position: relative; width: 100%;
  height: clamp(520px, 58vw, 800px);
  background: url("/assets/img/hero-island.jpg") center 42% / cover no-repeat;
  background-color: #cadeed;
  display: flex; align-items: flex-end; justify-content: center; }
.hero-band::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg,
    rgba(250,246,239,0) 46%,
    rgba(250,246,239,.28) 66%,
    rgba(250,246,239,.8) 85%,
    var(--paper) 100%); }
.hero-title { position: relative; z-index: 2; margin: 0 0 clamp(34px, 6vw, 76px); padding: 0 20px;
  color: #fff; text-shadow: 0 2px 12px rgba(18,28,42,.55), 0 1px 3px rgba(18,28,42,.6); }
.hero-top.title-dark .hero-title { color: var(--ink);
  text-shadow: none;
  margin-bottom: clamp(12px, 1.6vw, 22px); }
.hero-under { padding: 20px 24px 0; }
.hero-under .lead { max-width: 620px; margin: 0 auto 1.6rem; color: var(--slate); }
.hero-under .btn-row { margin-bottom: 0; }
@media (max-width: 760px){ .hero-band { height: clamp(460px, 96vw, 620px); }
  .hero-under { padding: 14px 20px 0; } }
/* tighten the space below the hero paragraph so it matches the headline->paragraph gap */
#tools { padding-top: 15px; }

/* ---- Product roster (cards) ---- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 20px; }
.card-grid.tools-2x2 { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin-left: auto; margin-right: auto; }
@media (max-width: 640px){ .card-grid.tools-2x2 { grid-template-columns: 1fr; } }
.pcard {
  display: flex; flex-direction: column; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow); position: relative;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
  color: var(--ink);
}
a.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: #d7ccb8; color: var(--ink); }
.pcard .pcard-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pcard .pmark { height: 46px; width: 46px; border-radius: 11px; }
.pcard h3 { margin: 6px 0 0; }
.pcard .pcard-desc { color: var(--slate); font-size: .98rem; margin: 0; flex: 1; }
.pcard .pcard-more { font-weight: 600; color: var(--harbour); font-size: .95rem; display: inline-flex; align-items: center; gap: 6px; }
.pcard:hover .pcard-more .arrow { transform: translateX(3px); }

/* status pill */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font: 600 .74rem var(--sans); letter-spacing: .03em;
  padding: 5px 11px; border-radius: 999px; white-space: nowrap;
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .85; }
.pill-live   { background: rgba(46,107,92,.12);  color: var(--evergreen); }
.pill-soon   { background: rgba(56,103,143,.12); color: var(--harbour); }
.pill-later  { background: rgba(87,97,110,.12);  color: var(--slate); }

/* ---- Bands / features ---- */
.band { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-ink { background: var(--ink); color: #E9EEF3; border: 0; }
.band-ink h1, .band-ink h2, .band-ink h3 { color: #fff; }
.band-ink a { color: var(--sky); }
.band-ink .muted { color: #A9B4C0; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 28px; }
.feature h3 { font-family: var(--sans); font-weight: 600; font-size: 1.08rem; margin-bottom: .3em; }
.feature p { color: var(--slate); font-size: .98rem; margin: 0; }
.feature .fic {
  width: 40px; height: 40px; border-radius: 10px; margin-bottom: 14px;
  display: grid; place-items: center; background: var(--mist); color: var(--harbour);
}
.band-ink .feature p { color: #B7C1CD; }
.band-ink .feature .fic { background: rgba(127,168,207,.16); color: var(--sky); }

/* ---- Prose (about, product detail copy) ---- */
.prose { font-size: 1.06rem; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; font-family: var(--sans); font-weight: 600; }
.prose p { color: #33404f; }
.prose .muted { color: var(--slate); }
.prose ul { padding-left: 1.15rem; margin: 0 0 1.2rem; }
.prose li { margin: .4rem 0; }
.pull {
  font-family: var(--serif); font-size: 1.5rem; line-height: 1.35; color: var(--harbour);
  border-left: 3px solid var(--seaglass); padding: 4px 0 4px 22px; margin: 2rem 0;
}

/* ---- Product page hero ---- */
.phero { padding: 64px 0 8px; }
.phero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.phero .plogo { height: 40px; width: auto; margin-bottom: 20px; }
.phero .phero-art {
  background: var(--accent-soft); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 40px; display: grid; place-items: center; box-shadow: var(--shadow);
}
.phero .phero-art img { width: min(220px, 70%); height: auto; }
@media (max-width: 820px) {
  .phero .wrap { grid-template-columns: 1fr; gap: 26px; }
  .phero .phero-art { order: -1; }
}

/* feature list with checks */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .ck {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 7px; margin-top: 2px;
  background: var(--accent-soft); color: var(--accent); display: grid; place-items: center;
}
.checklist b { font-weight: 600; }
.checklist span { color: var(--slate); }

/* price / callout card */
.callout {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow);
}
.price { font-family: var(--serif); font-size: 2.4rem; color: var(--ink); line-height: 1; }
.price small { font-family: var(--sans); font-size: .95rem; color: var(--slate); font-weight: 500; }

/* two-column info */
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 760px){ .cols-2 { grid-template-columns: 1fr; gap: 24px; } }

/* ---- Screenshot showcase ---- */
.shot { border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: #fff; box-shadow: var(--shadow-lift); }
.shot img { display: block; width: 100%; height: auto;
  aspect-ratio: 16 / 10; object-fit: cover; object-position: center top; }
.shot-cap { font-size: .95rem; color: var(--slate); margin: 14px auto 0; text-align: center; max-width: 60ch; }
.showcase-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
a.showcase-item { color: inherit; display: block; }
a.showcase-item .shot { transition: transform .14s ease, box-shadow .14s ease; }
a.showcase-item:hover .shot { transform: translateY(-3px); }
@media (max-width: 820px){ .showcase-grid { grid-template-columns: 1fr; gap: 26px; } }

/* ---- Newsletter / Office Hours signup ---- */
.signup-form { display: flex; gap: 10px; flex-wrap: wrap; }
.signup-form input[type="email"] {
  flex: 1 1 240px; min-width: 0; font: 400 1rem var(--sans);
  padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; color: var(--ink);
}
.signup-form input[type="email"]:focus { outline: 2px solid var(--harbour); outline-offset: 1px; border-color: var(--harbour); }
.band-ink .signup-form input[type="email"] { background: #1b2433; border-color: #33415a; color: #fff; }
.band-ink .signup-form input[type="email"]::placeholder { color: #8592a3; }
.form-note { font-size: .85rem; color: var(--slate); margin: 10px 0 0; }
.band-ink .form-note { color: #93a0b0; }
.form-status { font-size: .95rem; margin: 12px 0 0; min-height: 1.2em; }
.form-status.ok { color: var(--evergreen); }
.band-ink .form-status.ok { color: var(--seaglass); }
.form-status.err { color: #b4552f; }

/* ---- Footer ---- */
.site-footer { background: var(--ink); color: #C3CCD6; padding: 64px 0 34px; }
.site-footer h2, .site-footer h3 { color: #fff; }
.site-footer a { color: #C3CCD6; }
.site-footer a:hover { color: #fff; }
.footer-cta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  padding-bottom: 40px; margin-bottom: 34px; border-bottom: 1px solid #33415a;
}
.footer-cta .oh-mark { height: 40px; width: 40px; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-cols img.foot-logo { height: 30px; width: auto; margin-bottom: 14px; }
.footer-cols .col h4 { font: 600 .8rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #8593a4; margin: 0 0 12px; }
.footer-cols .col a { display: block; padding: 5px 0; font-size: .96rem; }
.footer-cols p { color: #97a3b3; font-size: .92rem; }
.footer-legal { margin-top: 34px; padding-top: 22px; border-top: 1px solid #33415a; font-size: .85rem; color: #8593a4; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-strip { margin: 8px 0 0; opacity: .9; }
.footer-strip img { height: 26px; width: auto; }
@media (max-width: 820px){
  .footer-cta { grid-template-columns: 1fr; gap: 20px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 520px){ .footer-cols { grid-template-columns: 1fr; } }

/* ---- Misc ---- */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; }
.tag { font: 500 .82rem var(--sans); color: var(--slate); background: var(--paper-2); border: 1px solid var(--line); padding: 5px 11px; border-radius: 999px; }
.note-box { background: var(--mist); border: 1px solid #cfe6db; border-radius: var(--radius); padding: 16px 18px; font-size: .95rem; color: #2c4a45; }
.kicker-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.big-emoji { font-size: 2rem; }
.grid-hero-cta { display:flex; gap:12px; flex-wrap:wrap; }

@media (max-width: 760px){
  .section { padding: 56px 0; }
  .hero { padding: 60px 0 44px; }
}
