:root {
  color-scheme: dark;
  --page: #171715;
  --paper: #23221e;
  --paper-soft: #2b2924;
  --ink: #f3eadc;
  --muted: #b8ad9d;
  --quiet: #897f70;
  --line: rgba(243, 234, 220, 0.14);
  --line-strong: rgba(243, 234, 220, 0.24);
  --olive: #c9d47a;
  --olive-soft: rgba(201, 212, 122, 0.16);
  --coral: #e86d43;
  --gold: #d7ad35;
  --green: #8ca545;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 6%, rgba(243, 234, 220, 0.08), transparent 28rem),
    radial-gradient(circle at 82% 18%, rgba(201, 212, 122, 0.11), transparent 22rem),
    linear-gradient(rgba(255, 250, 240, 0.025), rgba(255, 250, 240, 0.025)),
    var(--page);
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 30px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(650px, calc(100% - 32px));
  min-height: 58px;
  margin: 30px auto 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(35, 34, 30, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 34px rgba(47, 45, 42, 0.08);
}

.brand,
.site-nav,
.app-link,
.meta-list,
.page-actions,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #171715;
  background: var(--ink);
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-weight: 800;
}

.site-nav {
  gap: 18px;
  padding-right: 8px;
}

.site-nav a,
.site-footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 700;
}

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

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.home-hero {
  width: min(1040px, calc(100% - 36px));
  min-height: 56svh;
  display: grid;
  justify-items: center;
  align-content: center;
  margin: 0 auto;
  padding: clamp(88px, 13vw, 160px) 0 clamp(56px, 8vw, 86px);
  text-align: center;
}

.eyebrow,
.page-kicker {
  margin: 0 0 18px;
  color: var(--olive);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.96rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-weight: 650;
  line-height: 0.96;
  letter-spacing: 0;
}

h1 {
  max-width: 940px;
  font-size: clamp(4.4rem, 10vw, 8.8rem);
}

h2 {
  font-size: clamp(2.4rem, 5vw, 4.7rem);
}

h3 {
  font-size: clamp(1.7rem, 3vw, 3rem);
}

p {
  line-height: 1.62;
}

.lede {
  max-width: 660px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.section {
  width: min(1040px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(52px, 8vw, 96px) 0;
}

.section-head {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-bottom: 28px;
  text-align: center;
}

.section-head p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.app-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.app-link {
  flex: 1 1 220px;
  max-width: 250px;
  min-height: 150px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255,250,240,0.08), rgba(255,250,240,0.035)),
    var(--paper);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 800;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.app-link::before {
  content: "";
  display: flex;
  width: 36px;
  height: 12px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 6px 50%, var(--coral) 0 4px, transparent 4.5px),
    radial-gradient(circle at 18px 50%, var(--gold) 0 4px, transparent 4.5px),
    radial-gradient(circle at 30px 50%, var(--green) 0 4px, transparent 4.5px);
}

.app-link:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 30px 90px rgba(57, 43, 23, 0.18);
}

.app-link img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: brightness(0) invert(1) sepia(0.08) saturate(0.8) opacity(0.9);
}

.app-link .doit-icons {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 0;
  color: var(--quiet);
  font-weight: 800;
}

.app-link .doit-icons img {
  width: 34px;
  height: 34px;
}

.app-link .doit-icons span {
  margin-top: 0;
}

.app-link > span:not(.doit-icons) {
  margin-top: auto;
}

.app-page {
  --accent: var(--olive);
  --accent-soft: var(--olive-soft);
}

.app-mix { --accent: #c9dc73; --accent-soft: rgba(201, 220, 115, 0.14); }
.app-visuality { --accent: #a8bee5; --accent-soft: rgba(168, 190, 229, 0.14); }
.app-log { --accent: #9dcca1; --accent-soft: rgba(157, 204, 161, 0.14); }
.app-learnt { --accent: #e8cc76; --accent-soft: rgba(232, 204, 118, 0.14); }
.app-recipe { --accent: #dc9b7f; --accent-soft: rgba(220, 155, 127, 0.14); }
.app-measure { --accent: #9bc8d1; --accent-soft: rgba(155, 200, 209, 0.14); }
.app-fix { --accent: #c8bdad; --accent-soft: rgba(200, 189, 173, 0.14); }
.app-flowlet { --accent: #96d2a9; --accent-soft: rgba(150, 210, 169, 0.14); }

.app-page main {
  width: min(1080px, calc(100% - 36px));
  margin: 0 auto;
}

.app-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 0.66fr);
  gap: clamp(34px, 7vw, 92px);
  align-items: center;
  min-height: calc(100svh - 88px);
  padding: clamp(74px, 9vw, 118px) 0;
}

.app-hero > * {
  min-width: 0;
}

.app-hero > div:first-child {
  text-align: left;
}

.app-icon-large {
  width: 78px;
  height: 78px;
  object-fit: contain;
  margin-bottom: 28px;
  filter: brightness(0) invert(1) sepia(0.08) saturate(0.8) opacity(0.9);
}

.page-kicker {
  color: var(--accent);
}

.app-hero p:not(.page-kicker) {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.8vw, 1.32rem);
}

.meta-list {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.meta-list span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(243, 234, 220, 0.1);
  font-size: 0.88rem;
  font-weight: 800;
}

.construction-banner {
  display: inline-flex;
  max-width: 100%;
  margin-top: 28px;
  padding: 14px 18px;
  border: 1px solid rgba(232, 204, 118, 0.46);
  border-radius: 16px;
  color: #171715;
  background: var(--accent);
  box-shadow: 0 18px 55px rgba(232, 204, 118, 0.12);
}

.construction-banner span {
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-size: clamp(1.85rem, 4.2vw, 3.5rem);
  font-weight: 800;
  line-height: 0.94;
}

.page-actions {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(243, 234, 220, 0.76);
  text-decoration: none;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(57, 43, 23, 0.12);
}

.button-primary {
  color: #171715;
  background: var(--accent);
  border-color: var(--accent);
}

.phone-frame,
.visual-frame,
.simple-panel,
.app-carousel,
.support-form,
.success-panel {
  border: 1px solid var(--line);
  background: var(--paper-soft);
  box-shadow: var(--shadow);
}

.app-carousel {
  position: relative;
  width: min(390px, 100%);
  justify-self: center;
  overflow: hidden;
  border-radius: 28px;
  padding: 16px 12px 18px;
}

.app-carousel::before {
  content: "";
  display: block;
  width: 42px;
  height: 12px;
  margin: 0 0 18px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 6px 50%, var(--coral) 0 4px, transparent 4.5px),
    radial-gradient(circle at 21px 50%, var(--gold) 0 4px, transparent 4.5px),
    radial-gradient(circle at 36px 50%, var(--green) 0 4px, transparent 4.5px);
}

.carousel-window {
  position: relative;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #171715;
  aspect-ratio: 660 / 1434;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  display: block;
  margin: 0;
  border-radius: inherit;
  opacity: 0;
  transform: translateX(22px) scale(0.985);
  transition: opacity 420ms ease, transform 420ms ease;
  pointer-events: none;
}

.carousel-slide.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
  background: #171715;
}

.carousel-slide img[src$=".svg"] {
  object-fit: fill;
}

.carousel-slide figcaption {
  position: absolute;
  top: -38px;
  left: 58px;
  z-index: 2;
  max-width: calc(100% - 72px);
  padding: 7px 10px;
  border: 1px solid rgba(243, 234, 220, 0.18);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(243, 234, 220, 0.08);
  backdrop-filter: blur(12px);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(243, 234, 220, 0.18);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(23, 23, 21, 0.68);
  backdrop-filter: blur(12px);
  font: inherit;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: var(--quiet);
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease;
}

.carousel-dot.is-active {
  width: 26px;
  background: var(--accent);
}

.phone-frame {
  overflow: hidden;
  width: min(360px, 100%);
  justify-self: center;
  padding: 11px;
  border-radius: 30px;
}

.phone-frame::before,
.visual-frame::before,
.simple-panel::before,
.support-form::before {
  content: "";
  display: block;
  width: 42px;
  height: 12px;
  margin: 0 0 14px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 6px 50%, var(--coral) 0 4px, transparent 4.5px),
    radial-gradient(circle at 21px 50%, var(--gold) 0 4px, transparent 4.5px),
    radial-gradient(circle at 36px 50%, var(--green) 0 4px, transparent 4.5px);
}

.phone-frame img {
  width: 100%;
  aspect-ratio: 9 / 18.5;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.simple-panel {
  min-height: 360px;
  padding: 22px;
  border-radius: 18px;
}

.simple-panel img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin: 44px 0 28px;
  filter: brightness(0) invert(1) sepia(0.08) saturate(0.8) opacity(0.9);
}

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

.visual-frame {
  overflow: hidden;
  padding: 16px;
  border-radius: 18px;
}

.visual-frame img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.wave {
  display: flex;
  align-items: end;
  gap: 10px;
  height: 130px;
  margin-top: 18px;
}

.wave span {
  flex: 1;
  min-width: 12px;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(#e2c75e, #8ca545 56%, #5e77ad);
  animation: pulse 1.45s ease-in-out infinite alternate;
}

.wave span:nth-child(1) { height: 34%; animation-delay: -0.1s; }
.wave span:nth-child(2) { height: 72%; animation-delay: -0.7s; }
.wave span:nth-child(3) { height: 46%; animation-delay: -0.3s; }
.wave span:nth-child(4) { height: 90%; animation-delay: -0.9s; }
.wave span:nth-child(5) { height: 58%; animation-delay: -0.5s; }

@keyframes pulse {
  to { transform: scaleY(0.58); opacity: 0.78; }
}

.support-page main {
  width: min(920px, calc(100% - 36px));
  margin: 0 auto;
}

.support-hero {
  min-height: calc(100svh - 88px);
  display: grid;
  align-content: center;
  padding: clamp(74px, 10vw, 116px) 0;
}

.support-hero .section-heading {
  text-align: center;
}

.support-hero h1,
.success-panel h1 {
  max-width: 760px;
  margin-inline: auto;
  font-size: clamp(3.4rem, 8vw, 7rem);
}

.support-hero p:not(.eyebrow),
.success-panel p {
  color: var(--muted);
}

.support-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
  padding: 18px;
  border-radius: 18px;
}

.support-form::before {
  grid-column: 1 / -1;
}

.support-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.netlify-honeypot {
  display: none;
}

.support-form label:nth-of-type(3),
.support-form label:nth-of-type(4) {
  grid-column: 1 / -1;
}

.support-form input,
.support-form select,
.support-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 13px;
  color: var(--ink);
  background: #1d1c19;
  font: inherit;
}

.support-form input:focus,
.support-form select:focus,
.support-form textarea:focus {
  outline: 3px solid var(--olive-soft);
  border-color: var(--olive);
}

.support-form textarea {
  resize: vertical;
}

.success-panel {
  min-height: 70svh;
  display: grid;
  align-content: center;
  justify-items: center;
  margin-top: 64px;
  padding: clamp(28px, 6vw, 58px);
  border-radius: 18px;
  text-align: center;
}

.privacy-page main {
  width: min(860px, calc(100% - 36px));
  margin: 0 auto;
}

.privacy-content {
  padding: clamp(74px, 10vw, 118px) 0;
}

.privacy-content h1 {
  font-size: clamp(3.2rem, 8vw, 6.6rem);
}

.privacy-content .lede {
  text-align: left;
}

.policy-card {
  margin-top: 34px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,250,240,0.08), rgba(255,250,240,0.035)),
    var(--paper);
  box-shadow: var(--shadow);
}

.policy-card h2 {
  margin-top: 28px;
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.06rem;
  line-height: 1.3;
}

.policy-card h2:first-child {
  margin-top: 0;
}

.policy-card p,
.policy-card li {
  color: var(--muted);
}

.policy-card .policy-date {
  color: var(--ink);
}

.policy-card a {
  color: var(--accent);
  font-weight: 800;
}

.policy-card ul {
  margin: 10px 0 0;
  padding-left: 1.2rem;
}

.site-footer {
  justify-content: space-between;
  gap: 16px;
  width: min(1040px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 46px;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 880px) {
  .app-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .app-carousel {
    width: min(390px, 100%);
  }
}

@media (max-width: 620px) {
  .site-header {
    top: 12px;
    width: calc(100% - 28px);
    margin-top: 12px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: none;
    width: min(250px, calc(100vw - 36px));
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--paper-soft);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: 12px;
  }

  .home-hero {
    min-height: 46svh;
    padding-top: 78px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.95rem, 11.5vw, 3.55rem);
    overflow-wrap: normal;
  }

  .app-page main {
    width: min(100% - 28px, 390px);
  }

  .app-hero {
    gap: 34px;
    padding-top: 72px;
  }

  .app-carousel {
    width: 100%;
    padding: 14px 10px 16px;
    border-radius: 24px;
  }

  .carousel-arrow {
    width: 34px;
    height: 34px;
  }

  .support-form {
    grid-template-columns: 1fr;
  }

  .app-link {
    flex-basis: 100%;
    max-width: none;
    min-height: 120px;
  }

  .support-form label:nth-of-type(3),
  .support-form label:nth-of-type(4) {
    grid-column: auto;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
