@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&family=Open+Sans:wght@400;500;600&display=swap');

:root {
  --teal: #0d7b8e;
  --teal-dark: #085a6a;
  --teal-light: #e2f0f3;
  --coral: #E05A2B;
  --coral-dark: #C04820;
  --dark: #1a2e35;
  --text: #2c4a54;
  --light-bg: #f4f9fb;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.1rem;
  color: var(--text);
  background: var(--white);
}

/* NAV */
nav {
  background: var(--teal-dark);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--white);
  letter-spacing: 0.04em;
  text-decoration: none;
}

.nav-brand span {
  color: var(--coral);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--coral);
}

/* HERO */
.hero-banner {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: contain;
  margin-top: 1.5rem;
  background: var(--teal-light);
}

/* SECTIONS */
.section {
  padding: 4rem 2rem;
}

.section-inner {
  max-width: 900px;
  margin: 0 auto;
}

.section-alt {
  background: var(--light-bg);
}

.section-dark {
  background: var(--teal-dark);
  color: var(--white);
}

/* TYPOGRAPHY */
h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
}

h1 {
  font-size: 2.7rem;
  font-weight: 800;
  color: var(--teal-dark);
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--teal-dark);
  margin-bottom: 1rem;
}

.section-dark h2 {
  color: var(--white);
}

p {
  line-height: 1.75;
  margin-bottom: 1rem;
}

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

/* WELCOME */
.welcome {
  text-align: center;
  padding: 3rem 2rem 2.5rem;
  border-bottom: 3px solid var(--teal-light);
}

.welcome h1 {
  color: var(--teal-dark);
}

.byline {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  color: var(--coral);
  font-weight: 700;
  margin-top: 0.5rem !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* CARDS */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: var(--white);
  border: 2px solid var(--teal-light);
  border-radius: 8px;
  padding: 1.5rem;
  border-top: 4px solid var(--teal);
}

.card h3 {
  font-size: 1.05rem;
  color: var(--teal-dark);
  margin-bottom: 0.6rem;
}

.card p {
  font-size: 0.93rem;
  margin: 0;
}

/* PRICING */
.pricing-box {
  background: var(--white);
  border-radius: 10px;
  padding: 2rem 2.5rem;
  max-width: 540px;
  margin: 2rem auto 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  text-align: center;
}

.price-main {
  font-family: 'Montserrat', sans-serif;
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--coral);
  line-height: 1;
}

.price-sub {
  color: var(--text);
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

.pricing-divider {
  border: none;
  border-top: 1px solid var(--teal-light);
  margin: 1.5rem 0;
}

.renewal-note {
  color: var(--text);
  font-size: 0.95rem;
  margin: 0 0 1rem;
}

.add-on {
  background: var(--teal-light);
  border-radius: 6px;
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  color: var(--teal-dark);
  margin-top: 0.5rem;
}

/* PAYMENT PLAN */
.payment-plan {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.plan-option {
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  padding: 1.5rem;
}

.plan-option h3 {
  color: var(--coral);
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

.plan-option p {
  color: rgba(255,255,255,0.88);
  font-size: 0.93rem;
  line-height: 1.7;
  margin: 0;
}

/* CTA BUTTON */
.cta-btn {
  display: inline-block;
  background: var(--coral);
  color: var(--white);
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 2.25rem;
  border-radius: 6px;
  margin-top: 1.5rem;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.04em;
}

.cta-btn:hover {
  background: var(--coral-dark);
  transform: translateY(-2px);
}

.cta-btn.outline {
  background: var(--white);
  color: var(--teal-dark);
  border: 2px solid var(--teal);
}

.cta-btn.outline:hover {
  background: var(--teal);
  color: var(--white);
}

/* COMPARISON (funnel page) */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.compare-col {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.09);
}

.compare-header {
  padding: 1.5rem;
  text-align: center;
}

.compare-header.tidesites-hdr {
  background: var(--teal-dark);
  color: var(--white);
}

.compare-header.tidewise-hdr {
  background: var(--teal-dark);
  color: var(--white);
}

.compare-header h3 {
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.compare-header p {
  font-size: 0.88rem;
  opacity: 0.92;
  margin: 0;
  font-style: italic;
}

.compare-body {
  background: var(--white);
  padding: 1.5rem;
  border: 2px solid var(--teal-light);
  border-top: none;
  border-radius: 0 0 10px 10px;
}

.compare-body ul {
  list-style: none;
  padding: 0;
  margin-bottom: 0;
}

.compare-body ul li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--teal-light);
  font-size: 0.93rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.5;
}

.compare-body ul li:last-child {
  border-bottom: none;
}

.compare-body ul li::before {
  content: "✓";
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.compare-col.ts-col .compare-body ul li::before {
  color: var(--teal);
}

.compare-col.tw-col .compare-body ul li::before {
  color: var(--coral);
}

.compare-cta {
  text-align: center;
  margin-top: 1.5rem;
}

/* CONTACT FORM */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--teal-dark);
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #c5dae0;
  border-radius: 6px;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.93rem;
  color: var(--text);
  transition: border-color 0.2s;
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.submit-btn {
  background: var(--teal);
  color: var(--white);
  border: none;
  padding: 0.85rem 2.5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.04em;
}

.submit-btn:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
}

/* PAGE HEADER (non-index) */
.page-header {
  text-align: center;
  padding: 3.5rem 2rem 2rem;
}

.page-header h1 {
  margin-bottom: 0.75rem;
}

.page-header p {
  max-width: 580px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--text);
}

/* LEGAL MODAL */
.legal-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  color: rgba(255,255,255,0.6);
  font-family: 'Open Sans', sans-serif;
  font-size: 0.8rem;
  padding: 4px 14px;
  cursor: pointer;
  margin-top: 0.75rem;
  transition: border-color 0.2s, color 0.2s;
}
.legal-btn:hover {
  border-color: var(--coral);
  color: var(--coral);
}
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal-overlay.open {
  display: flex;
}
.modal-box {
  background: var(--white);
  border-radius: 10px;
  max-width: 560px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
}
.modal-box h3 {
  color: var(--teal-dark);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.modal-box ul {
  list-style: none;
  padding: 0;
}
.modal-box ul li {
  font-size: 0.93rem;
  color: var(--text);
  line-height: 1.7;
  padding: 0.5rem 0 0.5rem 1.2rem;
  border-bottom: 1px solid var(--teal-light);
  position: relative;
}
.modal-box ul li:last-child {
  border-bottom: none;
}
.modal-box ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--teal);
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text);
  line-height: 1;
  padding: 0 4px;
}
.modal-close:hover {
  color: var(--coral);
}

/* FOOTER */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.65);
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
  line-height: 1.8;
}

footer a {
  color: var(--coral);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.2s;
}

/* RESPONSIVE */
@media (max-width: 680px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--teal-dark);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0.5rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }

  .compare-grid,
  .payment-plan {
    grid-template-columns: 1fr;
  }

  .price-main {
    font-size: 2.6rem;
  }

  .pricing-box {
    padding: 1.5rem;
  }
}
