/* Styled after neptunes-daughter.com: Rosario type, sea-teal palette, pill buttons, airy aqua backgrounds. */
@font-face {
  font-family: "Rosario"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../fonts/rosario-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/rosario-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Rosario"; font-style: italic; font-weight: 300 700; font-display: swap;
  src: url("../fonts/rosario-latin-wght-italic.woff2") format("woff2-variations"), url("../fonts/rosario-latin-wght-italic.woff2") format("woff2");
}

:root {
  /* site palette */
  --teal: #189ab4;        /* brand teal: "Request A Quote" pill, nav */
  --deep: #106778;        /* deep teal: links, accent text */
  --abyss: #08333c;       /* darkest teal: footer, headings on light */
  --aqua: #eefbff;        /* page wash */
  --foam: #d4f1f4;        /* soft fills */
  --shallows: #a4dbe6;    /* borders, light accents */
  --sand: #f6ebe4;

  --bg: var(--aqua);
  --surface: #ffffff;
  --ink: #2f2f30;
  --muted: #5f5e61;
  --line: #cbe8ee;
  --navy: var(--deep);    /* primary fill (buttons, user bubble) */
  --navy-ink: #ffffff;
  --accent: var(--teal);  /* bullets, rules, highlights */
  --accent-soft: var(--sand);
  --sea: var(--deep);     /* link colour */
  --sea-soft: var(--foam);
  --user: var(--deep);
  --user-ink: #ffffff;
  --heading: var(--abyss);
  --shadow: 0 1px 2px rgba(8, 51, 60, .06), 0 8px 22px rgba(16, 103, 120, .08);
  --radius: 18px;
  --font: "Rosario", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --serif: var(--font);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #061f25; --surface: #0b2e36; --ink: #eefbff; --muted: #a9c9d0; --line: #16505c;
    --navy: var(--shallows); --navy-ink: var(--abyss); --accent: #3fb8cf; --accent-soft: #2a2420;
    --sea: var(--shallows); --sea-soft: #0f3f4a; --user: var(--deep); --user-ink: #ffffff; --heading: #eefbff;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 22px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #061f25; --surface: #0b2e36; --ink: #eefbff; --muted: #a9c9d0; --line: #16505c;
  --navy: var(--shallows); --navy-ink: var(--abyss); --accent: #3fb8cf; --accent-soft: #2a2420;
  --sea: var(--shallows); --sea-soft: #0f3f4a; --user: var(--deep); --user-ink: #ffffff; --heading: #eefbff;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 22px rgba(0,0,0,.25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 16.5px/1.55 var(--font);
  display: grid; grid-template-rows: auto 1fr auto auto; min-height: 100dvh;
}
a { color: var(--sea); text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header: white bar with a teal rule, like the site's nav */
.top {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--teal);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--heading); text-decoration: none; }
.brand:hover { color: var(--heading); }
.brand svg { width: 34px; height: 34px; fill: var(--deep); flex: none; }
.brand svg .accent { fill: var(--teal); }
.brand strong { display: block; font: italic 600 20px/1.1 var(--font); letter-spacing: .2px; }
.brand small { display: block; color: var(--teal); font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; }
.status {
  font-size: 12.5px; color: var(--muted); background: var(--surface); border: 1px solid var(--line);
  padding: 4px 12px; border-radius: 999px; white-space: nowrap; letter-spacing: .3px;
}
.status.ready { color: var(--sea); border-color: var(--shallows); }
.status.ready::before { content: "● "; color: var(--teal); }

/* chat */
.chat { overflow-y: auto; padding: 20px 16px 8px; }
.log { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; }
.msg.user { justify-content: flex-end; }
.bubble { max-width: min(640px, 92%); border-radius: var(--radius); padding: 12px 16px; box-shadow: var(--shadow); overflow-wrap: anywhere; }
.user .bubble { background: var(--user); color: var(--user-ink); border-bottom-right-radius: 6px; font-style: italic; }
.bot .bubble { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; width: min(640px, 100%); }
.bot .lead { margin: 0 0 8px; font-style: italic; font-size: 1.06em; color: var(--heading); }
.bot .note { margin: 8px 0; padding: 8px 12px; background: var(--accent-soft); border-left: 3px solid var(--teal); border-radius: 6px 10px 10px 6px; font-size: 14.5px; }
.bot .unsure { color: var(--muted); font-size: 14px; font-style: italic; margin: 0 0 6px; }

.facts { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.facts li { position: relative; padding-left: 18px; }
.facts li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.src { display: inline-block; margin-left: 6px; font-size: 12.5px; font-style: italic; white-space: nowrap; }
.where { display: block; font-size: 12px; color: var(--muted); }

.block { margin: 10px 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.block h3 { margin: 0; padding: 8px 12px; font: italic 600 15px/1.3 var(--font); background: var(--sea-soft); color: var(--heading); letter-spacing: .2px; }
.block table { width: 100%; border-collapse: collapse; font-size: 14px; }
.block th, .block td { text-align: left; padding: 7px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.block th { font-weight: 600; color: var(--muted); font-size: 12px; letter-spacing: .8px; text-transform: uppercase; }
.block .verdict { color: var(--sea); font-weight: 600; font-style: italic; }
.block ol, .block ul { margin: 0; padding: 8px 12px 8px 32px; display: grid; gap: 5px; font-size: 14.5px; }
.block li::marker { color: var(--accent); }
.block .more-link { display: block; padding: 0 12px 9px; font-size: 13px; }
.dest-note { color: var(--muted); font-size: 13px; }

.links { margin: 10px 0 0; font-size: 14px; }
.links span { color: var(--muted); font-style: italic; }
.links a { margin-right: 10px; }

.cta { margin-top: 12px; padding: 14px; border-radius: 14px; background: var(--sea-soft); display: grid; gap: 10px; }
.cta p { margin: 0; font-size: 14.5px; font-style: italic; color: var(--heading); }
.cta .row { display: flex; flex-wrap: wrap; gap: 8px; }
/* pill buttons with tracked lettering, like "Request A Quote" / "Start Planning" */
.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; border-radius: 55px; font-size: 14.5px; font-weight: 600;
  letter-spacing: .8px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.btn.primary { background: var(--navy); color: var(--navy-ink); }
.btn.primary:hover { color: var(--navy-ink); background: var(--teal); }
.btn.ghost { background: var(--surface); border-color: var(--shallows); color: var(--sea); }
.btn.ghost:hover { border-color: var(--teal); color: var(--teal); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px auto 0; max-width: 760px; }
.chip {
  font: inherit; font-size: 13.5px; font-style: italic; padding: 6px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--shallows); background: var(--surface); color: var(--sea);
}
.chip:hover, .chip:focus-visible { border-color: var(--teal); background: var(--sea-soft); outline: none; }
.chip.more { border-style: dashed; }

.typing .bubble { width: auto; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: blink 1.2s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* input */
.ask {
  display: flex; gap: 8px; max-width: 760px; width: 100%; margin: 0 auto; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
}
.ask input {
  flex: 1; min-width: 0; font: inherit; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--shallows);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow);
}
.ask input::placeholder { color: var(--muted); font-style: italic; }
.ask input:focus { outline: 2px solid color-mix(in srgb, var(--teal) 60%, transparent); outline-offset: 1px; }
.ask button {
  flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--navy); cursor: pointer;
  display: grid; place-items: center; transition: background-color .15s;
}
.ask button:hover:not(:disabled) { background: var(--teal); }
.ask button svg { width: 20px; height: 20px; fill: var(--navy-ink); }
.ask button:disabled, .ask input:disabled { opacity: .55; cursor: not-allowed; }
.foot { text-align: center; font-size: 12px; font-style: italic; color: var(--muted); padding: 0 16px 12px; max-width: 760px; margin: 0 auto; }
.noscript { padding: 16px; text-align: center; }

/* compact mode for embedding in an iframe: ?embed=1 */
body.embed .top { position: static; padding: 8px 12px; }
body.embed .brand small { display: none; }
body.embed .foot { display: none; }

@media (max-width: 520px) {
  body { font-size: 15.5px; }
  .chat { padding: 12px 12px 6px; }
  .ask { padding-left: 12px; padding-right: 12px; }
  .bubble { max-width: 100%; }
  .status { font-size: 11.5px; }
  .brand strong { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .dots i { animation: none; opacity: .6; } .btn, .ask button { transition: none; } }
