/* ==========================================================================
   Little Purple Elephant — shared styles
   ========================================================================== */

:root {
  /* Little Purple Elephant (sampled from the logo) */
  --purple: #bd98d3;          /* logo purple — fills and large shapes only */
  --purple-ink: #6e4a8a;      /* purple for text and links (AA on white) */
  --purple-soft: #ece2f3;
  --lilac-bg: #f8f4fb;

  /* Kivoa (sampled from the Kivoa artwork) */
  --kivoa-ink: #06545a;       /* wordmark / dark teal */
  --kivoa-teal: #00a0a3;      /* app accent — fills only */
  --kivoa-teal-text: #00787b; /* teal for text (AA on white) */
  --kivoa-turquoise: #00d6cf;
  --kivoa-mint: #d1ebe7;
  --kivoa-mint-pale: #f2f9f8;

  /* Neutrals */
  --text: #24222a;
  --muted: #5e5a66;
  --background: #ffffff;
  --surface: #faf8fc;
  --line: #e9e4ee;

  /* Theme slots (overridden on the Kivoa pages) */
  --accent: var(--purple);
  --accent-ink: var(--purple-ink);
  --accent-soft: var(--lilac-bg);

  /* Layout */
  --radius: 1.25rem;
  --radius-lg: 2rem;
  --content-width: 68rem;
  --text-width: 38rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-space: clamp(4rem, 10vw, 8rem);

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.theme-kivoa {
  --accent: var(--kivoa-teal);
  --accent-ink: var(--kivoa-ink);
  --accent-soft: var(--kivoa-mint-pale);
}

/* Base
   -------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.65;
  color: var(--text);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  margin: 0 0 0.6em;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 1.6rem + 3.2vw, 4rem);
}

h2 {
  font-size: clamp(1.75rem, 1.4rem + 1.8vw, 2.75rem);
}

h3 {
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1.1em;
}

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

a {
  color: var(--accent-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

:focus-visible {
  outline: 3px solid var(--accent-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100%;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--text);
  color: #fff;
  font-weight: 600;
  border-radius: 0.5rem;
}

.skip-link:focus {
  top: 0.75rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: calc(var(--content-width) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-space);
}

.section--flush-top {
  padding-top: 0;
}

.section--tint {
  background: var(--accent-soft);
}

.lead {
  font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.3rem);
  color: var(--text);
}

.muted {
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

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

.site-header {
  padding-block: 1.25rem;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-weight: 600;
  font-size: 0.975rem;
  text-decoration: none;
}

.brand img {
  width: 2.75rem;
  height: 2.75rem;
}

.site-nav a {
  display: inline-block;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  color: var(--kivoa-ink);
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--kivoa-mint);
  background: var(--kivoa-mint-pale);
}

.site-nav a:hover {
  border-color: var(--kivoa-teal);
}

.site-nav a[aria-current="page"] {
  background: var(--kivoa-mint);
  border-color: var(--kivoa-mint);
}

@media (max-width: 359px) {
  .brand__name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding-block: 2.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

.site-footer__name {
  margin: 0;
  font-weight: 600;
  color: var(--text);
}

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

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  background: var(--accent-ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.arrow-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgb(0 0 0 / 0.12);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid var(--kivoa-mint);
  color: var(--kivoa-ink);
  font-weight: 600;
  font-size: 0.95rem;
}

@media (max-width: 359px) {
  .status-pill {
    padding-inline: 1rem;
    font-size: 0.875rem;
  }
}

.status-pill::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--kivoa-teal);
  flex-shrink: 0;
}

/* ==========================================================================
   Homepage
   ========================================================================== */

.home-hero {
  padding-block: clamp(2.5rem, 8vw, 6rem) var(--section-space);
}

.home-hero__logo {
  display: block;
  width: clamp(5.5rem, 4.5rem + 4vw, 8.375rem);
  height: auto;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.home-hero h1 {
  max-width: 16ch;
}

.home-hero__copy {
  max-width: var(--text-width);
}

.home-hero__copy p + p {
  color: var(--muted);
}

.section-label {
  margin: 0 0 1.5rem;
  line-height: 1.4;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple-ink);
}

.app-card {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border-radius: var(--radius-lg);
  background: var(--kivoa-mint-pale);
  border: 1px solid var(--kivoa-mint);
}

@media (min-width: 640px) {
  .app-card {
    grid-template-columns: auto 1fr;
  }
}

.app-card__icon {
  display: block;
  width: clamp(5.5rem, 4rem + 6vw, 9rem);
  height: auto;
  border-radius: 22%;
  box-shadow: 0 10px 30px rgb(6 84 90 / 0.15);
}

.app-card__title {
  margin-bottom: 0.15em;
  font-size: clamp(1.75rem, 1.4rem + 1.8vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--kivoa-ink);
}

.app-card__subtitle {
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--kivoa-teal-text);
}

.app-card p {
  max-width: 34rem;
}

.app-card .arrow-link {
  margin-top: 1.25rem;
  background: var(--kivoa-ink);
}

.contact {
  text-align: center;
}

.contact h2 {
  max-width: 20ch;
  margin-inline: auto;
}

.contact p {
  max-width: 32rem;
  margin-inline: auto;
}

.contact__email {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: clamp(1rem, 0.8rem + 1.4vw, 1.75rem);
  font-weight: 600;
  color: var(--purple-ink);
  overflow-wrap: break-word;
}

/* ==========================================================================
   Kivoa page
   ========================================================================== */

.theme-kivoa h1,
.theme-kivoa h2 {
  color: var(--kivoa-ink);
}

.kivoa-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 22%;
}

/* Split layouts (text | screenshot) */

.split {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

@media (min-width: 800px) {
  .split {
    grid-template-columns: 1.15fr 1fr;
  }

  .split--reverse {
    grid-template-columns: 1fr 1.15fr;
  }

  .split--reverse > .split__media {
    order: -1;
  }
}

.split__text {
  max-width: var(--text-width);
}

.split__media {
  display: flex;
  justify-content: center;
}

/* Phone mockup around real screenshots.
   The screenshot's own rounded corners sit inside a dark bezel. */

.phone {
  position: relative;
  width: min(100%, 19rem);
  margin: 0;
  padding: 2.6%;
  border-radius: 15.5% / 7.4%;
  background: #141416;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.06) inset,
    0 30px 60px -20px rgb(6 84 90 / 0.35),
    0 12px 24px -12px rgb(0 0 0 / 0.25);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 13.5% / 6.2%;
}

/* Hero */

.kivoa-hero {
  padding-block: clamp(2rem, 6vw, 5rem) var(--section-space);
  background: linear-gradient(180deg, var(--background) 0%, var(--kivoa-mint-pale) 100%);
  overflow: hidden;
}

.kivoa-hero h1 {
  margin-bottom: 0.35em;
  font-size: clamp(2.5rem, 1.6rem + 4.5vw, 4.75rem);
  line-height: 1.02;
}

.kivoa-hero h1 span {
  display: block;
  color: var(--kivoa-teal-text);
}

.kivoa-hero__subhead {
  margin-bottom: 1.25rem;
  font-size: clamp(1.25rem, 1.05rem + 1vw, 1.75rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--kivoa-ink);
}

.kivoa-hero .split__media {
  position: relative;
}

/* Soft arc echoing the Kivoa artwork */
.kivoa-hero .split__media::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(130%, 34rem);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--kivoa-mint);
  opacity: 0.7;
}

.store-cta {
  margin-top: 2rem;
}

/* Story */

.story {
  max-width: 42rem;
  margin-inline: auto;
}

.story p {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  line-height: 1.7;
}

.story__punch {
  font-weight: 700;
  color: var(--kivoa-ink);
}

/* Feature lists */

.feature-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 1.75rem;
  font-weight: 500;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--kivoa-teal);
  box-shadow: 0 0 0 4px var(--kivoa-mint);
}

@media (min-width: 560px) {
  .feature-list--two {
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
  }
}

.narrow {
  max-width: 44rem;
}

.centered {
  margin-inline: auto;
  text-align: center;
}

/* Simple by design */

.plans {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (min-width: 640px) {
  .plans {
    grid-template-columns: 1fr 1fr;
  }
}

.plan {
  padding: clamp(1.5rem, 4vw, 2rem);
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--kivoa-mint);
  text-align: left;
}

.plan h3 {
  margin-bottom: 0.4em;
  color: var(--kivoa-ink);
}

.plan p {
  color: var(--muted);
}

/* Closing CTA */

.kivoa-cta {
  text-align: center;
  background: var(--kivoa-ink);
  color: #fff;
}

.kivoa-cta h2 {
  color: #fff;
}

.kivoa-cta p {
  color: rgb(255 255 255 / 0.85);
}

.kivoa-cta .kivoa-icon {
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.25);
}

.kivoa-cta .status-pill {
  margin-top: 1.75rem;
}

.kivoa-cta__links {
  margin-top: 2rem;
  font-size: 0.95rem;
}

.kivoa-cta a {
  color: #fff;
}

.kivoa-cta :focus-visible {
  outline-color: #fff;
}

/* ==========================================================================
   Privacy policy
   ========================================================================== */

.legal {
  max-width: 44rem;
  padding-block: clamp(2rem, 6vw, 4.5rem) var(--section-space);
}

.legal h1 {
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3rem);
}

.legal__updated {
  margin-bottom: 2.5rem;
  color: var(--muted);
}

.legal h2 {
  margin-top: 2.5em;
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
}

.legal ul {
  margin: 0 0 1.1em;
  padding-left: 1.25rem;
}

.legal li {
  margin-bottom: 0.35em;
}

/* Motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .arrow-link:hover {
    transform: none;
  }
}
