/*
 * The whole site's stylesheet (WEB-6).
 *
 * One file, shared by every page, because there are seven of them now and a landing page whose
 * styles are copied into each is a landing page where six of them are wrong by next month. It is
 * still no build step and no framework (WEB-1): one request, cached, about 9 KB.
 *
 * The palette is Eden's own — apps/ios/Eden/Core/Theme/EdenTheme.swift, dark scheme — copied
 * rather than imported, because there is nothing here to import from and two files that must
 * agree are worse than one comment saying where the truth lives.
 */

:root {
  --space-top: #05070f;
  --space-bottom: #0b1020;
  --ink: #eaf2ff;
  --ink-dim: rgba(234, 242, 255, 0.68);
  --ink-faint: rgba(234, 242, 255, 0.44);
  --cyan: #4fe3ff;
  --violet: #8b7cff;
  --mint: #5cffc0;
  --line: rgba(234, 242, 255, 0.1);
  --card: rgba(255, 255, 255, 0.04);
  --radius: 18px;
  --page: 1120px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: linear-gradient(180deg, var(--space-top) 0%, var(--space-bottom) 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 24px;
}

/* Skip link: the first thing a keyboard reaches, invisible until it has focus. */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--cyan);
  color: #04121a;
  padding: 12px 18px;
  border-radius: 0 0 12px 0;
  font-weight: 600;
  z-index: 10;
}

.skip:focus {
  left: 0;
}

/* ---------------------------------------------------------------------- header */

.top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  flex: none;
}

.wordmark {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.badge {
  margin-left: auto;
  font-size: 12px;
  font-weight: 500;
  color: var(--cyan);
  border: 1px solid rgba(79, 227, 255, 0.4);
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
}

/* ---------------------------------------------------------------------- type */

h1 {
  font-size: clamp(34px, 5.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 20px;
  text-wrap: balance;
}

h2 {
  font-size: clamp(25px, 3.2vw, 36px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 650;
  margin: 0 0 16px;
  text-wrap: balance;
}

h3 {
  font-size: 19px;
  line-height: 1.35;
  font-weight: 600;
  margin: 0 0 8px;
}

p {
  color: var(--ink-dim);
  margin: 0 0 16px;
  max-width: 34em;
}

.lead {
  font-size: clamp(17px, 2vw, 20px);
  margin-bottom: 28px;
}

/* The one-sentence answer a section opens with, so a passage quoted anywhere still says
   something true on its own (GEO). Brighter than body text, not a heading. */
.answer {
  color: var(--ink);
  font-weight: 550;
  font-size: 18px;
}

.accent {
  color: var(--cyan);
}

.kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 14px;
}

a {
  color: var(--cyan);
}

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

/* ---------------------------------------------------------------------- layout */

section {
  padding: 76px 0;
  border-top: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split.flip > .copy {
  order: 2;
}

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px 40px;
}

.cols p {
  max-width: none;
}

.prose {
  max-width: 42em;
}

.prose h2 {
  margin-top: 44px;
}

.prose ul {
  color: var(--ink-dim);
  padding-left: 22px;
  margin: 0 0 16px;
}

.prose li {
  margin-bottom: 8px;
}

/* ---------------------------------------------------------------------- calls to action */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  /* 48px tall: a touch target somebody can hit on a tram. */
  padding: 14px 26px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  background: var(--cyan);
  color: #04121a;
  border: 1px solid transparent;
  transition: transform 0.12s ease;
}

.cta:hover {
  transform: translateY(-1px);
}

.cta.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.cta[aria-disabled='true'] {
  background: transparent;
  color: var(--ink-faint);
  border-color: var(--line);
  cursor: default;
}

.note {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--ink-faint);
  max-width: 32em;
}

/* ---------------------------------------------------------------------- phones */

/*
 * A drawn bezel rather than a photograph of one.
 *
 * Apple's marketing frames carry licence conditions, and a hairline rectangle looks better on a
 * dark page than rendered titanium. `aspect-ratio` on the image keeps the box the right height
 * before the JPEG arrives, which is the whole of this page's CLS.
 */
.phone {
  position: relative;
  border-radius: 44px;
  padding: 8px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03));
  box-shadow:
    0 40px 80px -30px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  max-width: 300px;
  margin: 0 auto;
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 552 / 1200;
  border-radius: 36px;
  background: var(--space-top);
}

.phone.wide {
  max-width: 340px;
}

/* ---------------------------------------------------------------------- hero */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0 84px;
}

/* ---------------------------------------------------------------------- steps */

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px 40px;
  margin-top: 8px;
}

.steps > li {
  counter-increment: step;
  list-style: none;
  padding-top: 44px;
  position: relative;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(79, 227, 255, 0.4);
  color: var(--cyan);
  font-size: 14px;
  font-weight: 600;
  display: grid;
  place-items: center;
}

.steps h3 {
  font-size: 17px;
}

.steps p {
  font-size: 15px;
  margin: 0;
  max-width: none;
}

/* ---------------------------------------------------------------------- comparison */

.compare {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 15px;
}

.compare caption {
  text-align: left;
  color: var(--ink-faint);
  font-size: 14px;
  padding-bottom: 14px;
}

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

.compare thead th {
  color: var(--ink-faint);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.compare tbody th {
  color: var(--ink);
  font-weight: 550;
  width: 30%;
}

.compare td {
  color: var(--ink-dim);
}

.compare td.eden {
  color: var(--ink);
}

/* ---------------------------------------------------------------------- cards */

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

.card p:last-child {
  margin-bottom: 0;
}

/* ---------------------------------------------------------------------- signup */

.signup {
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(120% 140% at 50% -20%, rgba(79, 227, 255, 0.09), transparent 60%), var(--card);
  padding: 44px 40px;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.signup h2 {
  margin-bottom: 12px;
}

.signup p {
  margin-left: auto;
  margin-right: auto;
}

.form {
  display: flex;
  gap: 10px;
  margin: 28px auto 0;
  max-width: 480px;
}

.form input,
.field textarea {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 14px 20px;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.field textarea {
  border-radius: 16px;
  width: 100%;
  resize: vertical;
  min-height: 84px;
  line-height: 1.5;
}

.form input::placeholder,
.field textarea::placeholder {
  color: var(--ink-faint);
}

.form button {
  border: none;
  border-radius: 999px;
  padding: 14px 26px;
  background: var(--cyan);
  color: #04121a;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.form button:disabled {
  opacity: 0.5;
  cursor: default;
}

/* „Chcecie coś dopisać?" — folded away, because the address is the ask and the sentence is a
   bonus. A textarea sitting open turns a ten-second action into homework. */
.field {
  max-width: 480px;
  margin: 14px auto 0;
  text-align: left;
}

.field > summary {
  font-size: 14px;
  color: var(--ink-dim);
  font-weight: 400;
  justify-content: center;
}

.field textarea {
  margin-top: 12px;
}

.fineprint {
  margin: 20px auto 0;
  font-size: 13px;
  color: var(--ink-faint);
  max-width: 42em;
}

.said {
  margin: 28px auto 0;
  font-size: 17px;
  color: var(--mint);
  max-width: 32em;
}

.said.bad {
  color: var(--ink-dim);
}

/* ---------------------------------------------------------------------- faq */

.faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 56px;
}

details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

summary {
  cursor: pointer;
  font-weight: 550;
  list-style: none;
  display: flex;
  gap: 12px;
  align-items: baseline;
}

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

.faq summary::before {
  content: '+';
  color: var(--cyan);
  font-weight: 400;
}

.faq details[open] summary::before {
  content: '−';
}

details p {
  margin: 10px 0 0 24px;
  font-size: 15px;
  max-width: none;
}

/* ---------------------------------------------------------------------- footer */

footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 56px;
  color: var(--ink-faint);
  font-size: 14px;
}

.foot {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px 40px;
  margin-bottom: 36px;
}

.foot h2 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 12px;
  letter-spacing: 0;
}

.foot p {
  font-size: 14px;
  margin: 0;
  max-width: 28em;
}

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

.foot li {
  margin-bottom: 8px;
}

.foot a {
  color: var(--ink-dim);
  text-decoration: none;
}

.foot a:hover {
  text-decoration: underline;
}

.legal {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

/* ----------------------------------------------------------------------- utilities */

/*
 * The handful of one-off adjustments that used to be `style="…"` attributes.
 *
 * Moved here so the Content-Security-Policy can say `style-src 'self'` and nothing else: with an
 * inline attribute anywhere on the page, the policy needs `'unsafe-inline'`, which permits every
 * other inline style too — including one injected by whatever managed to inject it.
 */
.spaced {
  margin-top: 28px;
}

.centered {
  justify-content: center;
}

.page-head {
  padding: 40px 0 8px;
}

.closer {
  border-top: 0;
  padding-top: 0;
}

/* ---------------------------------------------------------------------- focus */

a:focus-visible,
summary:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* ---------------------------------------------------------------------- small screens */

@media (max-width: 860px) {
  .hero,
  .split {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero {
    padding: 32px 0 56px;
  }

  .split.flip > .copy {
    order: 0;
  }

  section {
    padding: 56px 0;
  }

  .phone,
  .phone.wide {
    max-width: 268px;
  }

  .signup {
    padding: 32px 22px;
  }

  .form {
    flex-direction: column;
  }

  .faq {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .foot {
    grid-template-columns: 1fr 1fr;
  }
}

/* 320px: the iPhone SE in its case, and the width everything breaks at first. */
@media (max-width: 380px) {
  .wrap {
    padding: 0 18px;
  }

  .foot {
    grid-template-columns: 1fr;
  }
}

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

  .cta:hover {
    transform: none;
  }
}
