/* Art Block marketing site — light-mode palette (parchment, ink, accent) */
:root {
  --bg: #f2f2f7;
  --bg-light: #ffffff;
  --bg-panel: #ebebf0;
  --bg-deep: #e5e5ea;
  --engraved: #8e8e93;
  --raised: #ffffff;
  --text-primary: #1c1c1e;
  --text-sub: #48484a;
  --text-muted: #8e8e93;
  --accent: #5c4033;
  --accent-hover: #452f26;
  --accent-gold: #d6b066;
  --accent-gold-soft: rgba(214, 176, 102, 0.22);
  --accent-gold-line: rgba(214, 176, 102, 0.45);
  --radius-card: 18px;
  --radius-btn: 10px;
  --shadow-emboss: 1px 1px 0 rgba(255, 255, 255, 0.85),
    -1px -1px 0 rgba(0, 0, 0, 0.06), 0 8px 24px rgba(24, 22, 18, 0.08);
  /* Hero: app icon + logotype share the same vertical size */
  --hero-lockup-mark: clamp(52px, 11vw, 72px);
  font-size: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg);
  min-height: 100vh;
}

/* Homepage: global header + full-height hero without double scroll */
body.home {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
body.home main {
  flex: 1 0 auto;
  width: 100%;
}
body.home .legal-doc-header {
  flex-shrink: 0;
}

/* Subtle grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: -1;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: var(--accent-gold);
  text-decoration: underline;
}
a:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Logotype as title + app icon lockup */
.hero-title {
  display: flex;
  justify-content: center;
  margin: 0 0 20px;
  line-height: 0;
}
.hero-brand-lockup {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3.5vw, 22px);
  line-height: 0;
  width: 100%;
  max-width: 100%;
}
.app-icon {
  flex-shrink: 0;
  display: block;
  width: var(--hero-lockup-mark);
  height: var(--hero-lockup-mark);
  border-radius: 22%;
  object-fit: cover;
  box-shadow: 0 4px 18px rgba(24, 22, 18, 0.12),
    0 2px 12px var(--accent-gold-soft);
}
.logotype-title {
  display: block;
  height: auto;
  width: auto;
  max-height: clamp(3.5rem, 14vw, 6.75rem);
  max-width: min(560px, 92vw);
  margin: 0 auto;
}
.hero-logotype-slot {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  height: var(--hero-lockup-mark);
}
.hero-brand-lockup .logotype-title {
  display: block;
  margin: 0;
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
}
.logotype-title--legal {
  max-height: clamp(2.85rem, 11vw, 5rem);
  max-width: min(480px, 90vw);
}
.logotype-title-wrap {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}
.logotype-title-wrap:hover,
.logotype-title-wrap:focus {
  opacity: 0.9;
  text-decoration: none;
}
/* Hero — narrow: stacked; wide: copy beside phone mockup.
   Full viewport height + vertical center for first-screen breathing room. */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(2rem, 6vh, 3.5rem) 0;
  padding-top: max(clamp(2rem, 6vh, 3.5rem), env(safe-area-inset-top, 0px));
  padding-bottom: max(
    clamp(2rem, 6vh, 3.5rem),
    env(safe-area-inset-bottom, 0px)
  );
  text-align: center;
}
body.home .hero {
  min-height: max(
    28rem,
    calc(100vh - clamp(5.5rem, 20vw, 9rem))
  );
  min-height: max(
    28rem,
    calc(100dvh - clamp(5.5rem, 20vw, 9rem))
  );
}
.hero .wrap {
  width: 100%;
}
.hero-split {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 36px;
}
.hero-copy {
  width: 100%;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}
.hero-lead {
  font-family: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(1.35rem, 3.8vw, 1.9rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  line-height: 1.2;
  color: var(--text-primary);
  text-shadow: 1px 1px 0 rgba(158, 154, 147, 0.35),
    -1px -1px 0 rgba(222, 218, 212, 0.5),
    0 0 42px var(--accent-gold-soft);
}
.hero .tagline {
  font-size: 1.125rem;
  color: var(--text-sub);
  max-width: 32rem;
  margin: 0 auto 28px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

@media (min-width: 900px) {
  .hero {
    text-align: left;
    padding: clamp(2.25rem, 7vh, 4rem) 0;
    padding-top: max(
      clamp(2.25rem, 7vh, 4rem),
      env(safe-area-inset-top, 0px)
    );
    padding-bottom: max(
      clamp(2.25rem, 7vh, 4rem),
      env(safe-area-inset-bottom, 0px)
    );
  }
  .hero-split {
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    gap: clamp(32px, 5vw, 72px);
  }
  .hero-copy {
    flex: 1 1 0;
    min-width: min(100%, 22rem);
    max-width: 34rem;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
  }
  .hero-title {
    text-align: left;
    justify-content: flex-start;
  }
  .hero .tagline {
    margin-left: 0;
    margin-right: 0;
    max-width: 34rem;
  }
  .hero .cta-row {
    justify-content: flex-start;
  }
  .hero-visual {
    flex: 0 0 auto;
    width: min(300px, 34%);
    max-width: 320px;
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
    align-self: center;
  }
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: linear-gradient(165deg, #b78d46 0%, var(--accent-gold) 100%);
  color: var(--bg-light);
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-emboss);
  text-decoration: none;
  transition: filter 0.15s ease, transform 0.1s ease;
}
.btn-primary:hover {
  filter: brightness(0.94);
  color: var(--bg-light);
  text-decoration: none;
}
.btn-primary:active {
  transform: scale(0.98);
}
.btn-primary--soon {
  opacity: 0.75;
  cursor: default;
  pointer-events: none;
}

button.btn-primary {
  margin: 0;
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
}

button.btn-primary:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 3px;
}

/* Same look as iOS CTA; hover reveals “Coming soon” (pointer-events stay on). */
.btn-primary--android-soon {
  pointer-events: auto;
}

.btn-primary--android-soon:hover,
.btn-primary--android-soon:focus-visible {
  filter: none;
}

.btn-primary--android-soon:active {
  transform: none;
}

.btn-android-face {
  display: inline-grid;
  place-items: center;
  line-height: 1.2;
}

.btn-android-default,
.btn-android-hover {
  grid-area: 1 / 1;
  transition: opacity 0.16s ease;
}

.btn-android-hover {
  opacity: 0;
}

.btn-primary--android-soon:hover .btn-android-default,
.btn-primary--android-soon:focus-visible .btn-android-default {
  opacity: 0;
}

.btn-primary--android-soon:hover .btn-android-hover,
.btn-primary--android-soon:focus-visible .btn-android-hover {
  opacity: 1;
}

.hero-visual {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: min(320px, 88vw);
}

/* images/iphone.webp — screen area matches transparent cutout (measured from asset) */
.phone-mockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  --phone-screen-top: 1.73%;
  --phone-screen-right: 5.54%;
  --phone-screen-bottom: 1.85%;
  --phone-screen-left: 5.66%;
  /*
   * Single % border-radius draws an *ellipse* (horizontal vs vertical radii scale from width vs height),
   * which stretches corners on a tall screen. Use slash form so the corner is circular
   * in physical space: rx ≈ ry in px ⇔ rx% of width / ry% of height with ry = rx × (W/H).
   * Tuned for this asset’s cutout (~769×1668); nudge both if corners still miss the bevel.
   */
  --phone-screen-radius-x: 6.85%;
  --phone-screen-radius-y: 3.16%;
}
.phone-mockup-body {
  position: relative;
  width: 100%;
  line-height: 0;
  filter: drop-shadow(0 26px 44px rgba(0, 0, 0, 0.2))
    drop-shadow(0 10px 22px rgba(0, 0, 0, 0.12));
}
.phone-mockup-device {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  /* Let swipes/clicks reach the carousel through the transparent screen cutout */
  pointer-events: none;
}
.phone-mockup-screen {
  position: absolute;
  z-index: 0;
  top: var(--phone-screen-top);
  right: var(--phone-screen-right);
  bottom: var(--phone-screen-bottom);
  left: var(--phone-screen-left);
  border-radius: var(--phone-screen-radius-x) / var(--phone-screen-radius-y);
  overflow: hidden;
  background: #000;
  pointer-events: auto;
}
.phone-carousel-track {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.phone-carousel-track::-webkit-scrollbar {
  display: none;
}
.phone-carousel-track:focus {
  outline: none;
}
.phone-carousel-track:focus-visible {
  box-shadow: inset 0 0 0 2px var(--accent-gold);
}
.phone-carousel-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  margin: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.phone-carousel-slide img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.phone-carousel-dots {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px 0 0;
  margin-top: 4px;
  background: transparent;
}
.phone-carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(72, 72, 74, 0.32);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.phone-carousel-dot:hover {
  background: var(--accent-gold-line);
}
.phone-carousel-dot.is-active {
  background: var(--accent-gold);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
  transform: scale(1.15);
}

/* Section */
.section {
  padding: clamp(36px, 6vw, 70px) 0 clamp(90px, 19.5vw, 210px);
}
.section-label {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-gold);
  text-align: center;
  margin: 0 0 10px;
}
.section h2 {
  font-family: Palatino, "Palatino Linotype", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 400;
  text-align: center;
  margin: 0 0 clamp(9px, 1.25vw, 13px);
  text-decoration: underline;
  text-decoration-color: var(--accent-gold-line);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
}
.section .lead {
  text-align: center;
  color: var(--text-sub);
  max-width: 560px;
  margin: 0 auto clamp(24px, 3vw, 36px);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(24px, 3vw, 36px);
}
.feature-card {
  background: var(--bg-panel);
  border-radius: var(--radius-card);
  padding: clamp(28px, 4vw, 36px) clamp(24px, 3.5vw, 32px);
  box-shadow: 1px 1px 0 var(--raised), -1px -1px 0 rgba(0, 0, 0, 0.05),
    0 6px 20px rgba(24, 22, 18, 0.06);
  border: 1px solid rgba(142, 142, 147, 0.12);
  border-top: 2px solid var(--accent-gold-line);
}
.feature-card h3 {
  font-family: Palatino, "Palatino Linotype", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 400;
  margin: 0 0 10px;
}
.feature-card p {
  margin: 0;
  color: var(--text-sub);
  font-size: 14px;
}

/* Follows feature section: avoid stacking two large section paddings */
.section--creator {
  position: relative;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: clamp(120px, 26vw, 280px);
}
.creator-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 14%,
    #000 86%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 14%,
    #000 86%,
    transparent 100%
  );
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
}
.creator-bg-collage {
  position: absolute;
  inset: -4% -2%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  opacity: 0.9;
}
.creator-bg-img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: center;
}
.creator-bg-img--left {
  object-position: 38% 45%;
  transform: scale(1.06);
  transform-origin: 40% 50%;
}
.creator-bg-img--right {
  object-position: 62% 50%;
  transform: scale(1.06);
  transform-origin: 58% 50%;
}
.creator-bg-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(242, 242, 247, 0.86) 0%,
    rgba(242, 242, 247, 0.76) 42%,
    rgba(242, 242, 247, 0.82) 100%
  );
}
@media (max-width: 700px) {
  .creator-bg {
    -webkit-mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      #000 18%,
      #000 82%,
      transparent 100%
    );
    mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      #000 18%,
      #000 82%,
      transparent 100%
    );
  }
  .creator-bg-collage {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    inset: -2% 0;
    opacity: 0.82;
  }
  .creator-bg-img {
    min-height: 200px;
  }
  .creator-bg-img--left,
  .creator-bg-img--right {
    transform: scale(1.04);
  }
}
.creator-wrap {
  position: relative;
  z-index: 1;
}
.section--creator h2 {
  margin-bottom: clamp(22px, 3vw, 32px);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}
.creator-prose {
  max-width: 38rem;
  margin: 0 auto;
  text-align: left;
  padding: clamp(20px, 4vw, 28px) clamp(22px, 4vw, 32px);
  background: rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-card);
  border: 1px solid rgba(142, 142, 147, 0.14);
  box-shadow: 0 12px 40px rgba(24, 22, 18, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.creator-prose p {
  margin: 0 0 1.1em;
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.6;
}
.creator-prose p:last-child {
  margin-bottom: 0;
}
.creator-prose strong {
  font-weight: 600;
  color: var(--text-primary);
}
.creator-prose em {
  font-style: italic;
  color: var(--text-primary);
}
.creator-prose .creator-inline-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-gold-line);
  text-underline-offset: 0.15em;
}
.creator-prose .creator-inline-link:hover,
.creator-prose .creator-inline-link:focus {
  color: var(--accent-gold);
  text-decoration: none;
}
.creator-prose .creator-inline-link:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
  border-radius: 2px;
}
.creator-prose .creator-signature {
  margin-top: 0.35em;
  font-family: Palatino, "Palatino Linotype", Georgia, serif;
  font-size: 1.05rem;
  color: var(--text-primary);
}
@media (prefers-reduced-transparency: reduce) {
  .creator-prose {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, 0.96);
  }
}

/* Footer */
.site-footer {
  margin-top: clamp(48px, 8vw, 96px);
  padding: 48px 0 40px;
  border-top: 1px solid var(--accent-gold-line);
  text-align: center;
}
.footer-brand {
  display: inline-block;
  margin: 0 0 20px;
  line-height: 0;
  text-decoration: none;
}
.footer-brand:hover,
.footer-brand:focus {
  opacity: 0.9;
  text-decoration: none;
}
.footer-brand:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 4px;
  border-radius: 4px;
}
.footer-logotype {
  display: block;
  width: auto;
  height: auto;
  max-height: clamp(2.25rem, 5.5vw, 3.35rem);
  max-width: min(300px, 78vw);
  object-fit: contain;
  object-position: center;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: center;
  margin-bottom: 16px;
}
.footer-links a {
  font-size: 14px;
}
.copyright {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

/* Legal pages — single-column readable layout */
body.legal-doc {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.legal-doc-header {
  padding: 28px 24px 22px;
  text-align: center;
  border-bottom: 1px solid rgba(142, 142, 147, 0.22);
  background: var(--bg);
}

.legal-doc-home {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-sub);
  transition: color 0.15s ease;
}

.legal-doc-home:hover,
.legal-doc-home:focus {
  color: var(--accent-gold);
  text-decoration: none;
}

.legal-doc-home-logo {
  display: block;
  width: auto;
  height: auto;
  max-height: 6.5rem;
  max-width: min(640px, 92vw);
  object-fit: contain;
  object-position: center top;
}

.legal-doc-home-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-doc-main {
  flex: 1 0 auto;
  width: 100%;
  padding: 44px 0 72px;
}

.legal-doc-content {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-doc-content h1 {
  font-family: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(1.85rem, 4.5vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  text-align: center;
  margin: 0 0 16px;
  color: var(--text-primary);
}

.legal-meta {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
  text-align: center;
  margin: 0 0 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--accent-gold-line);
}

.legal-doc-prose {
  font-size: 15px;
  line-height: 1.65;
}

.legal-doc-prose > p,
.legal-doc-prose ul {
  color: var(--text-sub);
  margin: 0 0 16px;
}

.legal-doc-prose ul {
  padding-left: 1.25rem;
}

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

.legal-doc-prose h2 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin: 40px 0 14px;
  padding: 0;
  border: none;
}

.legal-doc-prose h2:first-of-type {
  margin-top: 0;
}

.legal-doc-disclaimer {
  margin-top: 40px;
  padding: 18px 20px;
  background: var(--bg-panel);
  border-radius: var(--radius-card);
  border: 1px solid var(--accent-gold-line);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-sub);
}

.legal-doc-footer.site-footer {
  flex-shrink: 0;
  margin-top: 0;
}
