/* Custom brand overrides - loaded after oat.min.css */

/* ─── Brand primitives ─── */
:root {
  --color-dazzle:   #EDEAE9;
  --color-sand:     #DB8B5A;
  --color-nazar:    #59D9DB;
  --color-grayteal: #679B9C;
  --color-pipe:     #867164;
  --color-earth:    #525C5C;
  --color-industry: #332A25;
}

/* ─── Semantic tokens — light mode ─── */
:root {
  --color-surface:            #F5F7F7;
  --color-surface-low:        #FFFFFF;
  --color-surface-container:  #ECF1F1;
  --color-outline:            #C3D0D0;
  --color-on-surface:         #182222;
  --color-on-surface-variant: #4E6363;
  --color-on-accent:          #3A1F00;
  --color-body:               #525C5C;
  --color-back:               #EDEAE9;
  --color-back-inverted:      #332A25;
  --color-primary:            #00696B;
  --color-secondary:          #5F8E8F;
  --color-tertiary:           #C97A4A;
}

/* ─── Semantic tokens — dark mode ─── */
@media (prefers-color-scheme: dark) {
  :root {
    --color-surface:            #0E1414;
    --color-surface-low:        #171D1D;
    --color-surface-container:  #1B2121;
    --color-outline:            #3C4949;
    --color-on-surface:         #EDEAE9;
    --color-on-surface-variant: #BBC9C9;
    --color-on-accent:          #532200;
    --color-body:               #EDEAE9;
    --color-back:               #332A25;
    --color-back-inverted:      #EDEAE9;
    --color-primary:            #59D9DB;
    --color-secondary:          #679B9C;
    --color-tertiary:           #DB8B5A;
  }
}

/* ─── oat.css variable remaps ─── */
:root {
  --primary: var(--color-primary);
  --primary-foreground: var(--color-on-surface);
  --ring: var(--color-primary);
  --background: #00696B;
  --foreground: #EDEAE9;
}

/* ─── Fade-up animation ─── */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fade-up 0.6s ease-out both;
}

/* ─── Buttons ─── */
:is(button, a).button {
  background-color: var(--color-dazzle);
  color: var(--color-industry);
  border: none;
  font-weight: 700;
  border-radius: 8px;
}

:is(button, a).button:hover {
  background-color: #FFFFFF;
}

:is(button, a).button.rounded {
  background-color: var(--color-dazzle);
  color: var(--color-industry);
  border-radius: 6px;
  height: 44px;
  padding: 0 32px;
  font-weight: 600;
}

:is(button, a).button.rounded:hover {
  background-color: #FFFFFF;
}

:is(button, a).button.secondary {
  background-color: var(--color-sand);
  color: #FFFFFF;
}

:is(button, a).button.secondary:hover {
  background-color: #C97A4A;
}

:is(button, a).button.small {
  border: 2px solid rgba(89, 217, 219, 0.6);
  background-color: transparent;
  color: var(--foreground);
}

:is(button, a).button.small:hover {
  background-color: rgba(237, 234, 233, 0.1);
}

/* Anchors styled as buttons need the box behaviour <button> gets for free. */
a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* ─── Typography ─── */
body {
  font-family: 'Nunito', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
}
h1, h2, h3, h4, h5, h6 { font-family: 'Rokkitt', serif; }

html {
  scroll-behavior: smooth;
}

/* ─── Sticky header ─── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 var(--space-6);
  background-color: rgba(0, 105, 107, 0.8);
  border-bottom: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-logo img {
  display: block;
  height: auto;
}

/* ─── Footer ─── */
.site-footer {
  padding: var(--space-12) var(--space-8);
  background-color: var(--color-surface-low);
  color: var(--color-on-surface);
  border-top: 1px solid var(--color-outline);
}

/* ─── Section spacing ─── */
main section {
  padding: var(--space-12) var(--space-6);
}

main section + section {
  padding-top: 0;
}

/* ─── Hero section ─── */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--space-6) var(--space-14);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 105, 107, 0.95) 0%,
    rgba(0, 105, 107, 0.4) 50%,
    transparent 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.hero-content h1 {
  animation-delay: 0s;
}

.hero-content .tagline {
  animation-delay: 0.15s;
}

.hero-content .hero-actions {
  animation-delay: 0.3s;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}

.hero-available {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.hero-available span {
  font-size: var(--text-7);
  color: rgba(237, 234, 233, 0.7);
  font-weight: 600;
}

.hero-available a {
  color: var(--foreground);
}

.hero-available img {
  display: block;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  margin-bottom: var(--space-4);
  color: #FFFFFF;
  line-height: 1.1;
}

.hero .tagline {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-6);
  max-width: 32rem;
  font-weight: 600;
  line-height: 1.6;
}

/* ─── Features list (legacy) ─── */
.features-list {
  list-style: none;
  padding: 0;
}

.features-list li {
  margin-bottom: var(--space-6);
}

.features-list h3 {
  margin-bottom: var(--space-2);
}

/* ─── Site navigation ─── */
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.site-nav a {
  text-decoration: none;
  color: var(--foreground);
  font-weight: 600;
}

.site-nav a:hover {
  color: var(--color-nazar);
}



/* ─── Footer layout ─── */
.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-8);
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-brand {
  flex-shrink: 0;
}

.site-logo-footer img {
  display: block;
}

.footer-divider {
  width: 1px;
  height: 100px;
  background-color: var(--color-outline);
  flex-shrink: 0;
  align-self: center;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  color: var(--color-on-surface-variant);
  text-decoration: none;
  font-family: 'Nunito', sans-serif;
  font-size: var(--text-6);
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--color-on-surface);
}

.footer-app {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  text-align: center;
}

.footer-app-heading {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: var(--text-5);
  margin: 0;
  color: var(--color-on-surface);
}

.app-store-badge img {
  display: block;
  height: 40px;
  width: auto;
}

.copyright {
  color: var(--color-on-surface-variant);
  font-size: var(--text-7);
  margin: var(--space-3) 0 0;
}

@media (max-width: 640px) {
  .footer-grid {
    flex-direction: column;
    gap: var(--space-6);
  }

  .footer-divider {
    display: none;
  }

  .footer-app {
    align-items: flex-start;
  }
}

/* ─── Waitlist dialog ─── */

#waitlist-dialog,
#waitlist-dialog * {
  font-family: 'Nunito', sans-serif;
  color: var(--color-on-surface);
}

#waitlist-dialog h2 {
  font-family: 'Rokkitt', serif;
}

#waitlist-dialog input[type="email"] {
  background-color: #FFFFFF;
  color: var(--color-industry);
  border: 1px solid var(--color-outline);
}

#waitlist-dialog input[type="email"]::placeholder {
  color: var(--color-grayteal);
}

#waitlist-dialog button.button,
#waitlist-dialog button[type="submit"] {
  background-color: var(--color-primary);
  color: #FFFFFF;
  border: none;
}

#waitlist-dialog button.button:hover,
#waitlist-dialog button[type="submit"]:hover {
  background-color: #005456;
}

#waitlist-dialog label {
  color: var(--color-earth);
}

#waitlist-dialog .dialog-subtitle {
}

#waitlist-dialog {
  max-width: 28rem;
  width: calc(100% - var(--space-6) * 2);
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  padding: var(--space-6);
}

#waitlist-dialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.dialog-header h2 {
  font-family: 'Rokkitt', serif;
  margin: 0;
  font-size: var(--text-3);
}

.dialog-close {
  appearance: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: var(--text-4);
  color: var(--muted-foreground);
  padding: 0;
  line-height: 1;
}

.dialog-subtitle {
  color: var(--muted-foreground);
  font-size: var(--text-7);
  margin-bottom: var(--space-6);
}

/* Shake animation for error state */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-8px); }
  40%      { transform: translateX(8px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(4px); }
}

.shake {
  animation: shake 0.4s ease;
}

#waitlist-dialog .error:empty {
  display: none;
}

#waitlist-dialog .error {
  color: var(--danger);
  font-size: var(--text-7);
  margin-top: var(--space-2);
}

/* ─── Success card ─── */

.success-card {
  text-align: center;
}

.mascot-img {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-full);
  object-fit: cover;
  margin-bottom: var(--space-4);
  border: 1px solid var(--color-on-surface);
}

.success-card h2 {
  font-size: var(--text-3);
  margin-bottom: var(--space-2);
  color: var(--color-on-surface);
}

.success-card p {
  color: var(--color-on-surface);
  font-size: var(--text-7);
  margin-bottom: var(--space-6);
}

.ios-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  text-align: left;
  margin-bottom: var(--space-6);
  text-decoration: none;
  color: inherit;
  transition: background-color 0.15s;
}

.ios-card:hover {
  background-color: var(--faint);
}

.ios-card-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.ios-card-text {
  display: flex;
  flex-direction: column;
}

.ios-card-title {
  font-weight: var(--font-semibold);
  font-size: var(--text-6);
}

.ios-card-subtitle {
  color: var(--muted-foreground);
  font-size: var(--text-7);
}

/* ─── Superpowers section ─── */
.superpowers {
  text-align: center;
  padding: var(--space-16) var(--space-6);
}

.superpowers h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: var(--space-8);
  color: var(--foreground);
}

.sp-tabbed {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 var(--space-4);
}

.sp-tab-group {
  display: contents;
}

.sp-option {
  order: 1;
}

.sp-detail {
  order: 2;
  flex: 0 0 100%;
  width: 100%;
  max-width: 1200px;
}

.sp-option {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background-color: rgba(237, 234, 233, 0.1);
  border: none;
  border-radius: 8pt 8pt 0 0;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s;
  color: var(--foreground);
  font-family: inherit;
  font-size: var(--text-6);
  font-weight: 600;
  transform: translateY(2px);
}

.sp-option:hover {
  background-color: rgba(237, 234, 233, 0.15);
  transform: translateY(0);
}

.sp-option[aria-expanded="true"] {
  background-color: var(--color-nazar);
  color: var(--color-industry);
}

.sp-icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.sp-label {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: var(--text-5);
  flex: 1;
  text-align: left;
  white-space: nowrap;
}

.sp-option::after {
  content: '\2192';
  font-size: var(--text-6);
  color: rgba(237, 234, 233, 0.5);
  flex-shrink: 0;
}

.sp-option[aria-expanded="true"]::after {
  color: var(--color-industry);
}

.sp-detail {
  margin: 0 auto;
  padding: var(--space-8);
  background: var(--color-nazar);
  border-radius: 8pt;
  text-align: left;
  color: var(--color-industry);
}

.sp-detail h3 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  margin-bottom: var(--space-2);
  text-align: center;
}

.sp-intro {
  text-align: center;
  opacity: 0.7;
  font-size: var(--text-3);
  font-weight: 500;
  margin-bottom: var(--space-6);
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.sp-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.sp-card {
  background-color: var(--background);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: none;
  border-radius: 12px;
  padding: var(--space-5);
  transition: background-color 0.2s;
}

.sp-card:hover {
  background-color: var(--color-sand);
}

.sp-card h4 {
  font-family: 'Nunito', sans-serif;
  font-size: var(--text-4);
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--foreground);
}

.sp-card p {
  color: rgba(237, 234, 233, 0.7);
  font-size: var(--text-5);
  line-height: 1.6;
}

/* Mobile: Accordion layout */
@media (max-width: 640px) {
  .sp-tabbed {
    display: block;
  }

  .sp-tab-group {
    display: block;
  }

  .sp-option {
    width: 100%;
    border-radius: 8pt;
    margin-bottom: var(--space-2);
  }

  .sp-option[aria-expanded="true"] {
    border-radius: 8pt 8pt 0 0;
    margin-bottom: 0;
  }

  .sp-detail {
    margin-bottom: var(--space-4);
    border-radius: 0 0 8pt 8pt;
  }

  .sp-detail[hidden] {
    display: none;
  }

  .sp-cards {
    grid-template-columns: 1fr;
  }
}

/* ─── Feature cards grid ─── */
.features {
  text-align: center;
}

.features h2 {
  margin-bottom: var(--space-8);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  text-align: left;
}

.feature-card {
  background-color: rgba(237, 234, 233, 0.1);
  border: 1px solid rgba(237, 234, 233, 0.15);
  border-radius: 18px;
  padding: var(--space-7);
}

.feature-card h3 {
  margin-bottom: var(--space-2);
}

@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Emotional section ─── */
.emotional-section {
  display: flex;
  gap: var(--space-9);
  align-items: center;
}

.emotional-text {
  flex: 1;
}

.emotional-section img {
  max-width: 560px;
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
}

@media (max-width: 640px) {
  .emotional-section {
    flex-direction: column;
  }
}

/* ─── Quote section ─── */
.quote-section {
  border-top: 1px solid rgba(237, 234, 233, 0.15);
  border-bottom: 1px solid rgba(237, 234, 233, 0.15);
  text-align: center;
  padding: var(--space-16) var(--space-6);
}

.quote-section blockquote {
  font-family: 'Rokkitt', serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  max-width: 62.5rem;
  margin: 0 auto;
}

.quote-section .philosophy-label {
  font-family: 'Nunito', sans-serif;
  font-size: var(--text-8);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-top: var(--space-6);
}

/* ─── Bottom CTA ─── */
.bottom-cta {
  padding: var(--space-16) var(--space-6);
  background-color: var(--color-surface);
  color: var(--color-on-surface);
}

.cta-layout {
  display: flex;
  align-items: center;
  gap: var(--space-10);
  max-width: 48rem;
  margin: 0 auto;
}

.cta-pelly {
  width: 200px;
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.15));
}

.cta-content {
  flex: 1;
}

.cta-content h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: var(--space-3);
  color: var(--color-on-surface);
}

.cta-content p {
  color: var(--color-on-surface-variant);
  font-size: var(--text-5);
  margin-bottom: var(--space-6);
  max-width: 28rem;
}

@media (max-width: 640px) {
  .cta-layout {
    flex-direction: column;
    text-align: center;
  }

  .cta-pelly {
    width: 160px;
  }

  .cta-content p {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ─── Email capture form ─── */
.capture-row {
  display: flex;
  gap: var(--space-3);
  max-width: 28rem;
}

.capture-row input[type="email"] {
  flex: 1;
  min-width: 0;
  background-color: #FFFFFF;
  color: var(--color-on-surface);
  border: 1px solid var(--color-outline);
}

.capture-row input[type="email"]::placeholder {
  color: var(--color-on-surface-variant);
}

.capture-row button.button {
  background-color: var(--color-sand);
  color: #FFFFFF;
  border: none;
}

.capture-row button.button:hover {
  background-color: #C97A4A;
}

#email-capture-form .error:empty {
  display: none;
}

#email-capture-form .error {
  color: var(--danger);
  font-size: var(--text-7);
  margin-top: var(--space-2);
  text-align: center;
}

.success-msg {
  color: var(--color-primary);
  font-weight: 600;
  text-align: center;
  padding: var(--space-4) 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 640px) {
  .capture-row {
    flex-direction: column;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ─── About page ─── */
.about-hero {
  text-align: center;
  padding-top: var(--space-14);
}

.about-hero h1 {
  font-size: var(--text-1);
  margin-bottom: var(--space-4);
}

.about-hero > p {
  color: var(--muted-foreground);
  font-size: var(--text-4);
  margin-bottom: var(--space-8);
}

.about-hero img {
  max-width: 560px;
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
}

.about-features {
  text-align: center;
}

.about-features h2 {
  margin-bottom: var(--space-8);
}

.about-problem {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.about-problem h2 {
  margin-bottom: var(--space-4);
}

.about-problem p {
  color: var(--muted-foreground);
  font-size: var(--text-5);
  line-height: 1.7;
}

.about-problem p + p {
  margin-top: var(--space-4);
}

/* ─── Waitlist page ─── */
.waitlist-page {
  text-align: center;
}

.waitlist-hero {
  padding-top: var(--space-14);
  padding-bottom: var(--space-6);
}

.waitlist-mascot {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-full);
  object-fit: cover;
  margin-bottom: var(--space-6);
}

.waitlist-hero h1 {
  font-size: var(--text-1);
  margin-bottom: var(--space-3);
}

.waitlist-hero p {
  color: var(--muted-foreground);
  font-size: var(--text-4);
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.waitlist-form-section {
  padding-bottom: var(--space-16);
}

/* ─── Universal Link landing ─── */
.link-status:empty {
  display: none;
}
