/* ==========================================================================
   QS Studio — Production Styles (based on official design system)
   ========================================================================== */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Barlow+Condensed:wght@400;500;600;700&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-VariableFont_opsz_wght.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Italic-VariableFont_opsz_wght.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* --- Design Tokens --- */
:root {
  --ink-1000: #1F1F1E;
  --ink-900:  #1C2B2B;
  --ink-800:  #2A3A3A;
  --ink-700:  #4A5656;
  --ink-600:  #6E7676;

  --paper-qs: #F7F7F6;

  --lavender-500: #B4B2BC;

  --font-display: 'Fraunces', Georgia, serif;
  --font-lockup:  'Barlow Condensed', 'Helvetica Neue Condensed', sans-serif;
  --font-sans:    'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  --rule: rgba(28, 43, 43, 0.18);
  --rule-strong: rgba(28, 43, 43, 0.4);

  /* Very subtle fractal noise for breaking digital flatness (extremely low opacity) */
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.028'/%3E%3C/svg%3E");

  /* Layout tokens */
  --container-max: 1100px;
  --container-padding: clamp(20px, 5vw, 120px);
}

/* --- Base --- */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.05vw, 16px);
  line-height: 1.6;
  color: var(--ink-900);
  background-color: var(--paper-qs);
  background-image: var(--noise);
  background-repeat: repeat;
  background-size: 160px 160px;
}

/* Better focus visibility for accessibility */
:focus-visible {
  outline: 2px solid var(--lavender-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Typography --- */
h1, .display {
  font-family: var(--font-display);
  font-variation-settings: 'SOFT' 30, 'opsz' 30;
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.04em;
}

.eyebrow {
  font-family: var(--font-lockup);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-600);
}

/* --- Fixed Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: var(--paper-qs);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--container-padding);
  z-index: 100;
  box-shadow: 0 1px 0 0 rgba(28, 43, 43, 0.04);
}

@media (max-width: 768px) {
  .header {
    height: 64px;
  }
}

@media (max-width: 480px) {
  .header {
    height: 58px;
  }
  .qs-mark {
    font-size: 17px;
    gap: 5px;
  }
  .get-in-touch-btn {
    padding: 7px 14px;
    font-size: 12px;
    min-height: 36px; /* better touch target */
  }
}

.qs-mark {
  font-family: var(--font-lockup);
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--ink-900);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 7px;
  transition: opacity 0.2s ease;
}

.qs-mark:hover {
  opacity: 0.8;
}

.qs-mark:active {
  opacity: 0.7;
}

.qs-bold { 
  font-weight: 700; 
}

.qs-light { 
  font-weight: 400; 
  letter-spacing: 0.16em; 
}

.qs-dot {
  width: 5.5px;
  height: 5.5px;
  background: var(--lavender-500);
  border-radius: 999px;
  display: inline-block;
  margin-left: 3px;
  margin-bottom: 1.5px;
  flex-shrink: 0;
}

.get-in-touch-btn {
  background: var(--ink-900);
  color: var(--paper-qs);
  border: 0;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.22s ease, transform 0.1s ease;
}

.get-in-touch-btn:hover {
  background: var(--ink-800);
}

.get-in-touch-btn:active {
  transform: scale(0.985);
}

/* --- Hero --- */
.hero {
  padding: 160px var(--container-padding) 140px;
  max-width: var(--container-max);
  margin: 0 auto;
}

/* Desktop: Hero fills the viewport so only it is visible initially */
@media (min-width: 1024px) {
  .hero {
    min-height: 100dvh;
    padding-top: 0;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero-content {
    padding-top: 80px;   /* breathing room below fixed header */
    padding-bottom: 60px;
  }

  .hero-title {
    margin-bottom: 32px;
  }
}

.hero-title {
  font-size: clamp(42px, 7.5vw, 86px);
  margin: 0 0 48px;
}

.hero-sub {
  font-size: clamp(16px, 2.2vw, 22px);
  max-width: 36ch;
  color: var(--ink-700);
}

.hero-title .lavender {
  color: var(--lavender-500);
}

/* Subtle scroll indicator on desktop — only the Hero is initially visible */
.hero-scroll-hint {
  display: none;
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-600);
  opacity: 0.6;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .hero {
    position: relative; /* for absolute positioning of hint */
  }
  .hero-scroll-hint {
    display: block;
  }
}

/* --- Sections --- */
.section {
  padding: 0 120px 120px;
}

.notes {
  padding: 140px var(--container-padding);
  background: var(--paper-qs);
  max-width: var(--container-max);
  margin: 0 auto;
}

/* On large desktop, bring Notes closer after the full-viewport Hero */
@media (min-width: 1024px) {
  .notes {
    padding-top: 80px;
  }
}

@media (max-width: 768px) {
  .notes {
    padding: 80px var(--container-padding);
  }
}

@media (max-width: 480px) {
  .notes {
    padding: 60px var(--container-padding);
  }
  .waitlist-card {
    padding: 20px 16px;
  }
}

.notes-header {
  font-family: var(--font-lockup);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-600);
  margin-bottom: 14px;
}

/* --- Junto Waitlist Card (Premium Visual) --- */
.waitlist-card {
  display: flex;
  gap: 40px;
  max-width: 820px;
  padding: 36px 40px;
  background-color: #fff;
  background-image: var(--noise);
  background-repeat: repeat;
  background-size: 160px 160px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow:
    0 1px 0 0 rgba(28, 43, 43, 0.05),
    0 10px 30px rgba(28, 43, 43, 0.06);
  position: relative;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .waitlist-card {
    flex-direction: column;
    gap: 24px;
    padding: 28px 24px;
  }
  .waitlist-image {
    width: 100%;
    height: 155px;
  }
}

/* Subtle inner treatment — soft top highlight for depth */
.waitlist-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  pointer-events: none;
}

.waitlist-image {
  flex-shrink: 0;
  width: 240px;
  height: 175px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(28, 43, 43, 0.08);
  background: #F3F1EC; /* warm paper fallback while image loads */
}

/* Real screenshot preview from Junto app (Lisboa trip card) */
.junto-preview-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%; /* bottom-aligned to feature the flight card + location UI */
}

.waitlist-content .waitlist-label {
  font-family: var(--font-lockup);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lavender-500);
  margin-bottom: 6px;
}

.waitlist-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 6px;
}

.waitlist-desc {
  font-size: 15.5px;
  color: var(--ink-700);
  margin-bottom: 16px;
}

.waitlist-link {
  color: var(--ink-700);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.waitlist-link:hover {
  color: var(--ink-900);
  transform: translateX(1px);
}

.waitlist-link:active {
  transform: translateX(2px);
}

.waitlist-url {
  font-size: 12px;
  color: var(--ink-600);
  margin-top: 6px;
  word-break: break-all;
}

/* --- Contact --- */
.contact {
  padding: 80px var(--container-padding) 96px;
  max-width: var(--container-max);
  margin: 0 auto;
}

@media (max-width: 768px) {
  .contact {
    padding: 60px 24px 80px;
  }
  .contact-title {
    font-size: 32px;
  }
}

@media (max-width: 480px) {
  .contact {
    padding: 50px 16px 60px;
  }
  .contact-title {
    font-size: 28px;
  }
  .contact-body {
    font-size: 15px;
    margin-bottom: 28px;
  }
}

.contact-eyebrow {
  font-family: var(--font-lockup);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-600);
  margin-bottom: 18px;
}

.contact-title {
  font-family: var(--font-display);
  font-variation-settings: 'SOFT' 30, 'opsz' 30;
  font-weight: 500;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink-900);
  margin: 0 0 16px;
  max-width: 22ch;
}

.contact-body {
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.55;
  color: var(--ink-700);
  max-width: 56ch;
  margin-bottom: 32px;
}

/* Contact Form */
.qs-contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 32px;
  padding: 28px 32px;
  background-color: #fff;
  background-image: var(--noise);
  background-repeat: repeat;
  background-size: 160px 160px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

@media (max-width: 640px) {
  .qs-contact-form {
    grid-template-columns: 1fr;
    gap: 18px 0;
    padding: 20px 20px;
  }
  .qs-contact-form label {
    font-size: 10px;
  }
  .qs-contact-form input,
  .qs-contact-form textarea {
    font-size: 15px;
    padding: 6px 2px;
  }
}

.qs-contact-form .field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.qs-contact-form .span-2 {
  grid-column: 1 / -1;
}

.qs-contact-form label {
  font-family: var(--font-lockup);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-600);
  padding-left: 2px;
}

.qs-contact-form input,
.qs-contact-form textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  padding: 10px 2px 6px;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--ink-900);
  outline: none;
  border-radius: 0;
  resize: vertical;
  transition: border-color 0.2s ease, border-width 0.2s ease, background 0.2s ease;
}

.qs-contact-form input:focus,
.qs-contact-form textarea:focus {
  border-bottom-color: var(--lavender-500);
  border-bottom-width: 2px;
  padding-bottom: 5px;
  background: rgba(247, 247, 246, 0.6); /* subtle lift on focus */
}

.actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 4px;
}

.qs-btn {
  background: var(--ink-900);
  color: var(--paper-qs);
  border: 0;
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.22s ease, transform 0.1s ease, opacity 0.2s ease;
}

.qs-btn:hover {
  background: var(--ink-800);
}

.qs-btn:active {
  transform: scale(0.985);
}

.qs-btn.loading {
  opacity: 0.7;
  pointer-events: none;
  cursor: wait;
}

.qs-btn.loading::after {
  content: "…";
  margin-left: 6px;
}

.qs-contact-or {
  font-size: 13px;
  color: var(--ink-600);
}

.qs-contact-or a {
  color: var(--ink-900);
  text-decoration-color: var(--lavender-500);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.qs-contact-or a:hover {
  color: var(--ink-800);
  text-decoration-color: var(--ink-900);
}

.qs-contact-or a:active {
  color: var(--ink-700);
}

.qs-contact-sent {
  padding: 32px 32px 28px;
  background-color: #fff;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-top: -1px;
}

.qs-contact-sent p {
  font-family: var(--font-display);
  font-variation-settings: 'SOFT' 30, 'opsz' 30;
  font-size: 24px;
  max-width: 26ch;
  margin: 8px 0 20px;
  color: var(--ink-800);
}

.qs-btn-ghost {
  background: transparent;
  border: 1px solid var(--rule-strong);
  color: var(--ink-900);
  padding: 11px 22px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.1s ease;
  min-height: 40px;
}

.qs-btn-ghost:hover {
  background: rgba(28, 43, 43, 0.04);
  border-color: var(--ink-900);
}

.qs-btn-ghost:active {
  transform: scale(0.985);
  background: rgba(28, 43, 43, 0.08);
}

/* Form error messages */
.form-error {
  color: #B04A3A;
  font-size: 13px;
  margin-top: 12px;
  padding: 8px 12px;
  background: rgba(176, 74, 58, 0.08);
  border-radius: 4px;
}

/* --- Footer --- */
.footer {
  padding: 48px var(--container-padding);
  background: var(--ink-1000);
  color: #F3F1EC;
  font-size: 14px;
  box-shadow: inset 0 1px 0 rgba(243, 241, 236, 0.06);
}

@media (max-width: 768px) {
  .footer {
    padding: 40px 24px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 32px 16px;
    font-size: 12px;
  }
}

.footer-one-liner {
  text-align: center;
  letter-spacing: 0.02em;
}

.footer-dot {
  width: 6px;
  height: 6px;
  background: var(--lavender-500);
  border-radius: 999px;
  display: inline-block;
  margin: 0 12px;
  vertical-align: middle;
}

.footer-legal {
  text-align: center;
  margin-top: 12px;
  font-size: 12px;
  opacity: 0.7;
}

.footer-legal a {
  color: inherit;
  text-decoration: underline;
}

.footer-legal a:hover {
  opacity: 0.85;
}

