/* =============================================================================
   SECONDSENDER WEBSITE STYLES
   Professional, clean design inspired by HubSpot's UI patterns
   ============================================================================= */

/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-sidebar: #1B5E20;
  --color-sidebar-hover: #2D6A4F;
  --color-accent: #85BB65;
  --color-accent-dark: #6B9651;
  --color-text-dark: #333;
  --color-text-light: #666;
  --color-bg: #f8f9fa;
  --color-white: #ffffff;
  --color-border: #e3e6f0;
  --color-success: #85BB65;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text-dark);
  background: var(--color-bg);
  display: flex;
  min-height: 100vh;
}

/* FIXED LOGO */
.logo-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 80px;
  height: 80px;
  background: var(--color-sidebar);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.logo-image-fixed {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 4px;
}

/* SIDEBAR NAVIGATION */
.sidebar {
  width: 80px;
  background: var(--color-sidebar);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  gap: 40px;
  position: fixed;
  height: calc(100vh - 80px);
  left: 0;
  top: 80px;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
}

.sidebar-icon {
  width: 50px;
  height: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 24px;
  cursor: pointer;
}

.sidebar-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
}

.sidebar-label {
  font-size: 10px;
  font-weight: 600;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-icon:hover {
  background: var(--color-sidebar-hover);
  color: var(--color-white);
}

.sidebar-icon.active {
  background: var(--color-accent);
  color: var(--color-white);
}

/* MAIN CONTAINER */
.container {
  margin-left: 80px;
  width: calc(100% - 80px);
  display: flex;
  flex-direction: column;
  margin-top: 0;
}

/* HEADER */
.header {
  background: var(--color-sidebar);
  border-bottom: none;
  padding: 20px 40px 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: none;
  position: fixed;
  top: 0;
  left: 80px;
  right: 0;
  z-index: 100;
  width: calc(100% - 80px);
  height: 80px;
  align-items: center;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 0;
}

.logo-container > div {
  color: white;
}

.logo-container strong {
  color: white;
  font-size: 16px;
  display: block;
}

.logo {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-weight: bold;
  font-size: 24px;
}

.logo-image {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: contain;
}

.tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  max-width: 400px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-indicator {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  min-width: 60px;
  flex: 0 0 auto;
}

.clock {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  min-width: 200px;
  text-align: right;
}

/* CONTENT AREA */
.content {
  flex: 1;
  padding: 40px;
  padding-top: 120px;
  background: var(--color-bg);
  overflow-y: auto;
  margin-top: 0;
}

.content-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* MODAL */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 700px;
  display: flex;
  max-height: 80vh;
  overflow: hidden;
  position: relative;
}

.modal-left {
  flex: 0 0 35%;
  background: var(--color-sidebar);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.modal-left img {
  width: 80%;
  max-width: 150px;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}

.modal-right {
  flex: 1;
  padding: 40px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  font-size: 40px;
  color: white;
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
  padding: 0;
  line-height: 1;
  border-radius: 4px;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  transform: scale(1.1);
}

.modal-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text-dark);
  white-space: pre-line;
}

@media (max-width: 768px) {
  .modal {
    flex-direction: column;
    width: 95%;
    max-height: 90vh;
  }

  .modal-left {
    flex: 0 0 120px;
    padding: 20px;
  }

  .modal-right {
    padding: 30px;
  }

  .modal-close {
    top: 10px;
    right: 10px;
    font-size: 32px;
    width: 45px;
    height: 45px;
  }

  .modal-text {
    font-size: 13px;
  }
}

/* HERO SECTION */
.hero {
  background: var(--color-white);
  border-radius: 8px;
  padding: 20px 40px;
  margin-bottom: 40px;
  border-left: 4px solid var(--color-accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.hero h1 {
  font-size: 36px;
  color: var(--color-text-dark);
  margin-bottom: 12px;
  font-weight: 600;
}

.hero p {
  font-size: 18px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 24px;
}

.hero .disclaimer {
  font-size: 12px;
  color: var(--color-text-light);
  font-style: italic;
  margin-bottom: 24px;
  line-height: 1.5;
}

.hero-cta {
  display: block;
  width: fit-content;
  margin: 8px auto 0;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.hero-cta:hover {
  background: var(--color-accent-dark);
}

/* FEATURES GRID */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.feature-card {
  background: var(--color-white);
  border-radius: 8px;
  padding: 12px 16px 8px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.feature-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.feature-header h3 {
  margin: 0;
  line-height: 1.2;
  display: flex;
  align-items: center;
}

.feature-icon {
  font-size: 32px;
  color: var(--color-accent);
  margin-bottom: 0;
  flex-shrink: 0;
}

.feature-card h3 {
  font-size: 18px;
  color: var(--color-text-dark);
  margin: 0;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.2;
}

.feature-card p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* FORM & FAQ 2-COLUMN GRID */
.form-faq-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.beta-form-section,
.beta-faq {
  background: var(--color-white);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.beta-form-section h2,
.beta-faq h2 {
  font-size: 20px;
  color: var(--color-text-dark);
  margin-bottom: 16px;
  font-weight: 600;
}

/* FAQ SECTION */
.faq-section {
  background: var(--color-white);
  border-radius: 8px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-section h2 {
  font-size: 24px;
  color: var(--color-text-dark);
  margin-bottom: 32px;
  font-weight: 600;
}

.faq-item {
  margin-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 20px;
}

.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.faq-question {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-toggle {
  font-size: 20px;
  color: var(--color-accent);
  transition: transform 0.3s ease;
}

.faq-toggle.open {
  transform: rotate(180deg);
}

.faq-answer {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-top: 12px;
  display: none;
}

.faq-answer.open {
  display: block;
}

/* CONTACT SECTION */
.contact-section {
  background: var(--color-white);
  border-radius: 8px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contact-section h2 {
  font-size: 24px;
  color: var(--color-text-dark);
  margin-bottom: 24px;
  font-weight: 600;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
}

.contact-item {
  padding: 20px;
  background: var(--color-bg);
  border-radius: 6px;
}

.contact-item-icon {
  font-size: 28px;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.contact-item-label {
  font-size: 13px;
  color: var(--color-text-light);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 8px;
}

.contact-item-value {
  font-size: 16px;
  color: var(--color-text-dark);
  font-weight: 500;
}

.contact-item-link {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item-link:hover {
  color: var(--color-accent-dark);
}

/* DOCS SECTION */
.docs-section {
  background: var(--color-white);
  border-radius: 8px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.docs-section h2 {
  font-size: 24px;
  color: var(--color-text-dark);
  margin-bottom: 24px;
  font-weight: 600;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.doc-card {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 24px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.doc-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 2px 12px rgba(0, 164, 166, 0.1);
}

.doc-icon {
  font-size: 28px;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.doc-card h3 {
  font-size: 16px;
  color: var(--color-text-dark);
  font-weight: 600;
  margin-bottom: 8px;
}

.doc-card p {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* BETA PAGE STYLES */
.beta-value {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.value-item {
  background: var(--color-white);
  padding: 32px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.value-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.value-header h3 {
  margin: 0;
  line-height: 1.2;
  display: flex;
  align-items: center;
}

.value-icon {
  font-size: 40px;
  color: var(--color-accent);
  margin-bottom: 0;
  flex-shrink: 0;
}

.value-item h3 {
  font-size: 18px;
  color: var(--color-text-dark);
  margin: 0;
  font-weight: 600;
}

.value-item p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin: 0;
}

/* BETA FORM SECTION */
.beta-form-section {
  background: var(--color-white);
  border-radius: 8px;
  padding: 40px;
  margin-bottom: 48px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.beta-form-section h2 {
  font-size: 24px;
  color: var(--color-text-dark);
  margin-bottom: 8px;
  font-weight: 600;
}

.form-subtitle {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 32px;
}

.beta-form {
  max-width: 500px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 8px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 14px;
  font-family: var(--font-sans);
  color: var(--color-text-dark);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: var(--color-white);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 164, 166, 0.1);
}

.form-submit {
  width: 100%;
  padding: 14px 24px;
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  margin-top: 16px;
  margin-bottom: 16px;
}

.form-submit:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
}

.form-submit:active {
  transform: translateY(0);
}

.form-disclaimer {
  font-size: 12px;
  color: var(--color-text-light);
  margin: 0;
  text-align: center;
}

/* FORM SUCCESS MESSAGE */
.form-success {
  background: #f0f7f4;
  border: 2px solid var(--color-accent);
  border-radius: 8px;
  padding: 40px;
  text-align: center;
}

.success-content {
  max-width: 400px;
  margin: 0 auto;
}

.success-content i {
  font-size: 48px;
  color: var(--color-accent);
  display: block;
  margin-bottom: 16px;
}

.success-content h3 {
  font-size: 22px;
  color: var(--color-text-dark);
  margin-bottom: 12px;
  font-weight: 600;
}

.success-content p {
  font-size: 14px;
  color: var(--color-text-dark);
  line-height: 1.6;
  margin-bottom: 8px;
}

.success-content p:last-child {
  margin-bottom: 0;
}

/* BETA FAQ */
.beta-faq {
  background: var(--color-white);
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.beta-faq h2 {
  font-size: 24px;
  color: var(--color-text-dark);
  margin-bottom: 32px;
  font-weight: 600;
}

.faq-container {
  max-width: 600px;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 20px 0;
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-dark);
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--color-accent);
}

.faq-question i {
  font-size: 12px;
  color: var(--color-text-light);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-answer p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin: 0;
}

.faq-answer a {
  color: var(--color-accent);
  text-decoration: none;
}

.faq-answer a:hover {
  text-decoration: underline;
}

/* RESPONSIVE FOR BETA PAGE */
@media (max-width: 768px) {
  .beta-value {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .value-item {
    padding: 24px;
  }

  .value-header h3 {
    white-space: normal;
    font-size: 16px;
  }

  .beta-form-section {
    padding: 24px;
  }

  .beta-faq {
    padding: 24px;
  }

  .beta-form {
    max-width: 100%;
  }

  .faq-container {
    max-width: 100%;
  }

  .logo-fixed {
    width: 60px;
    height: 45px;
  }

  .logo-image-fixed {
    width: 32px;
    height: 32px;
    border-radius: 4px;
  }

  .sidebar {
    width: 60px;
    gap: 20px;
    top: 45px;
    height: calc(100vh - 45px);
  }

  .sidebar-label {
    display: block;
  }

  .container {
    margin-left: 60px;
    width: calc(100% - 60px);
  }

  .sidebar-icon {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }

  .header {
    left: 60px;
    width: calc(100% - 60px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 8px;
    gap: 8px;
    height: auto;
  }

  .header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    order: 1;
  }

  .logo-container {
    gap: 6px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }

  .logo-container > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .logo-container strong {
    font-size: 12px;
    white-space: nowrap;
    line-height: 1.2;
  }

  .tagline {
    font-size: 10px;
    white-space: normal;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.3;
  }

  .logo-container > div > .tagline {
    flex-basis: 100%;
    width: 100%;
    order: 3;
    margin: 4px 0 0 0;
    padding: 0;
  }

  .header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    order: 2;
  }

  .page-indicator {
    font-size: 11px;
    padding: 0;
    background: transparent;
    white-space: nowrap;
  }

  .clock {
    font-size: 11px;
    min-width: auto;
    text-align: left;
    white-space: nowrap;
    margin-left: auto;
  }

  .header-right {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .page-indicator {
    font-size: 11px;
    padding: 0;
    background: none;
    white-space: nowrap;
    min-width: 40px;
    flex: 0 0 auto;
  }

  .clock {
    font-size: 11px;
    min-width: auto;
    white-space: nowrap;
  }

  .content {
    padding: 24px;
    padding-top: 100px;
  }

  .hero {
    padding: 24px 20px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero p {
    font-size: 14px;
  }

  .hero .disclaimer {
    font-size: 11px;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-card {
    padding: 20px 16px;
    min-height: auto;
  }

  .feature-header {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
  }

  .feature-header h3 {
    margin-bottom: 0;
  }

  .feature-card h3 {
    white-space: normal;
    font-size: 16px;
  }

  .feature-icon {
    margin-bottom: 0;
  }
}
