/*
- * This is a manifest file that'll be compiled into application.css, which will include all the files
- * listed below.
- *
- * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
- * vendor/assets/stylesheets directory can be referenced here using a relative path.
- *
- * You're free to add application-wide styles to this file and they'll appear at the bottom of the
- * compiled file so the styles you add here take precedence over styles defined in any other CSS
- * files in this directory. Styles in this file should be added after the last require_* statement.
- * It is generally better to create a new file per style scope.
- *
- *= require_tree .
- *= require_self
- */

@font-face {
  font-family: 'Fanwood';
  src: url("/assets/fanwood_text-webfont-cb7d46b0.woff") format('woff');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Fanwood';
  src: url("/assets/fanwood_text_italic-webfont-4abd82fa.woff") format('woff');
  font-weight: 400;
  font-style: italic;
}

* {
  font-family: 'Fanwood', serif;
}

body {
  background-color: white;
  color: #232427;
  nav {
    background-color: #4d6253;
    color: #e4e8ee;
    a {
      color: #e4e8ee;
    }

    h1, h2, h3, h4, h5, h6 {
      color: #cfdcee;
    }
  }

  a {
    color: #4d6253;
  }
}

h1, h2, h3, h4, h5, h6 {
  color: #24292f;
}

p {
  color: #303c34;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
}

.btn svg:not(:last-child) {
  margin-right: 8px;
  height: 1em;
  width: 1em;
}

.btn.icon-only {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 12px;
}

.btn-primary {
  background-color: #232427;
  color: #dcece1;
}

.btn-primary:hover {
  background-color: #46494e;
}

.btn-danger {
  background-color: #760b0e;
  color: #e4e8ee;
}

.btn-danger:hover {
  background-color: #8f3d3f;
}

.btn-secondary {
  background-color: transparent;
  color: #907f27;
  border: 2px solid #907f27;
}

.btn-secondary:hover {
  background-color: #907f27;
  color: #e4e8ee;
}

.btn-link {
  background-color: transparent;
  color: #4d6253;
}

.btn-link:hover {
  color: #232427;
  background-color: #e4e8ee;
}

.btn-link-danger {
  background-color: transparent;
  color: #760b0e;
}

.btn-link-danger:hover {
  color: #8f3d3f;
  background-color: #f0ced0;
}

.btn-alt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #64806c;
  color: #e4e8ee;
  border-radius: 12px;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
}

.btn-alt:hover {
  background-color: #4d6253;
}

.btn-alt svg {
  margin-right: 8px;
  height: 1em;
  width: 1em;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 0.875rem;
}

.bg-pattern {
  --s: 80px; /* control the size*/
  --c1: #4d6253;
  --c2: #907f27;

  --_s: calc(2*var(--s)) calc(2*var(--s));
  --_g: 35.36% 35.36% at;
  --_c: #0000 66%,var(--c2) 68% 70%,#0000 72%;

  background:
    radial-gradient(var(--_g) 100% 25%,var(--_c)) var(--s) var(--s)/var(--_s),
    radial-gradient(var(--_g) 0    75%,var(--_c)) var(--s) var(--s)/var(--_s),
    radial-gradient(var(--_g) 100% 25%,var(--_c)) 0 0/var(--_s),
    radial-gradient(var(--_g) 0    75%,var(--_c)) 0 0/var(--_s),
    repeating-conic-gradient(var(--c1) 0 25%,#0000 0 50%) 0 0/var(--_s),
    radial-gradient(var(--_c)) 0 calc(var(--s)/2)/var(--s) var(--s)
    var(--c1);
}

/* Marketing/Guest layout styles */

body.guest {
  background: linear-gradient(135deg, #64806c 0%, #92a0b4 100%);
  background-size: 100% 100vh;
  background-repeat: repeat-y;
  background-attachment: fixed;
  min-height: 100vh;
}

.marketing-page section {
  padding: 80px 0;
  scroll-margin-top: 60px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-section {
  background-color: #f8f9fa;
  text-align: center;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .marketing-page section {
    padding: 40px 0;
  }

  .features-grid,
  .steps {
    grid-template-columns: 1fr;
  }
}

.link-underline::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: white;
  transform-origin: right;
  transform: scaleX(0);
  transition: transform 0.3s ease-out;
}

.link-underline:hover::after {
  transform-origin: left;
  transform: scaleX(1);
}

/* Header styling for scroll effect */
.header {
  background-color: transparent;
  backdrop-filter: blur(0px);
  box-shadow: none;
  transition: all 0.5s ease-in;
  width: 100%;
}

.header.bg-header {
  background-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(50px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 16px;

  #sign-in {
    background-color: #4d6253;
    color: #ffffff;
  }
}

/* Color change for text in the header when bg-header is active */
.header.bg-header h1,
.header.bg-header a,
.header.bg-header a:visited {
  color: #4d6253;
}

.header.bg-header .link-underline::after {
  background-color: #4d6253;
}

/* Thinking animation styles */
.thinking-text {
  display: flex;
  font-style: italic;
}

.thinking-char {
  display: inline-block;
  color: #9ca3af; /* text-gray-400 */
  animation: highlight-char 2s infinite;
}

@keyframes highlight-char {
  0%, 100% { color: #9ca3af; } /* text-gray-400 */
  50% { color: #374151; } /* text-gray-700 */
}
