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

:root {
  --tiger: #D02B0F;
  --tiger-deep: #A82214;
  --tiger-hot: #D02B0F;
  --nocturne: #5D2A6C;
  --nocturne-deep: #3E1B4A;
  --mulberry: #8A2A46;
  --cream: #F5EEE3;
  --cream-deep: #EAE0CF;
  --paper: #FBF7F0;
  --ink: #0F0B10;
  --ink-soft: #1A1618;
  --charcoal: #2B2428;
  --line: rgba(255,255,255,0.08);
  --ink-line: rgba(15,11,16,0.08);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --container: 1240px;
}

body {
  font-family: var(--font-sans);
  background: var(--ink);
  color: var(--paper);
  line-height: 1.55;
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15,11,16,0.85);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

main {
  margin: 0 auto;
}

footer {
  padding: 2rem 2.5rem;
  color: var(--paper);
}

footer a {
  white-space: nowrap;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input {
  font: inherit;
}

nav {
  grid-column: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}


.inner-header-wrap {
  display: grid;
  grid-template-columns: 1fr min-content;
  align-items: center;
  gap: 1.5rem;
  padding: 1.35rem 1rem;
  max-width: var(--container);
  margin-inline: auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo img {
  width: 2rem;
  height: 2rem;
  border-radius: 6px;
}
.nav-logo-text {
  font-weight: 700;
  letter-spacing: -0.3px;
  font-size: 17px;
}
.nav-beta {
  font-size: 10px;
  padding: 3px 7px;
  background: var(--tiger);
  color: var(--paper);
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 1.2px;
}
.nav-cta {
  background: var(--tiger);
  text-wrap: nowrap;
  padding: 0.5rem 1rem;
  border-radius: 7px;
  font-weight: 600;
  transition: background .15s, transform .15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-cta:hover {
  background: var(--tiger-deep);
  transform: translateY(-1px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(2rem, 1fr) minmax(25%, 580px) minmax(25%, 580px) minmax(2rem, 1fr);
  margin-inline: auto;
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 8rem) 0 clamp(64px, 10vw, 112px);
  background:
    radial-gradient(circle at 45% 120%, rgba(93,42,108,0.55), transparent 75%),
    var(--ink);
}

.hero > div {
  grid-column: 2;
  margin-inline-end: 3rem;
}

.hero > figure {
  grid-column: 3;
}

.hero h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.75rem, 7vw, 5.25rem);
  line-height: 1;
  margin-top: 0;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero h2 + p {
  margin-block: 2rem;
  line-height: 1.85;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: background .15s, border-color .15s, transform .15s, box-shadow .15s;
}

.btn:hover {
  text-decoration: none;
}

.btn + .btn {
  margin-inline-start: 0.75rem;
}
.btn-primary {
  background: var(--tiger);
  color: var(--paper);
  box-shadow: 0 8px 28px rgba(208,43,15,0.35);
}
.btn-primary:hover {
  background: var(--tiger-deep);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(255,255,255,0.18);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.4);
}

/* BloqLoft — section styles (features / waitlist / footer) */

/* ────── section header block ────── */
.section {
  padding: clamp(4.5rem, 10vw, 8rem) 0;
}
.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.section-title em {
  font-style: normal;
  color: var(--tiger-hot);
}
.section-lede {
  font-size: 17px;
  line-height: 1.6;
  opacity: 0.7;
  max-width: 520px;
  margin-top: 18px;
  text-wrap: pretty;
}

/* -───── section subscription no ────── */
.pricing {
  padding: clamp(4.5rem, 10vw, 8rem) 0;
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid var(--line);
  text-align: center;
  text-wrap: balance;
}
.pricing p {
  margin: 1.5rem auto 0;
  color: var(--paper);
  font-size: calc(17px + 0.25rem);
  max-width: 50ch;
}

/* ────── features ────── */
.features {
  background: rgb(53, 24, 61);
  /* background: url("../img/repeatL.webp"), rgb(53, 24, 61); */
  color: var(--paper);
  /* background-position: 20% 30%; */
}
.features .section-lede {
  opacity: 0.72;
}
.features .section-title em {
  color: var(--tiger);
}

.feature-stack {
  display: grid;
  gap: 40px;
  margin-top: 56px;
}
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: start;
  padding: 36px 40px;
  border-radius: 18px;
  background: var(--cream);
  border: 1px solid var(--ink-line);
  color: var(--ink);
}
.feature-row.reverse {
  grid-template-columns: 1.1fr 1fr;
}
.feature-row.reverse .feature-copy {
  order: 2;
}
.feature-row.dark {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--line);
}
.feature-row.dark .feature-body {
  opacity: 0.75;
}

.feature-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.feature-body {
  font-size: 16px;
  line-height: 1.62;
  margin-top: 14px;
  opacity: 0.72;
  max-width: 440px;
}

/* ────── gallery (peek carousel) ────── */
.gallery {
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.gallery .section-title em {
  color: var(--tiger-hot);
}

.carousel {
  position: relative;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}

/* Track: horizontal flex, scroll-snaps. Slides are 70% wide so neighbors peek. */
.carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 20px max(20px, 15vw) 20px max(20px, 15vw);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  flex: 0 0 min(900px, 70vw);
  scroll-snap-align: center;
  scroll-snap-stop: always;
  border-radius: 16px;
  overflow: hidden;
  background: var(--ink-soft);
  border: 1px solid var(--line);
  display: block;
  transition: opacity .4s ease, filter .4s ease, transform .4s ease;
  opacity: 0.35;
  filter: blur(2px) saturate(0.7);
  transform: scale(0.96);
}
.carousel-slide.is-active {
  opacity: 1;
  filter: none;
  transform: scale(1);
  box-shadow: 0 -1px 10px 4px rgba(255,255,255,0.15);
}

.slide-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #0A070B;
  border-bottom: 1px solid var(--line);
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide-visual > * {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
}
.slide-copy {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
}
.slide-copy h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.25rem, 1.8vw, 1.625rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.slide-copy p {
  font-size: 1rem;
  opacity: 0.7;
  line-height: 1.5;
}

/* Controls */
.carousel-controls {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.carousel-dots {
  display: flex;
  gap: 8px;
}
.carousel-dots button {
  width: 24px;
  height: 3px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  transition: background .2s, width .2s;
  padding: 0;
}
.carousel-dots button.is-active {
  background: var(--tiger-hot);
  width: 40px;
}
.carousel-arrows {
  display: flex;
  gap: 8px;
}
.carousel-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  transition: background .15s, border-color .15s;
}
.carousel-arrow:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.4);
}
.carousel-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}


/* ────── device sync ────── */
.sync-story {
  display: grid;
  grid-template-columns: minmax(2rem, 1fr) minmax(25%, 580px) minmax(25%, 580px) minmax(2rem, 1fr);
  margin-inline: auto;
  overflow: hidden;
  padding: clamp(4.5rem, 10vw, 8rem) 0;
  background: var(--paper);
  color: var(--ink);
}
/* .sync-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: start; margin-top: 4rem; } */

.sync-story > div {
  grid-column: 2;
  margin-inline-end: 3rem;
}
.sync-story > img {
  grid-column: 3;
  border-radius: 0.5rem;
}

/* ────── pricing ────── */
.pricing {
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid var(--line);
}

/* ────── waitlist ────── */
.waitlist {
  background: linear-gradient(135deg, var(--tiger) 0%, var(--mulberry) 25%, #35183d 65%, #35183d 100%);
  color: var(--paper);
}
.waitlist-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.waitlist h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 5.25rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin-top: 18px;
}
.waitlist h2 em {
  font-style: normal;
}
.waitlist p {
  font-size: 17px;
  opacity: 0.88;
  margin-top: 18px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.waitlist-form {
  display: flex;
  gap: 8px;
  max-width: 540px;
  margin: 36px auto 0;
}
.waitlist-form input {
  flex: 1;
  padding: 14px 18px;
  border: none;
  border-radius: 8px;
  background: rgba(255,255,255,0.15);
  color: var(--paper);
  outline: none;
  font-size: 16px;
}
.waitlist-form input::placeholder {
  color: rgba(255,255,255,0.65);
}
.waitlist-form input:focus {
  background: rgba(255,255,255,0.22);
}
.waitlist-form button {
  background: var(--ink);
  color: var(--paper);
  padding: 0 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: background .15s, transform .15s;
}
.waitlist-form button:hover {
  background: #2A2227;
  transform: translateY(-1px);
}
.waitlist-done {
  display: inline-block;
  background: var(--ink);
  padding: 22px 28px;
  border-radius: 10px;
  margin-top: 28px;
  font-size: 16px;
}
.waitlist-done[hidden] {
  display: none;
}
.waitlist-done strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 22px;
  margin-bottom: 4px;
  font-weight: 400;
}
#form-error {
  color: #FFD3C6;
  font-size: 0.9rem;
  margin-top: 10px;
}
.btn-signup[aria-busy="true"],
.btn-submit[aria-busy="true"] {
  opacity: 0.7;
  cursor: default;
}

/* ────── footer ────── */
.inner-footer-wrap {
  display: grid;
  grid-template-columns: min-content 1fr min-content;
  align-items: center;
  gap: 1.5rem;
  padding: 1.35rem 1rem;
  max-width: var(--container);
  margin-inline: auto;
}

.inner-footer-wrap > section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.inner-footer-wrap > section:first-child {
  grid-column: 1;
}
.inner-footer-wrap > section:last-child {
  grid-column: 3;
  justify-content: flex-end;
}

.footer-externals div {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-right: 1rem;
}

.footer-social a {
  font-size: 2.25rem;
  color: rgba(255,255,255,0.65);
}
.footer-social a:hover {
  color: var(--paper);
}

/* ────── policy page (privacy / tos) ────── */
.policy-main {
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(4rem, 10vw, 7rem);
}
.policy-content {
  max-width: 720px;
  margin: 0 auto;
}
.policy-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}
.policy-lead {
  font-size: 17px;
  line-height: 1.6;
  opacity: 0.72;
  margin-bottom: 0.5rem;
}
.policy-updated {
  font-size: 0.85rem;
  opacity: 0.5;
  margin-bottom: 2.5rem;
}
.policy-content section {
  margin-bottom: 2.25rem;
}
.policy-content section:last-of-type {
  margin-bottom: 0;
}
.policy-content h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  letter-spacing: -0.02em;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.policy-content section:first-of-type h2 {
  margin-top: 0;
}
.policy-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}
.policy-content p {
  opacity: 0.75;
  line-height: 1.65;
  margin-bottom: 1rem;
}
.policy-content ul,
.policy-content ol {
  margin: 0 0 1rem 1.25rem;
  padding-left: 1.25rem;
  line-height: 1.65;
  opacity: 0.75;
}
.policy-content li {
  margin-bottom: 0.4rem;
}
.policy-content a {
  color: var(--tiger-hot);
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: 1;
}
.policy-content a:hover {
  color: var(--tiger);
}

.policy-toc {
  margin-bottom: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  border-left: 3px solid var(--tiger);
}
.policy-toc ol {
  margin: 0;
  padding-left: 1.25rem;
  opacity: 1;
}
.policy-toc li {
  margin-bottom: 0.35rem;
  opacity: 1;
}
.policy-toc a {
  color: var(--paper);
  opacity: 0.8;
  font-weight: 500;
  text-decoration: none;
}
.policy-toc a:hover {
  opacity: 1;
  color: var(--tiger-hot);
  text-decoration: underline;
}

/* ────── FAQ accordion ────── */
.faq-list {
  max-width: 700px;
  margin: 20px auto 0;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item:first-child {
  border-top: 1px solid var(--line);
}
.faq-item summary {
  padding: 1.15rem 2rem 1.15rem 0;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  line-height: 1.5;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--paper);
  border-bottom: 2px solid var(--paper);
  opacity: 0.5;
  transform: translateY(-50%) rotate(45deg);
  transition: transform .2s, opacity .2s;
}
.faq-item[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
  opacity: 1;
}
.faq-item .faq-answer {
  padding: 0 2rem 1.25rem 0;
  font-size: 0.95rem;
  opacity: 0.72;
  line-height: 1.7;
}
.faq-answer a {
  color: var(--tiger-hot);
  text-decoration: underline;
}
.faq-answer a:hover {
  color: var(--tiger);
}

/* ────── support page section backgrounds ────── */
#support-hero {
  background:
    radial-gradient(circle at 45% 120%, rgba(93,42,108,0.55), transparent 75%),
    var(--ink);
}
#faq {
  background: var(--ink);
}
#contact {
  background:
    radial-gradient(circle at 55% -10%, rgba(93,42,108,0.55), transparent 75%),
    var(--ink);
}

/* ────── contact / support form ────── */
.contact-form {
  max-width: 640px;
  margin: 40px auto 0;
  text-align: left;
}
.form-row {
  margin-bottom: 1.25rem;
}
.form-row:last-of-type {
  margin-bottom: 0;
}
.form-row label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.form-row label .optional {
  font-weight: 400;
  opacity: 0.55;
  font-size: 0.82rem;
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: 8px;
  background: rgba(255,255,255,0.15);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  outline: none;
  transition: background .15s;
}
.form-row input::placeholder,
.form-row textarea::placeholder {
  color: rgba(255,255,255,0.65);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  background: rgba(255,255,255,0.22);
}
.form-row textarea {
  min-height: 130px;
  resize: vertical;
}
.form-row select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23FBF7F0'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 2.5rem;
  color-scheme: dark;
}
.form-row select:invalid {
  color: rgba(255,255,255,0.65);
}
.form-row input[type="file"] {
  font-size: 0.88rem;
  opacity: 0.72;
}
.form-row-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.contact-form .btn-submit {
  width: 100%;
  justify-content: center;
  margin-top: 1.5rem;
}
.form-success {
  padding: 2rem 0;
  text-align: center;
}
.form-success strong {
  display: block;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 22px;
  margin-bottom: 6px;
}
.form-success p {
  opacity: 0.72;
}

/* ══════════════════════════════════════
   media queries
   ══════════════════════════════════════ */

@media (max-width: 960px) {
  
  .hero {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding: 2rem;
  }

  .inner-footer-wrap {
    display: flex;
    flex-direction: column-reverse;
    align-items: start;
  }
  
  .sync-story {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding: 2rem;
  }
}

@media (max-width: 840px) {
  .feature-row, .feature-row.reverse {
    grid-template-columns: 1fr;
    padding: 28px;
    gap: 24px;
  }
  .feature-row.reverse .feature-copy {
    order: 0;
  }
}

@media (max-width: 720px) {
  .carousel-slide {
    flex-basis: 85vw;
  }
  .slide-visual {
    aspect-ratio: 16 / 10;
  }
  .carousel-track {
    padding-left: 7.5vw;
    padding-right: 7.5vw;
  }
}

@media (max-width: 560px) {
  .waitlist-form {
    flex-direction: column;
  }
  .waitlist-form button {
    padding: 14px 24px;
  }
  .form-row-pair {
    grid-template-columns: 1fr;
  }
}
