/* Palette */
:root {
  --soft-linen: #e8ebe4;
  --blue-bell: #4ba1e7;
  --grey-olive: #798071;
  --twilight-indigo: #2b3a67;
  --prussian-blue: #0d2149;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(13, 33, 73, 0.10);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  background: var(--soft-linen);
  color: var(--prussian-blue);
}
h1, h2, h3 { color: var(--twilight-indigo); line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: 2.6em; font-weight: 800; }
h2 { font-size: 1.7em; font-weight: 800; }
h3 { font-size: 1.15em; font-weight: 700; }
p { margin: 0 0 12px; }
a { color: var(--twilight-indigo); }
.muted { color: var(--grey-olive); }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
main { max-width: 960px; margin: 0 auto; padding: 32px 16px 48px; }

/* ---- header / nav ---- */
header {
  background: var(--prussian-blue);
  color: var(--soft-linen);
  position: sticky; top: 0; z-index: 10;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}
header .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding-top: 12px; padding-bottom: 12px; }
header a { color: var(--soft-linen); text-decoration: none; }
.brand { font-weight: 800; font-size: 1.35em; display: flex; align-items: center; gap: 10px; }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue-bell); color: var(--prussian-blue); font-size: 0.8em;
}
nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
nav a { padding: 6px 12px; border-radius: 999px; font-weight: 600; transition: background 0.15s; }
nav a:hover { background: rgba(255, 255, 255, 0.12); }
nav a.active { color: var(--blue-bell); }
.nav-btn, nav a.nav-btn {
  background: var(--blue-bell); color: var(--prussian-blue);
  border: 0; border-radius: 999px; padding: 7px 18px; margin-left: 6px;
  font: inherit; font-weight: 800; cursor: pointer; transition: background 0.15s, color 0.15s;
}
.nav-btn:hover, nav a.nav-btn:hover { background: var(--soft-linen); color: var(--prussian-blue); }

/* ---- buttons ---- */
button, .btn {
  display: inline-block;
  background: var(--blue-bell); color: var(--prussian-blue);
  border: 0; border-radius: 999px; padding: 12px 26px;
  font: inherit; font-weight: 800; text-decoration: none; cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.1s;
}
button:hover, .btn:hover { background: var(--twilight-indigo); color: var(--soft-linen); }
button:active, .btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--soft-linen); box-shadow: inset 0 0 0 2px var(--soft-linen); }
.btn-ghost:hover { background: var(--soft-linen); color: var(--prussian-blue); }

/* ---- home hero ---- */
.hero {
  background: linear-gradient(135deg, var(--twilight-indigo), var(--prussian-blue));
  color: var(--soft-linen);
  padding: 72px 0 80px;
}
.hero h1 { color: var(--white); }
.hero p { font-size: 1.2em; opacity: 0.92; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero .phone { margin-top: 28px; font-size: 1.05em; opacity: 0.85; }
.hero .phone strong { color: var(--blue-bell); font-size: 1.3em; }

/* ---- cards ---- */
.card, main > section {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 24px;
}
main > section.plain { background: none; box-shadow: none; padding: 0; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid .card { margin: 0; padding: 22px; border-top: 4px solid var(--blue-bell); }
.grid .card p { margin: 0; color: var(--grey-olive); }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding: 4px 0 16px 52px; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--twilight-indigo); color: var(--white); font-weight: 800;
}
.price { font-size: 2.4em; font-weight: 800; color: var(--twilight-indigo); }
.fine { font-size: 0.75em; color: var(--grey-olive); margin: 16px 0 0; }
.lobster { text-align: center; margin: 0; }
.price small { font-size: 0.4em; font-weight: 600; color: var(--grey-olive); }

/* ---- "what they can ask" carousel ---- */
.carousel { max-width: 640px; margin: 0 auto; }
/* every slide sits in the same grid cell, so the box is always as tall as the tallest one - no jumping */
.slides { display: grid; }
.slide {
  grid-area: 1 / 1; margin: 0; padding: 20px 22px; border-top: 4px solid var(--blue-bell);
  opacity: 0; visibility: hidden; transform: translateX(16px);
  transition: opacity 0.4s, transform 0.4s, visibility 0.4s;
}
.slide.on { opacity: 1; visibility: visible; transform: none; }
.slide h3 { margin-bottom: 4px; }
.slide-sub { color: var(--grey-olive); font-size: 0.9em; margin-bottom: 0; }
.chat { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.say { margin: 0; padding: 8px 12px; border-radius: 14px; max-width: 88%; font-size: 0.92em; line-height: 1.45; }
.say span { display: block; font-size: 0.72em; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.7; }
.say.caller { align-self: flex-end; background: var(--soft-linen); border-bottom-right-radius: 4px; }
.say.buddy { align-self: flex-start; background: var(--twilight-indigo); color: var(--soft-linen); border-bottom-left-radius: 4px; }
.carousel-nav { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 12px; }
.carousel-nav .arrow {
  width: 44px; height: 44px; padding: 0; border-radius: 50%;
  font-size: 1.6em; line-height: 1; background: var(--white); color: var(--twilight-indigo); box-shadow: var(--shadow);
}
.carousel-nav .arrow:hover { background: var(--twilight-indigo); color: var(--white); }
.dots { display: flex; gap: 8px; }
.dot { width: 12px; height: 12px; padding: 0; border-radius: 50%; background: #c9cfc1; }
.dot:hover { background: var(--grey-olive); }
.dot.on { background: var(--blue-bell); }
@media (prefers-reduced-motion: reduce) { .slide { transition: none; transform: none; } }

/* ---- forms ---- */
form label { display: block; margin-bottom: 16px; font-weight: 700; color: var(--twilight-indigo); }
form input, form select, form textarea {
  display: block; width: 100%; margin-top: 6px;
  padding: 12px 14px; font: inherit; font-weight: 400; color: var(--prussian-blue);
  border: 2px solid #d3d8cc; border-radius: 10px; background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
}
form input:focus, form select:focus, form textarea:focus {
  outline: none; border-color: var(--blue-bell); box-shadow: 0 0 0 4px rgba(75, 161, 231, 0.2);
}
form label.confirm {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--soft-linen); padding: 14px; border-radius: 10px; font-weight: 600;
}
form label.confirm input { display: inline; width: 20px; height: 20px; margin: 2px 0 0; flex: none; }
[id$="-result"]:not(:empty) { margin-top: 16px; font-weight: 700; }
.hp { position: absolute; left: -9999px; }

/* ---- account created / credited ---- */
.big { font-size: 2.4em; font-weight: 800; color: var(--prussian-blue); margin: 4px 0 18px; letter-spacing: 0.06em; }
.big-label { display: block; font-size: 0.36em; font-weight: 700; color: var(--grey-olive); letter-spacing: 0.08em; text-transform: uppercase; }

/* ---- footer ---- */
footer { background: var(--prussian-blue); color: var(--soft-linen); padding: 24px 0; font-size: 0.9em; }
footer p { margin: 0; opacity: 0.8; }
footer a { color: var(--blue-bell); }

/* ---- hamburger (phones) ---- */
.menu-btn { display: none; }
@media (max-width: 760px) {
  .menu-btn {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px; border-radius: 10px;
    background: transparent; box-shadow: inset 0 0 0 2px rgba(232, 235, 228, 0.35);
  }
  .menu-btn:hover { background: rgba(255, 255, 255, 0.12); }
  .menu-btn span { display: block; height: 3px; border-radius: 2px; background: var(--soft-linen); transition: transform 0.2s, opacity 0.2s; }
  .menu-open .menu-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-open .menu-btn span:nth-child(2) { opacity: 0; }
  .menu-open .menu-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  header nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 8px 0 4px; }
  .menu-open header nav { display: flex; }
  header nav a { padding: 12px 14px; border-radius: 10px; }
  header nav a.nav-btn, header nav .nav-btn { margin: 8px 0 0; text-align: center; padding: 12px; }
}

@media (max-width: 600px) {
  h1 { font-size: 2em; }
  .hero { padding: 48px 0 56px; }
  main > section, .card { padding: 20px; }
  .big { font-size: 1.9em; }
}

/* ---- my account ---- */
#member-info { display: flex; flex-wrap: wrap; gap: 16px 48px; margin: 0; }
.info-row { font-size: 1.25em; font-weight: 800; color: var(--prussian-blue); overflow-wrap: anywhere; }
.info-row .big-label { font-size: 0.6em; margin-bottom: 2px; }

/* ---- my account tabs ---- */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tab {
  background: var(--white); color: var(--twilight-indigo);
  padding: 10px 18px; box-shadow: var(--shadow);
}
.tab:hover { background: #dfe6f5; color: var(--twilight-indigo); }
.tab.on, .tab.on:hover { background: var(--twilight-indigo); color: var(--white); }
@media (max-width: 600px) { .tab { flex: 1 1 auto; padding: 10px 12px; font-size: 0.9em; } }

/* ---- terms ---- */
.terms h2 { font-size: 1.25em; margin-top: 28px; }
.terms ul { padding-left: 22px; margin: 0 0 12px; }
.terms li { margin-bottom: 4px; }
.callout {
  background: var(--prussian-blue); color: var(--soft-linen);
  border-left: 6px solid var(--blue-bell); border-radius: 10px;
  padding: 18px 20px; margin: 16px 0 20px;
}
.callout strong { display: block; font-size: 1.2em; color: var(--white); margin-bottom: 6px; }
