/* Tate Built — navy + gold, responsive, no JS required.
   Visual family shared with Tate's One Stop (same tokens + type). */

:root {
  --navy: #0b2240;
  --navy-deep: #071831;
  --gold: #c9a227;
  --gold-soft: #e6c95c;
  --cream: #faf6ec;
  --ink: #1d2733;
  --muted: #5a6673;
  --card-border: #d9d2bd;
}

* {
  box-sizing: border-box;
}

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

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

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- header ---------- */

.site-header {
  background: var(--navy);
  color: #fff;
  padding: 30px 0 26px;
  border-bottom: 4px solid var(--gold);
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.monogram {
  width: 60px;
  height: 60px;
  flex: 0 0 auto;
}

.brand-name {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.9rem;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.tagline {
  margin: 4px 0 0;
  color: var(--gold-soft);
  font-size: 1rem;
}

/* ---------- hero ---------- */

.hero {
  background: var(--navy-deep);
  color: #fff;
  padding: 52px 0 48px;
}

.hero h1 {
  margin: 0 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.5rem;
  line-height: 1.15;
  max-width: 18em;
}

.hero p {
  margin: 0;
  font-size: 1.13rem;
  color: #cfd8e3;
  max-width: 44em;
}

/* ---------- sections ---------- */

section.wrap {
  padding-top: 10px;
}

.section-title {
  margin: 34px 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  color: var(--navy);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 8px;
}

.section-lede {
  margin: 0 0 6px;
  font-size: 1.08rem;
}

.about p {
  margin: 0 0 14px;
  max-width: 46em;
  font-size: 1.05rem;
}

/* ---------- application cards ---------- */

.app-grid,
.coming-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding: 18px 0 6px;
}

.card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-top: 4px solid var(--gold);
  border-radius: 10px;
  padding: 22px 20px;
  box-shadow: 0 1px 3px rgba(11, 34, 64, 0.08);
}

.card h3 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  line-height: 1.25;
  color: var(--navy);
}

.card p {
  margin: 0 0 10px;
}

.card p:last-child {
  margin-bottom: 0;
}

.card-link a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
}

.card-link a:hover,
.card-link a:focus {
  color: var(--gold);
}

/* ---------- coming soon ---------- */

.card-soon {
  background: #f3efe2;
  border-top-color: var(--navy);
  box-shadow: none;
}

.badge {
  display: inline-block;
  margin: 0 0 12px;
  padding: 2px 10px;
  border: 1px solid var(--navy);
  border-radius: 999px;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- services ---------- */

.service-list {
  list-style: none;
  margin: 10px 0 18px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
}

.service-list li {
  border-left: 3px solid var(--gold);
  padding-left: 16px;
}

.service-list h3 {
  margin: 0 0 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  color: var(--navy);
}

.service-list p {
  margin: 0;
  color: var(--ink);
}

.services > p:last-child {
  max-width: 46em;
}

/* ---------- contact ---------- */

.contact {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 44px 0 40px;
  margin-top: 44px;
}

.contact h2 {
  margin: 0 0 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
}

.contact p {
  margin: 0;
}

.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-deep);
  text-decoration: none;
  font-weight: 700;
  padding: 13px 30px;
  border-radius: 8px;
  border: 2px solid var(--gold);
}

.btn:hover,
.btn:focus {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  color: var(--navy-deep);
}

/* ---------- header actions / account nav ---------- */

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.brand-home {
  color: #fff;
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-actions a {
  color: var(--gold-soft);
  font-weight: 600;
  text-decoration: none;
}

.header-actions a:hover,
.header-actions a:focus {
  color: #fff;
}

.header-actions a.btn-nav {
  color: var(--navy-deep);
}

.btn-nav {
  padding: 9px 18px;
  font-size: 0.98rem;
}

.account-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-email {
  color: #cfd8e3;
  font-size: 0.98rem;
  overflow-wrap: anywhere;
}

/* ---------- portal forms ---------- */

.portal {
  padding-bottom: 12px;
}

.portal-form {
  max-width: 430px;
  margin: 20px 0 8px;
  display: flex;
  flex-direction: column;
}

.portal-form label {
  font-weight: 600;
  color: var(--navy);
  margin: 12px 0 5px;
}

.portal-form input {
  font: inherit;
  padding: 11px 12px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.portal-form input:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.portal-form .btn {
  margin-top: 20px;
  align-self: flex-start;
  cursor: pointer;
  font: inherit;
}

/* password visibility toggle — eye control inside the field */
.pw-wrap {
  position: relative;
}

.pw-wrap input {
  width: 100%;
  padding-right: 82px;
}

.pw-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  min-height: 44px;
  min-width: 44px;
  padding: 8px 10px;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--navy);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.pw-toggle::before {
  content: "👁 ";
}

.pw-toggle:hover,
.pw-toggle:focus {
  color: var(--gold);
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.form-error {
  margin: 0 0 6px;
  padding: 10px 12px;
  border: 1px solid #b3402e;
  border-left: 4px solid #b3402e;
  border-radius: 8px;
  background: #fdf0ec;
  color: #7c2415;
}

.field-hint {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 400;
  margin: 6px 0 0;
}

.portal-note {
  color: var(--muted);
  max-width: 40em;
}

.portal-alt {
  margin-top: 18px;
}

.portal-alt a,
.portal-note a {
  color: var(--navy);
  font-weight: 600;
}

/* ---------- account page ---------- */

.profile-card p {
  margin: 0 0 8px;
}

.profile-form {
  margin: 8px 0 0;
  max-width: 380px;
}

.plan-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.plan-list li {
  border-left: 3px solid var(--gold);
  padding-left: 12px;
  margin-bottom: 6px;
}

/* [hidden] always wins (platform rule) */
[hidden] {
  display: none !important;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: #cfd8e3;
  padding: 20px 0;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- responsive ---------- */

@media (max-width: 760px) {
  .app-grid,
  .coming-grid,
  .service-list {
    grid-template-columns: 1fr;
  }

  .brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .site-header {
    padding: 24px 0 20px;
  }

  .brand-name {
    font-size: 1.7rem;
  }

  .hero {
    padding: 38px 0 34px;
  }

  .hero h1 {
    font-size: 2rem;
  }
}
