/*
 * Event Link — eventlinklb.com
 *
 * Built from the app's own design: white and the app's warm ivory surface,
 * near-black ink, and the brand gold used the way the app uses it — for the
 * rings and a few small accents, never as a fill behind text. The one dark
 * section is the Smart AI planner, on the same night ground the planner has
 * in the app. Plus Jakarta Sans throughout, as in the app, set lighter and
 * with more air than a marketing page usually gets.
 */

:root {
  --white: #ffffff;
  --ivory: #fdf8f1;
  --sand: #f6eee2;
  --ink: #1d1d1d;
  --ink-2: #4f4a44;
  --ink-3: #79726a;
  --line: #ebe3d7;
  --gold: #d2a056;
  --gold-text: #82530d;

  --night: #120f17;
  --night-raised: #1c1823;
  --night-edge: rgba(236, 226, 255, 0.1);
  --night-ivory: #f5f0ea;
  --night-muted: #ada5b6;
  --night-gold: #ddaa5e;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --page: min(1200px, 100% - 3rem);
  --radius-photo: 28px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--gold-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.wrap {
  width: var(--page);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.75rem;
  z-index: 20;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  left: 0.75rem;
}

/* ── Header ─────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(255 255 255 / 0.97);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  width: 2.15rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.95rem;
}

.nav a {
  color: var(--ink-2);
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav .pill {
  color: var(--white);
}

@media (max-width: 760px) {
  .nav .nav-link {
    display: none;
  }
}

/* ── Buttons ────────────────────────────────────────────────────────────── */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.6rem 1.35rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.pill:hover {
  background: #000;
}

.pill:active {
  transform: translateY(1px);
}

.pill.is-light {
  background: var(--white);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.pill.is-light:hover {
  box-shadow: inset 0 0 0 1px var(--ink-3);
}

/* Two lines like a store badge, in the app's own black pill, so both stores
   sit together without borrowing either store's artwork. */
.store {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 10.5rem;
  min-height: 3.5rem;
  padding: 0.5rem 1.5rem 0.5rem 1.25rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.store:hover {
  background: #000;
}

.store-icon {
  flex: none;
  width: 1.45rem;
  height: 1.45rem;
  fill: currentColor;
}

.store-text {
  display: flex;
  flex-direction: column;
}

.store small {
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.75;
}

.store-text > span {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.store.is-gold {
  background: var(--night-gold);
  color: #1a1309;
}

.store.is-gold:hover {
  background: #e7b872;
}

.store.is-outline {
  background: transparent;
  color: var(--night-ivory);
  box-shadow: inset 0 0 0 1px rgb(245 240 234 / 0.28);
}

.store.is-outline:hover {
  box-shadow: inset 0 0 0 1px var(--night-gold);
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 420px) {
  .store {
    min-width: 0;
    flex: 1 1 9rem;
    gap: 0.55rem;
    padding-inline: 1rem 1.1rem;
  }

  .store-icon {
    width: 1.25rem;
    height: 1.25rem;
  }

  .store-text > span {
    font-size: 0.95rem;
  }
}

.store-text > span,
.store small {
  white-space: nowrap;
}

/* ── The phone: a real screen from the app in a plain frame ────────────── */

.device {
  position: relative;
  width: var(--w, 17rem);
  padding: calc(var(--w, 17rem) * 0.038);
  border-radius: calc(var(--w, 17rem) * 0.17);
  background: #0e0e0f;
  box-shadow:
    0 0 0 1px rgb(0 0 0 / 0.06),
    0 40px 80px -40px rgb(29 22 12 / 0.45);
}

.device img {
  width: 100%;
  border-radius: calc(var(--w, 17rem) * 0.135);
}

/* A phone standing on the bottom edge of its panel, the screen running on
   below it, the way it would if the panel were a window. */
.device.is-rising {
  padding-bottom: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.device.is-rising img {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  padding-block: 4.5rem 6rem;
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 4rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 5.6vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero .lede {
  max-width: 31rem;
  margin: 1.75rem 0 2.25rem;
  color: var(--ink-2);
  font-size: 1.15rem;
  line-height: 1.6;
}

.hero .note {
  margin-top: 1.1rem;
  color: var(--ink-3);
  font-size: 0.9rem;
}

.hero-visual {
  position: relative;
  padding: 0 0 3rem 3.5rem;
}

.hero-visual .photo {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  border-radius: var(--radius-photo);
}

.hero-visual .device {
  --w: clamp(12rem, 18vw, 15.5rem);
  position: absolute;
  left: 0;
  bottom: 0;
  animation: rise 0.9s var(--ease) 0.15s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

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

  .hero-visual .device {
    animation: none;
  }
}

@media (max-width: 900px) {
  .hero {
    padding-block: 2.5rem 4rem;
  }

  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-visual {
    padding-left: 2.5rem;
  }
}

/* ── Sections ───────────────────────────────────────────────────────────── */

.section {
  padding-block: 7rem;
}

.section.is-ivory {
  background: var(--ivory);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 3.5rem;
}

.section-head h2,
.feature h2 {
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  line-height: 1.08;
}

.section-head p,
.feature .copy > p {
  margin-top: 1.25rem;
  color: var(--ink-2);
  font-size: 1.1rem;
}

@media (max-width: 760px) {
  .section {
    padding-block: 4.5rem;
  }

  .section-head {
    margin-bottom: 2.5rem;
  }
}

/* A feature: words on one side, the screen that does it on the other. */
.feature .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 5rem;
}

.feature .copy {
  max-width: 30rem;
}

.feature.is-flipped .copy {
  order: 2;
}

.points {
  display: grid;
  gap: 1.1rem;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
}

.points li {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.75rem;
  color: var(--ink-2);
}

.points li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  margin: 0.6rem 0 0 0.3rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--gold);
}

.points strong {
  color: var(--ink);
  font-weight: 600;
}

/* The panel a rising phone stands in. */
.stage {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 34rem;
  padding: 4rem 2rem 0;
  overflow: hidden;
  border-radius: var(--radius-photo);
  background: var(--sand);
}

.stage .device {
  --w: min(19rem, 78%);
}

.stage.is-photo {
  position: relative;
  background: #2a2017;
}

.stage.is-photo > img.backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stage.is-photo .device {
  position: relative;
}

.stage.is-free {
  align-items: center;
  padding: 3.5rem 2rem;
}

@media (max-width: 900px) {
  .feature .wrap {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .feature.is-flipped .copy {
    order: 0;
  }

  .stage {
    min-height: 0;
  }
}

/* ── Smart AI, on the planner's own night ground ───────────────────────── */

.night {
  background:
    radial-gradient(60rem 30rem at 85% 0%, rgb(221 170 94 / 0.12), transparent 70%),
    var(--night);
  color: var(--night-ivory);
}

.night h2 {
  color: var(--night-ivory);
}

.night .copy > p,
.night .points li {
  color: var(--night-muted);
}

.night .points strong {
  color: var(--night-ivory);
}

.night .points li::before {
  box-shadow: inset 0 0 0 1.5px var(--night-gold);
}

.night .label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  color: var(--night-gold);
  font-size: 0.95rem;
  font-weight: 600;
}

.night .label svg {
  width: 1rem;
  height: 1rem;
}

.prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.prompts li {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--night-edge);
  background: var(--night-raised);
  color: var(--night-ivory);
  font-size: 0.9rem;
}

.night .stage {
  background: transparent;
  min-height: 0;
  padding: 0;
  overflow: visible;
}

.night .device {
  --w: min(19rem, 80%);
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.06),
    0 50px 100px -40px rgb(0 0 0 / 0.8);
}

/* ── Occasions ──────────────────────────────────────────────────────────── */

.occasions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.occasions img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 22px;
}

.occasions h3 {
  margin-top: 1rem;
  font-size: 1.1rem;
  letter-spacing: -0.015em;
}

.occasions p {
  margin-top: 0.25rem;
  color: var(--ink-3);
  font-size: 0.95rem;
}

@media (max-width: 760px) {
  .occasions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem 1rem;
  }
}

/* ── Businesses ─────────────────────────────────────────────────────────── */

.trades {
  margin-top: 2rem;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.9;
}

.trades span {
  white-space: nowrap;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2.5rem;
}

.actions a:not(.pill) {
  color: var(--ink-2);
  font-size: 0.95rem;
}

.trades span + span::before {
  content: "/";
  margin: 0 0.55rem;
  color: var(--gold);
}

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

.steps li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  counter-increment: step;
}

.steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.steps li::before {
  content: counter(step);
  color: var(--gold-text);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.steps strong {
  display: block;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.steps span {
  color: var(--ink-3);
}

/* ── Closing ────────────────────────────────────────────────────────────── */

.closing {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  padding: 5rem 4rem 0;
  background: var(--ivory);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: end;
}

.closing .copy {
  padding-bottom: 5rem;
}

.closing h2 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.05;
}

.closing p {
  margin: 1.25rem 0 2rem;
  color: var(--ink-2);
  font-size: 1.1rem;
}

.closing .device {
  --w: min(17rem, 90%);
  justify-self: center;
}

@media (max-width: 900px) {
  .closing {
    grid-template-columns: 1fr;
    padding: 3.5rem 1.75rem 0;
    border-radius: 28px;
  }

  .closing .copy {
    padding-bottom: 0;
  }
}

/* ── Documents: privacy, terms, support, deletion ─────────────────────── */

.doc-head {
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
}

.doc-head .wrap {
  padding-block: 4.5rem 3.5rem;
}

.doc-head h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.doc-head p {
  max-width: 38rem;
  margin-top: 1rem;
  color: var(--ink-2);
  font-size: 1.1rem;
}

.doc {
  display: grid;
  grid-template-columns: 14rem minmax(0, 42rem);
  gap: 5rem;
  padding-block: 4rem 7rem;
}

.doc.is-single {
  grid-template-columns: minmax(0, 44rem);
}

.toc {
  position: sticky;
  top: 6.5rem;
  align-self: start;
  font-size: 0.92rem;
}

.toc p {
  margin-bottom: 0.75rem;
  color: var(--ink);
  font-weight: 600;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--line);
}

.toc a {
  display: block;
  padding: 0.3rem 0 0.3rem 1rem;
  margin-left: -1px;
  border-left: 1px solid transparent;
  color: var(--ink-3);
  text-decoration: none;
}

.toc a:hover {
  color: var(--ink);
  border-left-color: var(--gold);
}

@media (max-width: 900px) {
  .doc {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-block: 2.5rem 5rem;
  }

  .toc {
    display: none;
  }
}

.prose {
  color: var(--ink-2);
}

.prose h2 {
  margin: 3.5rem 0 1rem;
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
  scroll-margin-top: 6rem;
}

.prose > h2:first-child,
.prose > .summary + h2 {
  margin-top: 0;
}

.prose h3 {
  margin: 2rem 0 0.6rem;
  color: var(--ink);
  font-size: 1.1rem;
  letter-spacing: -0.015em;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1.1rem;
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
}

.prose li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

.prose li::marker {
  color: var(--gold);
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.summary {
  margin-bottom: 3.5rem;
  padding: 1.75rem 2rem;
  border-radius: 22px;
  background: var(--ivory);
  box-shadow: inset 0 0 0 1px var(--line);
}

.summary h2 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.summary ul {
  margin: 0;
}

.prose table {
  width: 100%;
  margin: 0.5rem 0 1.5rem;
  border-collapse: collapse;
  font-size: 0.97rem;
}

.prose th,
.prose td {
  padding: 0.85rem 1rem 0.85rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th {
  color: var(--ink);
  font-weight: 600;
}

.prose td:first-child {
  width: 34%;
  color: var(--ink);
  font-weight: 500;
}

/* Numbered steps inside a document. */
.prose ol.steps-doc {
  padding: 0;
  list-style: none;
  counter-reset: s;
}

.prose ol.steps-doc li {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.75rem;
  margin: 0;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  counter-increment: s;
}

.prose ol.steps-doc li:last-child {
  border-bottom: 1px solid var(--line);
}

.prose ol.steps-doc li::before {
  content: counter(s);
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--gold);
  color: var(--gold-text);
  font-size: 0.85rem;
  font-weight: 600;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin: 0 0 1.5rem;
  padding: 1.6rem 1.9rem;
  border-radius: 22px;
  background: var(--ivory);
  box-shadow: inset 0 0 0 1px var(--line);
}

.contact strong {
  display: block;
  font-size: 1.15rem;
}

.contact span {
  color: var(--ink-3);
  font-size: 0.95rem;
}

/* Questions that open in place. */
.faq {
  border-top: 1px solid var(--line);
}

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

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.35rem 0;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "";
  flex: none;
  width: 0.6rem;
  height: 0.6rem;
  margin-right: 0.3rem;
  border-right: 1.5px solid var(--ink-3);
  border-bottom: 1.5px solid var(--ink-3);
  transform: rotate(45deg) translateY(-0.2rem);
  transition: transform 0.2s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(-135deg) translateY(-0.1rem);
}

.faq details > div {
  padding: 0 2.5rem 1.4rem 0;
}

.faq details > div > :last-child {
  margin-bottom: 0;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.95rem;
}

.site-footer .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  padding-block: 4rem 2.5rem;
}

.site-footer p {
  max-width: 20rem;
  margin-top: 1rem;
}

.site-footer h2 {
  margin-bottom: 1rem;
  color: var(--ink);
  font-size: 0.95rem;
  letter-spacing: 0;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin-bottom: 0.6rem;
}

.site-footer a {
  color: var(--ink-3);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
}

.site-footer .legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

@media (max-width: 760px) {
  .site-footer .wrap {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer .wrap > :first-child {
    grid-column: 1 / -1;
  }
}
