/* Puerto Dolphin OS — styled with Puerto Dolphin's real brand kit:
   Midnight Navy, Cyan, Digital Blue, Soft Grey, Sunflower, Sky Azure,
   Arctic Mist. Headline font approximates Gilroy Extra Bold with
   Plus Jakarta Sans (the same substitution used on the marketing demo);
   body text stays on a plain Helvetica/system stack. */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
  --ink: #12172a;         /* Midnight Navy — text, header/footer bg */
  --ink-soft: #5a6480;    /* muted navy-grey — secondary text */
  --surface: #e9e8e8;     /* Soft Grey — page background */
  --surface-card: #ffffff;/* Pure White — card background */
  --border: #d8d8db;
  --tide: #006db1;        /* Digital Blue — links, focus, general accent */
  --tide-soft: #e1eef8;
  --brass: #00b6d9;       /* Cyan — primary buttons */
  --brass-strong: #006db1;/* Digital Blue — primary button hover */
  --rust: #a8492f;        /* kept for errors/cancelled — brand has no red */
  --rust-soft: #f3e3dd;
  --mist: #202f58;        /* Arctic Mist — dark accents, header hover */
  --azure: #87a9d9;       /* Sky Azure — soft secondary accents */
  --sun: #ffea2a;         /* Sunflower — used sparingly for highlights */
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: Helvetica, Arial, ui-sans-serif, "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

a { color: var(--tide); }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: var(--ink);
  border-bottom: 3px solid var(--brass);
}

.brand {
  font-family: 'Plus Jakarta Sans', ui-sans-serif, sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: #f7f6f1;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.brand em { color: var(--brass); font-style: normal; }

.brand-mark { height: 34px; width: auto; display: block; }

.nav-links { display: flex; gap: 1rem; align-items: center; font-size: 0.92rem; }
.nav-business { color: #cfd6e6; }
.nav-link-plain { color: #e7ecf7; text-decoration: none; font-weight: 600; }
.nav-link-plain:hover { color: var(--brass); }

.lang-switch { display: flex; align-items: center; gap: 0.3rem; font-size: 0.82rem; font-weight: 700; }
.lang-switch .lang-sep { color: rgba(247,246,241,0.35); }
.lang-switch .lang-link { color: rgba(247,246,241,0.55); text-decoration: none; letter-spacing: 0.02em; }
.lang-switch .lang-link:hover { color: #f7f6f1; }
.lang-switch .lang-link.active { color: var(--brass); }

.btn {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', ui-sans-serif, sans-serif;
}

.btn-primary { background: var(--brass); color: var(--ink); }
.btn-primary:hover { background: var(--brass-strong); color: #fff; }
.site-header .btn-ghost { background: transparent; color: #f7f6f1; border-color: rgba(247,246,241,0.35); }
.site-header .btn-ghost:hover { border-color: var(--brass); color: var(--brass); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--tide); color: var(--tide); }

main { max-width: 720px; margin: 0 auto; padding: 3.5rem 1.5rem 5rem; }
main.wide { max-width: 980px; }

.hero { text-align: left; max-width: 640px; margin-bottom: 2.5rem; }
.hero h1 { font-family: 'Plus Jakarta Sans', ui-sans-serif, sans-serif; font-weight: 800; font-size: 2.4rem; line-height: 1.15; margin: 0 0 1rem; letter-spacing: -0.01em; }
.hero p { font-size: 1.1rem; color: var(--ink-soft); margin: 0 0 1.6rem; }
.hero .actions { display: flex; gap: 0.8rem; }

.card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.6rem;
}

.form-card { max-width: 440px; }

h1.form-title { font-family: 'Plus Jakarta Sans', ui-sans-serif, sans-serif; font-weight: 800; font-size: 1.6rem; margin: 0 0 0.3rem; letter-spacing: -0.01em; }
.form-sub { color: var(--ink-soft); font-size: 0.95rem; margin: 0 0 1.6rem; }

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 0.3rem;
  margin-top: 1rem;
}
label:first-of-type { margin-top: 0; }

input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="time"], select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.98rem;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
}

input:focus, select:focus {
  outline: 2px solid var(--tide);
  outline-offset: 1px;
  border-color: var(--tide);
}

form .submit-row { margin-top: 1.6rem; }
form .submit-row .btn { width: 100%; text-align: center; }

.alt-action { margin-top: 1.2rem; font-size: 0.9rem; color: var(--ink-soft); }

.error-banner {
  background: var(--rust-soft);
  color: var(--rust);
  border: 1px solid var(--rust);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
  margin-bottom: 1.3rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin: 1.6rem 0;
}

.stat-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--brass);
  border-radius: 10px;
  padding: 1rem 1.1rem;
}

.stat-card .n { font-family: 'Plus Jakarta Sans', ui-sans-serif, sans-serif; font-size: 1.7rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); }
.stat-card .label { font-size: 0.78rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 0.2rem; }
.stat-card .soon {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.68rem;
  background: var(--tide-soft);
  color: var(--tide);
  padding: 0.1rem 0.45rem;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.profile-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  margin: 1.6rem 0;
  color: #fff;
}

.profile-link-card strong { color: #fff; }
.profile-link-card .url { font-family: ui-monospace, monospace; font-size: 0.88rem; color: var(--sun); }

dl.details { margin: 1.6rem 0; }
dl.details div { display: flex; padding: 0.55rem 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
dl.details dt { width: 160px; color: var(--ink-soft); flex-shrink: 0; }
dl.details dd { margin: 0; font-weight: 600; }

.profile-hero {
  text-align: center;
  padding: 3rem 1.5rem 2rem;
}
.profile-hero .tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--surface-card);
  border: 1px solid var(--border);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  color: var(--brass-strong);
  margin-bottom: 0.9rem;
}
.profile-hero h1 { font-family: 'Plus Jakarta Sans', ui-sans-serif, sans-serif; font-weight: 800; font-size: 2.3rem; margin: 0 0 0.6rem; letter-spacing: -0.01em; }
.profile-hero p { color: var(--ink-soft); max-width: 480px; margin: 0 auto; }

.notice-banner {
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
  margin-bottom: 1.3rem;
  border: 1px solid transparent;
}
.notice-ok { background: var(--tide-soft); color: var(--tide); border-color: var(--tide); }
.notice-info { background: #eeeeee; color: var(--ink-soft); border-color: var(--border); }
.notice-error { background: var(--rust-soft); color: var(--rust); border-color: var(--rust); }
.notice-warning { background: #fff9c4; color: #8a7300; border-color: #8a7300; }

.gcal-panel {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem 1.5rem;
  margin: 1.6rem 0;
}
.gcal-panel h2 { font-family: 'Plus Jakarta Sans', ui-sans-serif, sans-serif; font-weight: 800; font-size: 1.1rem; margin: 0 0 0.4rem; }
.gcal-panel code {
  background: var(--tide-soft);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.85em;
}
.gcal-setup { border-style: dashed; }
.gcal-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.gcal-status {
  font-size: 0.78rem;
  background: var(--tide-soft);
  color: var(--tide);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-weight: 600;
}
.gcal-events { list-style: none; margin: 0.6rem 0 1.2rem; padding: 0; }
.gcal-events li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.gcal-events li:last-child { border-bottom: none; }
.gcal-events .when {
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
  color: var(--ink-soft);
  flex-shrink: 0;
  width: 150px;
}
.gcal-events .what { flex: 1; font-weight: 600; }
.gcal-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.gcal-actions form { margin: 0; }

.mgmt-nav {
  display: flex;
  gap: 0.4rem;
  border-bottom: 1px solid var(--border);
  margin: 1.4rem 0 1.8rem;
  flex-wrap: wrap;
}
.mgmt-link {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-family: 'Plus Jakarta Sans', ui-sans-serif, sans-serif;
}
.mgmt-link:hover { color: var(--tide); }
.mgmt-link.active { color: var(--brass-strong); border-bottom-color: var(--brass); }

.stat-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  color: var(--tide);
  text-decoration: none;
  font-weight: 700;
}
.stat-link:hover { text-decoration: underline; }

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.8rem 0 1.5rem;
  font-size: 0.9rem;
}
.data-table th, .data-table td {
  text-align: left;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--border);
}
.data-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.btn-sm { padding: 0.3rem 0.7rem; font-size: 0.8rem; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
@media (max-width: 720px) {
  .two-col { grid-template-columns: 1fr; }
}

.stacked-form { margin-bottom: 1.2rem; }

.simple-list { list-style: none; margin: 0; padding: 0; }
.simple-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.simple-list li:last-child { border-bottom: none; }
.simple-list form { margin: 0; }

.inline-form {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-start;
}
.inline-form > div { flex: 1; min-width: 160px; }

.checkbox-list { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.4rem; }
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--ink);
  margin-top: 0;
}
.checkbox-item input[type="checkbox"] { width: auto; }

.badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.badge-tide { background: var(--tide-soft); color: var(--tide); }
.badge-brass { background: #fff9c4; color: #8a7300; }
.badge-rust { background: var(--rust-soft); color: var(--rust); }

.waiver-text {
  background: var(--tide-soft);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin: 1rem 0 1.4rem;
  line-height: 1.55;
}

.coming-soon-block {
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  color: var(--ink-soft);
  margin-top: 2rem;
}

footer.site-footer {
  text-align: center;
  font-size: 0.78rem;
  color: #cfd6e6;
  background: var(--ink);
  padding: 1.4rem 1rem;
  margin-top: 3rem;
}
