/*
 * Amber Loop — public website (amberloophq.com).
 * Static, no JavaScript, no web fonts, no trackers. Colours follow the app's
 * Clips palette (app/(dashboard)/clips/clips.css) so the site and the product
 * read as one thing. Mobile first; breakpoints 768 px and 1100 px.
 */

:root {
  --bg: #0a0a0f;
  --bg-raised: #121217;
  --bg-card: #17171d;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f5f7;
  --text-2: #b4b4bd;
  --text-3: #91919a;
  --amber: #f2c46d;
  --amber-soft: #f8dca3;
  --amber-deep: #e8a83e;
  --amber-ink: #1a1408;
  --amber-wash: rgba(242, 196, 109, 0.1);
  --amber-line: rgba(242, 196, 109, 0.35);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1160px;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--amber-soft);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--amber);
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--amber);
  color: var(--amber-ink);
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 15, 0.86);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  white-space: nowrap;
}

.brand:hover {
  color: var(--text);
}

.brand svg {
  width: 28px;
  height: 28px;
  flex: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links {
  display: none;
}

.nav a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 10px 10px;
  border-radius: 10px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

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

.nav .lang {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.nav .signin {
  color: var(--text);
  border: 1px solid var(--line-strong);
  padding: 8px 16px;
}

.nav .signin:hover {
  border-color: var(--amber-line);
  color: var(--amber-soft);
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
    gap: 2px;
    margin-right: 8px;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--amber);
  color: var(--amber-ink);
  box-shadow: 0 10px 40px -12px rgba(242, 196, 109, 0.55);
}

.btn-primary:hover {
  background: var(--amber-soft);
  color: var(--amber-ink);
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--line-strong);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--amber-line);
  background: var(--amber-wash);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 56px 0 72px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 720px;
  height: 720px;
  background: radial-gradient(closest-side, rgba(242, 196, 109, 0.16), rgba(242, 196, 109, 0) 70%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber-soft);
  background: var(--amber-wash);
  border: 1px solid var(--amber-line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
}

.hero h1 {
  margin-top: 20px;
  font-size: clamp(2.3rem, 7.4vw, 4.1rem);
}

.hero h1 em {
  font-style: italic;
  color: var(--amber);
}

.lead {
  margin-top: 20px;
  color: var(--text-2);
  font-size: clamp(1.08rem, 2.4vw, 1.25rem);
  max-width: 36em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.reassure {
  margin-top: 18px;
  color: var(--text-3);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.reassure svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--amber);
}

@media (min-width: 1100px) {
  .hero {
    padding: 88px 0 104px;
  }

  .hero .wrap {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 64px;
  }
}

/* ---------- Phone mock (illustration of the review screen) ---------- */

.mock {
  justify-self: center;
  width: min(330px, 100%);
  margin: 0;
}

.phone {
  position: relative;
  border-radius: 40px;
  padding: 12px;
  background: linear-gradient(160deg, #26262c, #111115);
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.screen {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  background: #0d0d11;
  aspect-ratio: 9 / 17.5;
  display: flex;
  flex-direction: column;
}

.screen-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px 10px;
  font-size: 0.72rem;
  color: var(--text-3);
}

.screen-top strong {
  color: var(--text-2);
  font-weight: 600;
}

.frame {
  position: relative;
  flex: 1;
  margin: 0 10px;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(120% 70% at 50% 18%, rgba(242, 196, 109, 0.28), rgba(242, 196, 109, 0) 60%),
    radial-gradient(90% 60% at 50% 100%, rgba(99, 102, 241, 0.2), rgba(99, 102, 241, 0) 70%),
    linear-gradient(180deg, #2a2620, #15131a 70%);
}

.frame .speaker {
  position: absolute;
  left: 50%;
  top: 22%;
  transform: translateX(-50%);
  width: 46%;
  aspect-ratio: 1 / 1.25;
}

.frame .speaker::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 52%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(180deg, #6b5a46, #4a3d30);
}

.frame .speaker::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  height: 52%;
  border-radius: 48% 48% 10px 10px;
  background: linear-gradient(180deg, #3b3a48, #26252f);
}

.caption {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 18%;
  text-align: center;
  font-weight: 800;
  font-size: 0.98rem;
  line-height: 1.3;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85), 0 0 2px rgba(0, 0, 0, 0.9);
}

.caption mark {
  background: none;
  color: var(--amber);
}

.timecode {
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 999px;
  padding: 3px 8px;
}

.why {
  position: absolute;
  left: 10px;
  top: 10px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--amber-ink);
  background: var(--amber-soft);
  border-radius: 999px;
  padding: 3px 9px;
}

.stamp {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%) rotate(-6deg);
  background: var(--amber);
  color: var(--amber-ink);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  padding: 8px 20px;
  border-radius: 999px;
  box-shadow: 0 0 48px rgba(242, 196, 109, 0.75);
  animation: stamp 3.6s ease-in-out infinite;
}

@keyframes stamp {
  0%,
  42% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-6deg) scale(1.4);
  }
  52%,
  88% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-6deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-6deg) scale(1);
  }
}

.decide {
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 6px;
  padding: 12px 10px 16px;
}

.decide span {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 40px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.15;
  padding: 4px;
  color: var(--text-2);
  border: 1px solid var(--line-strong);
}

.decide .go {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--amber-ink);
}

.mock-note {
  margin-top: 14px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-3);
}

/* ---------- Motto band ---------- */

.motto {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-raised);
  padding: 34px 0;
}

.motto p {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4.6vw, 2.3rem);
  text-align: center;
  color: var(--text);
}

.motto p span {
  color: var(--amber);
  font-style: italic;
}

/* ---------- Sections ---------- */

.section {
  padding: 80px 0;
}

.section-head {
  max-width: 44em;
  margin-bottom: 40px;
}

.kicker {
  color: var(--amber);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section h2 {
  margin-top: 12px;
  font-size: clamp(1.9rem, 5vw, 2.8rem);
}

.section-head p {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 1.1rem;
}

/* Steps */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  counter-reset: step;
}

.steps li {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px 26px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--amber-line);
  background: var(--amber-wash);
  color: var(--amber);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.steps h3 {
  font-size: 1.4rem;
}

.steps p {
  margin-top: 10px;
  color: var(--text-2);
}

.steps .fine {
  margin-top: 12px;
  font-size: 0.92rem;
  color: var(--text-3);
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Directions */

.directions {
  background: var(--bg-raised);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.split {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 1100px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
  }

  .split .section-head {
    margin-bottom: 0;
  }
}

.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chips li {
  border: 1px solid var(--line-strong);
  background: var(--bg-card);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.97rem;
  color: var(--text);
}

.chips li.free {
  border-style: dashed;
  color: var(--text-2);
}

.chips-note {
  margin-top: 18px;
  color: var(--text-3);
  font-size: 0.95rem;
}

/* Feature grid */

.grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) and (max-width: 1099px) {
  /* Two columns: the odd card out spans the row instead of sitting alone. */
  .grid.three > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1100px) {
  .grid.three {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* The platform: eight areas, four across on a wide screen, two on a tablet. */
@media (min-width: 1100px) {
  .grid.four {
    grid-template-columns: repeat(4, 1fr);
  }
}

.grid.four .card h3 {
  font-size: 1.15rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.card h3 {
  font-size: 1.3rem;
}

.card p {
  margin-top: 10px;
  color: var(--text-2);
}

.card .icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--amber-wash);
  border: 1px solid var(--amber-line);
  color: var(--amber);
  margin-bottom: 18px;
}

.card .icon svg {
  width: 22px;
  height: 22px;
}

/* After the clip */

.after {
  border-top: 1px solid var(--line);
}

.after .flow {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 0.97rem;
}

.after .flow li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.after .flow li + li::before {
  content: "→";
  color: var(--amber);
}

.after .flow strong {
  color: var(--text);
  font-weight: 600;
}

/* Pilot CTA */

.pilot {
  padding: 24px 0 88px;
}

.pilot-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--amber-line);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(242, 196, 109, 0.18), rgba(242, 196, 109, 0) 60%),
    var(--bg-card);
  padding: 40px 24px;
}

.pilot-card h2 {
  font-size: clamp(1.9rem, 5vw, 2.7rem);
}

.pilot-card > p {
  margin-top: 16px;
  color: var(--text-2);
  max-width: 40em;
  font-size: 1.1rem;
}

.pilot-points {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.pilot-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text);
}

.pilot-points svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 3px;
  color: var(--amber);
}

.pilot-card .cta-row {
  margin-top: 32px;
}

.pilot-card .contact-note {
  margin-top: 16px;
  color: var(--text-3);
  font-size: 0.93rem;
}

@media (min-width: 768px) {
  .pilot-card {
    padding: 56px 56px;
  }

  .pilot-points {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 32px;
  }
}

/* FAQ */

.faq {
  border-top: 1px solid var(--line);
}

.faq-list {
  max-width: 820px;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 4px;
  min-height: 44px;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--text);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  padding: 0 4px 22px;
  color: var(--text-2);
  max-width: 44em;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  color: var(--text-3);
  font-size: 0.93rem;
}

.site-footer .wrap {
  display: grid;
  gap: 20px;
}

.site-footer .brand {
  font-size: 1.1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.footer-links a {
  color: var(--text-2);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover {
  color: var(--amber-soft);
}

@media (min-width: 768px) {
  .site-footer .wrap {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

/* Legal pages (privacy, terms, delete account) */

.legal {
  padding: 40px 0 72px;
}

.legal-doc {
  max-width: 46rem;
}

.legal-kicker {
  color: var(--amber);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal h1 {
  margin-top: 10px;
  font-size: clamp(2.1rem, 7vw, 3.2rem);
}

.legal-meta {
  margin-top: 12px;
  color: var(--text-3);
  font-size: 0.93rem;
}

.legal-summary {
  margin-top: 28px;
  padding: 20px 22px;
  border: 1px solid var(--amber-line);
  border-radius: var(--radius);
  background: var(--amber-wash);
}

.legal-summary h2 {
  font-size: 1.3rem;
}

.legal-summary ul {
  margin: 12px 0 0;
  padding-left: 1.2em;
  color: var(--text);
}

.legal-toc {
  margin-top: 24px;
  padding: 14px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-raised);
}

.legal-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-toc li {
  break-inside: avoid;
}

.legal-toc a {
  display: flex;
  align-items: center;
  min-height: 40px;
  color: var(--text-2);
  text-decoration: none;
}

.legal-toc a:hover {
  color: var(--amber-soft);
}

.legal section {
  margin-top: 44px;
  scroll-margin-top: 84px;
}

.legal section h2 {
  font-size: clamp(1.4rem, 4vw, 1.8rem);
}

.legal section p,
.legal section ul,
.legal section ol,
.legal address {
  margin-top: 14px;
  color: var(--text-2);
}

.legal section ul,
.legal section ol {
  padding-left: 1.3em;
}

.legal li + li {
  margin-top: 8px;
}

.legal strong {
  color: var(--text);
}

.legal address {
  font-style: normal;
}

.legal code {
  font-size: 0.92em;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--bg-card);
  color: var(--text);
}

.legal a {
  overflow-wrap: anywhere;
}

@media (min-width: 768px) {
  .legal {
    padding: 64px 0 96px;
  }

  .legal-toc ol {
    columns: 2;
    column-gap: 32px;
  }
}

/* 404 */

.notfound {
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.notfound h1 {
  font-size: clamp(2rem, 6vw, 3rem);
}

.notfound p {
  margin-top: 14px;
  color: var(--text-2);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .stamp {
    animation: none;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-6deg);
  }

  .btn {
    transition: none;
  }
}
