@font-face {
  font-family: 'Caprasimo';
  src: url('/assets/fonts/Caprasimo-Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/Montserrat-Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/Montserrat-Medium.ttf') format('truetype');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/Montserrat-SemiBold.ttf') format('truetype');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/Montserrat-Bold.ttf') format('truetype');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/Montserrat-ExtraBold.ttf') format('truetype');
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  --brand: #EE7943;
  --brand-muted: #F7C6AD;
  --brand-strong: #9A3714;
  --accent: #8DA249;
  --accent-muted: #DCE6B4;
  --accent-strong: #82983F;
  --brand-variant: #EBAF47;
  --accent-variant: #759DA9;
  --surface-base: #F2EFE2;
  --surface-raised: #FAF8F0;
  --surface-elevated: #FFFFFF;
  --surface-tint: #EEEBDC;
  --text-primary: #25291C;
  --text-secondary: #4A4F3D;
  --text-tertiary: #6E7361;
  --text-inverse: #FFFFFF;
  --border: #D8D5C2;
  --border-strong: #9EA28D;
  --fill-muted: #E3DFCC;
  --error: #B13F32;
  --shadow: 0 18px 48px rgba(37, 41, 28, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--surface-base);
  color: var(--text-primary);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url('/assets/grain-256.png');
  background-size: 160px 160px;
  opacity: 0.14;
  mix-blend-mode: multiply;
  z-index: 0;
}

img {
  max-width: 100%;
}

a {
  color: var(--brand-strong);
}

a:hover {
  color: var(--brand-strong);
}

h1,
h2 {
  font-family: 'Caprasimo', Georgia, serif;
  font-weight: 400;
  line-height: 1.12;
  margin: 0;
}

h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

p {
  margin: 0;
}

.store-status {
  margin: 12px auto 0;
  max-width: 420px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

[data-store-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.62;
}

.site-shell,
.center-shell,
.document-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.site-nav {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 24px;
}

.site-nav.on-photo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-inverse);
}

.site-nav.on-gradient {
  position: absolute;
  top: 16px;
  left: 50%;
  width: min(calc(100% - 48px), 1120px);
  padding: 14px 16px;
  transform: translateX(-50%);
  border-radius: 20px;
  background: rgba(250, 248, 240, 0.82);
  box-shadow: 0 10px 30px rgba(37, 41, 28, 0.12);
  color: var(--text-primary);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(37, 41, 28, 0.18);
}

.wordmark {
  width: 142px;
  height: auto;
  display: block;
}

.site-nav.on-photo .wordmark {
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.32));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 600;
}

.nav-links a {
  color: inherit;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--brand-strong);
  text-decoration: underline;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-social a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: inherit;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.nav-social a:hover,
.nav-social a:focus-visible {
  background: var(--brand-muted);
  color: var(--brand-strong);
}

.nav-social svg {
  width: 20px;
  height: 20px;
  display: block;
}

.site-nav.on-photo .nav-social a:hover,
.site-nav.on-photo .nav-social a:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  color: var(--text-inverse);
}

.mobile-nav-menu {
  position: relative;
  display: none;
}

.mobile-nav-trigger {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: var(--brand);
  box-shadow: 0 8px 20px rgba(154, 55, 20, 0.2);
  cursor: pointer;
  list-style: none;
}

.mobile-nav-trigger::-webkit-details-marker {
  display: none;
}

.mobile-nav-icon {
  width: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-icon span {
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--text-inverse);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.mobile-nav-menu[open] .mobile-nav-icon span:first-child {
  transform: translateY(6px) rotate(45deg);
}

.mobile-nav-menu[open] .mobile-nav-icon span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-menu[open] .mobile-nav-icon span:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav-links {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  width: 190px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(250, 248, 240, 0.98);
  box-shadow: 0 18px 42px rgba(37, 41, 28, 0.2);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.mobile-nav-links a {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.mobile-nav-links a:hover {
  background: var(--brand-muted);
  color: var(--brand-strong);
}

.site-nav.on-photo .nav-links a:hover {
  color: var(--text-inverse);
}

.hero {
  position: relative;
  min-height: 86svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 20%, rgba(247, 198, 173, 0.96) 0 13%, rgba(247, 198, 173, 0) 39%),
    radial-gradient(circle at 82% 16%, rgba(220, 230, 180, 0.96) 0 15%, rgba(220, 230, 180, 0) 42%),
    radial-gradient(circle at 76% 88%, rgba(141, 162, 73, 0.86) 0 13%, rgba(141, 162, 73, 0) 40%),
    radial-gradient(circle at 34% 86%, rgba(238, 121, 67, 0.82) 0 16%, rgba(238, 121, 67, 0) 44%),
    linear-gradient(135deg, #F2EFE2 0%, #EBAF47 52%, #8DA249 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* Match the app's light-mode gradient scrim: surfaceBase at 50%. */
  background: rgba(242, 239, 226, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 124px 24px 56px;
  color: var(--text-primary);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 310px);
  align-items: center;
  gap: clamp(44px, 8vw, 104px);
}

.hero-copy-column {
  max-width: 680px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0;
}

.eyebrow {
  color: var(--brand-strong);
}

.hero-kicker::before,
.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--brand-variant);
}

.hero h1 {
  max-width: 680px;
  font-size: clamp(48px, 5.2vw, 68px);
}

/* Each sentence stays whole: the title reads as one line or two, never "Hang More. Plan / Less." */
.hero-title-line {
  display: inline-block;
  white-space: nowrap;
}

.hero-copy {
  max-width: 640px;
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: 20px;
  line-height: 1.45;
}

/* Time-window highlights in the hero copy — matches the print flyer (orange / gold / olive) */
.hero-copy .window-today,
.hero-copy .window-tomorrow,
.hero-copy .window-weekend {
  font-weight: 700;
}

.hero-copy .window-today {
  color: var(--brand);
}

.hero-copy .window-tomorrow {
  color: var(--brand-variant);
}

.hero-copy .window-weekend {
  color: var(--accent);
}

.hero-window-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.hero-window-pills span {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 20px;
  background: rgba(250, 248, 240, 0.82);
  box-shadow: 0 4px 14px rgba(37, 41, 28, 0.08);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.hero-app-screenshot {
  width: 100%;
  margin: 0;
  padding: 7px;
  border-radius: 42px;
  background: #11130E;
  box-shadow: 0 28px 70px rgba(37, 41, 28, 0.28);
  line-height: 0;
  transform: rotate(2deg);
}

.hero-device-screen {
  overflow: hidden;
  border-radius: 35px;
  background: #FAF8F0;
}

.hero-device-screen img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.download-cta {
  margin-top: 28px;
}

.mobile-download {
  width: 100%;
}

.desktop-store-options {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.platform-button {
  height: 56px;
  width: fit-content;
  flex: 0 0 auto;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 0 22px 0 18px;
  color: var(--text-inverse);
  text-decoration: none;
  background: var(--brand);
  box-shadow: 0 10px 22px rgba(154, 55, 20, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.platform-button:hover {
  color: var(--text-inverse);
  background: var(--brand-strong);
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(154, 55, 20, 0.26);
}

.platform-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--text-inverse);
  font-weight: 800;
  line-height: 1;
}

.platform-icon svg {
  width: 31px;
  height: 31px;
  display: block;
  fill: currentColor;
}

.platform-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-align: left;
}

.platform-copy small {
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.platform-copy strong {
  color: var(--text-inverse);
  font-family: 'Caprasimo', Georgia, serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.1;
}

.app-button,
.text-link-button {
  min-height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.app-button:hover,
.text-link-button:hover {
  transform: translateY(-1px);
}

.app-button.primary {
  background: var(--brand);
  color: var(--text-inverse);
  box-shadow: 0 10px 22px rgba(154, 55, 20, 0.22);
}

.app-button.main-button {
  height: 56px;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 16px;
  background: var(--brand);
  box-shadow: 0 10px 22px rgba(154, 55, 20, 0.22);
  color: var(--text-inverse);
  font-family: 'Caprasimo', Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.2px;
}

.app-button.main-button:hover {
  background: var(--brand-strong);
  color: var(--text-inverse);
}

.app-button.dark {
  background: var(--text-primary);
  color: var(--surface-base);
  box-shadow: 0 10px 22px rgba(37, 41, 28, 0.22);
}

.app-button.secondary,
.text-link-button {
  background: rgba(250, 248, 240, 0.92);
  color: var(--text-primary);
  border: 2px solid rgba(250, 248, 240, 0.42);
}

.app-button[data-smart-download] {
  cursor: pointer;
}

.section {
  padding: 56px 24px;
}

.section-warm-neutral {
  background: var(--surface-base);
}

.section-brand-soft {
  background:
    linear-gradient(rgba(242, 239, 226, 0.7), rgba(242, 239, 226, 0.78)),
    linear-gradient(135deg, #F7C6AD 0%, #EE7943 56%, #EBAF47 100%);
}

.brand-band.section-forest {
  background:
    radial-gradient(circle at 30% 55%, rgba(238, 121, 67, 0.58) 0%, rgba(238, 121, 67, 0) 32%),
    radial-gradient(circle at 85% 55%, rgba(238, 121, 67, 0.66) 0%, rgba(238, 121, 67, 0) 43%),
    radial-gradient(circle at 10% 75%, rgba(238, 121, 67, 0.46) 0%, rgba(238, 121, 67, 0) 34%),
    radial-gradient(circle at 50% 100%, rgba(235, 175, 71, 0.58) 0%, rgba(235, 175, 71, 0) 53%),
    #1F281A;
}

.section-ember {
  background:
    radial-gradient(circle at 88% 18%, rgba(238, 121, 67, 0.68) 0%, rgba(238, 121, 67, 0) 30%),
    radial-gradient(circle at 10% 82%, rgba(235, 175, 71, 0.42) 0%, rgba(235, 175, 71, 0) 28%),
    linear-gradient(145deg, #1F281A 0%, #3A281F 58%, #1F281A 100%);
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section h2 {
  font-size: 32px;
}

.section-copy {
  max-width: 720px;
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 17px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.screenshot-grid {
  display: grid;
  gap: 18px;
  margin-top: 32px;
}

.screenshot-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.screenshot-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.screenshot-feature {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface-raised);
  border-radius: 24px;
  box-shadow: 0 16px 42px rgba(37, 41, 28, 0.14);
}

.social-showcase-section {
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  padding-bottom: 0;
}

.social-showcase-section .section-inner {
  max-width: 1040px;
}

.social-showcase-section .section-copy {
  max-width: 680px;
}

.social-showcase-scene {
  position: relative;
  min-height: 556px;
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(300px, 1fr);
  grid-template-areas: "cards phone";
  align-content: start;
  align-items: start;
  gap: 12px 34px;
  margin-top: 20px;
  padding-top: 12px;
}

.social-feature-card {
  position: relative;
  z-index: 2;
  padding: 24px;
  border-radius: 24px;
  background: rgba(250, 248, 240, 0.94);
  box-shadow: 0 18px 42px rgba(37, 41, 28, 0.16);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.social-feature-stack {
  position: relative;
  z-index: 2;
  grid-area: cards;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.social-feature-stack .feature-callout {
  margin-top: 0;
  padding: 20px 22px;
}

.social-feature-card h3 {
  color: var(--text-primary);
  font-size: 22px;
}

.social-feature-card p {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.social-feed-card {
  flex: 0 0 auto;
}

.social-map-card {
  flex: 0 0 auto;
}

.app-screenshot.social-feed-phone {
  position: relative;
  z-index: 3;
  grid-area: phone;
  justify-self: end;
  width: min(100%, 270px);
  margin: -140px 40px 0 0;
  transform: rotate(4deg);
  transform-origin: center center;
  box-shadow: 0 28px 62px rgba(37, 41, 28, 0.3);
}

.social-map-background {
  position: absolute;
  z-index: 0;
  left: 50%;
  bottom: 0;
  width: 100vw;
  height: 320px;
  overflow: hidden;
  transform: translateX(-50%);
  background: #E8EBDF;
  box-shadow: inset 0 20px 38px rgba(37, 41, 28, 0.08);
}

.social-map-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.social-map-avatar-pin {
  position: absolute;
  z-index: 4;
  display: block;
  width: 88px;
  aspect-ratio: 48 / 63.7;
  line-height: 0;
  filter: drop-shadow(0 12px 12px rgba(37, 41, 28, 0.2));
  transform-origin: 50% 100%;
}

.social-map-avatar-pin svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.social-map-avatar-pin-jules {
  left: calc(100% + 80px);
  bottom: 218px;
  width: 94px;
  transform: translateX(-50%) rotate(4deg);
}

.social-map-avatar-pin-maya {
  left: 58%;
  bottom: 238px;
  width: 88px;
  transform: translateX(-50%) rotate(-3deg);
}

.social-map-avatar-pin-sam {
  left: 64%;
  bottom: 42px;
  width: 78px;
  transform: translateX(-50%) rotate(2deg);
}

.screenshot-feature-copy {
  padding: 24px 24px 0;
}

.feature-name {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.screenshot-feature h3 {
  color: var(--text-primary);
  font-size: 22px;
}

.screenshot-feature p {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.app-screenshot {
  width: min(78%, 280px);
  margin: 24px auto 28px;
  padding: 7px;
  border-radius: 40px;
  background: #11130E;
  box-shadow: 0 18px 38px rgba(37, 41, 28, 0.2);
  line-height: 0;
}

.app-screenshot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 33px;
  background: var(--surface-base);
}

.feature-callout {
  display: flex;
  align-items: baseline;
  gap: 10px 18px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding: 18px 22px;
  border-radius: 20px;
  background: var(--accent-muted);
  color: var(--text-primary);
}

.feature-callout strong {
  font-family: 'Caprasimo', Georgia, serif;
  font-size: 20px;
  font-weight: 400;
}

.feature-callout span {
  color: var(--text-secondary);
  font-size: 14px;
}

.feature-tile,
.faq-item,
.link-panel,
.code-box,
.not-found-panel {
  background: var(--surface-raised);
  border: 2px solid var(--border);
  border-radius: 20px;
}

.feature-tile {
  padding: 18px;
  border: 0;
  box-shadow: 0 12px 30px rgba(37, 41, 28, 0.1);
}

.feature-tile strong,
.stat-value {
  display: block;
  font-family: 'Caprasimo', Georgia, serif;
  font-weight: 400;
  color: var(--text-primary);
}

.feature-tile strong {
  font-size: 22px;
}

.feature-tile span {
  display: block;
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: 14px;
}

.brand-band {
  background: var(--text-primary);
  color: var(--surface-base);
}

.brand-band .section-copy {
  color: #D4D1C1;
}

.brand-band .feature-tile {
  background: rgba(47, 51, 37, 0.82);
  box-shadow: 0 14px 34px rgba(31, 40, 26, 0.24);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.brand-band .feature-tile strong {
  color: var(--brand-variant);
}

.brand-band .feature-tile span {
  color: #D4D1C1;
}

.brand-band .screenshot-feature {
  background: rgba(47, 51, 37, 0.82);
  box-shadow: 0 18px 46px rgba(31, 40, 26, 0.28);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.brand-band .feature-name {
  color: var(--brand-variant);
}

.brand-band .screenshot-feature h3 {
  color: var(--surface-base);
}

.brand-band .screenshot-feature p {
  color: #D4D1C1;
}

.profile-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 64px;
  align-items: center;
}

.profile-showcase-copy {
  max-width: 720px;
}

.profile-showcase .profile-screenshot {
  width: min(100%, 290px);
  margin: 0 auto;
}

.center-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 18px;
  background:
    linear-gradient(180deg, rgba(242, 239, 226, 0.82), rgba(242, 239, 226, 0.98)),
    url('/assets/brand-og.png') center / cover no-repeat;
}

.invite-panel {
  width: min(100%, 440px);
  background: rgba(250, 248, 240, 0.95);
  border: 2px solid var(--border);
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--shadow);
  text-align: center;
}

.panel-logo {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  display: block;
  margin: 0 auto 20px;
  box-shadow: 0 12px 26px rgba(37, 41, 28, 0.16);
}

.invite-panel h1,
.not-found-panel h1 {
  font-size: 30px;
}

.subtitle {
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.55;
}

.code-box {
  max-width: 248px;
  margin: 24px auto 0;
  padding: 14px 18px;
  display: none;
  background: var(--surface-elevated);
  border-style: dashed;
  border-color: var(--brand);
}

.code-box.visible {
  display: block;
}

.code-label {
  color: var(--text-tertiary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.code-value {
  margin-top: 2px;
  color: var(--text-primary);
  font-family: 'Caprasimo', Georgia, serif;
  font-size: 28px;
}

.panel-footer,
.footer {
  margin-top: 24px;
  color: var(--text-secondary);
  font-size: 13px;
  text-align: center;
}

.panel-footer a,
.footer a {
  color: var(--text-secondary);
  text-decoration: none;
}

.panel-footer a:hover,
.footer a:hover {
  color: var(--brand-strong);
}

.document-shell {
  padding-bottom: 56px;
}

.document-hero {
  padding: 42px 24px 26px;
  background: var(--surface-tint);
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
}

.document-hero-inner,
.document {
  max-width: 820px;
  margin: 0 auto;
}

.document-hero h1 {
  font-size: 38px;
}

.updated {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 14px;
}

.document {
  padding: 34px 24px 0;
}

.document h2 {
  margin-top: 36px;
  margin-bottom: 12px;
  font-size: 24px;
}

.document h3 {
  margin-top: 22px;
  margin-bottom: 8px;
  font-weight: 600;
}

.document p,
.document li {
  color: var(--text-primary);
  font-size: 15px;
}

.document p {
  margin-bottom: 13px;
}

.document ul,
.document ol {
  padding-left: 22px;
  margin: 0 0 14px;
}

.document li {
  margin-bottom: 7px;
}

.summary,
.toc,
.faq-item {
  background: var(--surface-raised);
  border: 2px solid var(--border);
  border-radius: 18px;
}

.summary {
  padding: 16px 18px;
  margin: 16px 0 18px;
  color: var(--text-secondary);
}

.summary strong {
  color: var(--text-primary);
}

.privacy-choices {
  background: var(--surface-raised);
  border: 2px solid var(--border);
  border-radius: 18px;
  padding: 16px 18px;
  margin: 12px 0 24px;
}

.privacy-choices p {
  margin: 0 0 12px;
  color: var(--text-secondary);
}

.privacy-choices button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  min-height: 44px;
  font: inherit;
  font-weight: 700;
  color: var(--text-inverse);
  background: var(--brand-strong);
  cursor: pointer;
}

.privacy-choices button:focus-visible {
  outline: 3px solid var(--brand-variant);
  outline-offset: 2px;
}

.toc {
  padding: 18px 20px;
  margin: 22px 0 24px;
}

.toc h3 {
  margin-top: 0;
}

.toc a {
  text-decoration: none;
}

.document table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 18px;
  background: var(--surface-raised);
  border: 2px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  font-size: 14px;
}

.document th,
.document td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.document th {
  background: var(--fill-muted);
  font-weight: 700;
}

.document tr:last-child td {
  border-bottom: 0;
}

.document code {
  background: var(--fill-muted);
  border-radius: 6px;
  padding: 2px 6px;
  color: var(--text-secondary);
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 13px;
}

.support-header {
  text-align: center;
}

.support-header .wordmark {
  margin: 0 auto 18px;
}

.email-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 24px 0 10px;
}

.email-address {
  color: var(--text-tertiary);
  font-size: 14px;
}

.faq {
  margin-top: 34px;
}

.faq h2 {
  text-align: center;
}

.faq-item {
  padding: 16px 18px;
  margin-top: 12px;
}

.faq-item p {
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: 14px;
}

.link-row {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 28px;
  font-size: 14px;
}

.link-row a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 700;
}

.link-row a:hover {
  color: var(--brand-strong);
}

.not-found-panel {
  width: min(100%, 440px);
  padding: 30px;
  box-shadow: var(--shadow);
  text-align: center;
}

.not-found-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  min-height: 34px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--brand-muted);
  color: var(--brand-strong);
  font-weight: 800;
}

@media (max-width: 900px) {
  .social-showcase-section {
    padding-top: 56px;
  }

  .social-showcase-scene {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "cards"
      "phone"
      "mapbg";
    gap: 12px;
    margin-top: 18px;
    padding-top: 0;
  }

  .social-feature-card {
    padding: 22px;
  }

  .app-screenshot.social-feed-phone {
    justify-self: center;
    width: min(76vw, 320px);
    margin: 6px auto -150px;
    transform: rotate(2deg);
  }

  .social-map-background {
    position: relative;
    grid-area: mapbg;
    left: 50%;
    bottom: auto;
    width: 100vw;
    height: 470px;
    margin-top: -170px;
    transform: translateX(-50%);
  }

  .social-map-image {
    object-fit: cover;
  }

  .social-map-avatar-pin {
    width: 76px;
  }

  .social-map-avatar-pin-jules {
    left: 86%;
    bottom: 158px;
    width: 80px;
  }

  .social-map-avatar-pin-maya {
    left: 18%;
    bottom: 104px;
    width: 76px;
  }

  .social-map-avatar-pin-sam {
    left: 56%;
    bottom: 38px;
    width: 70px;
  }

}

@media (max-width: 720px) {
  .site-nav {
    padding: 18px;
  }

  .nav-actions {
    gap: 10px;
  }

  .site-nav.on-gradient {
    top: 10px;
    width: calc(100% - 24px);
    padding: 11px 12px;
    border-radius: 18px;
  }

  .wordmark {
    width: 124px;
  }

  .nav-links {
    display: none;
  }

  .mobile-nav-menu {
    display: block;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 108px 18px 0;
  }

  .hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-flow: row;
    gap: 0;
    align-items: start;
  }

  .hero-copy-column {
    display: contents;
  }

  .hero-kicker {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: start;
    margin-bottom: 28px;
  }

  .hero h1 {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-bottom: 24px;
    font-size: 42px;
  }

  .hero-copy {
    grid-column: 1 / -1;
    grid-row: 3;
    align-self: start;
    margin-top: 0;
    font-size: 16px;
    line-height: 1.5;
  }

  .hero-window-pills {
    grid-column: 1 / -1;
    grid-row: 4;
    align-self: start;
    justify-content: center;
    gap: 8px;
    margin-top: 26px;
  }

  .download-cta {
    grid-column: 1 / -1;
    grid-row: 5;
    margin-top: 22px;
  }

  .hero-app-screenshot {
    grid-column: 1 / -1;
    grid-row: 6;
    align-self: start;
    justify-self: center;
    display: block;
    width: min(72vw, 290px);
    aspect-ratio: 0.57;
    margin-top: 30px;
    padding: 5px 5px 0;
    overflow: hidden;
    border-radius: 30px 30px 0 0;
    box-shadow: 0 20px 44px rgba(37, 41, 28, 0.28);
    transform: none;
  }

  .hero-device-screen {
    border-radius: 25px 25px 0 0;
  }

  .hero-window-pills span {
    min-height: 40px;
    padding: 0 13px;
    font-size: 12px;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

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

  .screenshot-grid-two,
  .screenshot-grid-three,
  .profile-showcase {
    grid-template-columns: 1fr;
  }

  .screenshot-feature-copy {
    padding: 22px 20px 0;
  }

  .app-screenshot {
    width: min(76vw, 290px);
  }

  .profile-showcase {
    gap: 32px;
  }

  .profile-showcase-copy {
    max-width: none;
  }

  .section {
    padding: 44px 18px;
  }

  .social-showcase-section {
    padding-top: 56px;
    padding-bottom: 0;
  }

  .section h2 {
    font-size: 28px;
  }

  .invite-panel {
    padding: 24px 20px;
  }

  .document-hero {
    padding: 30px 18px 22px;
  }

  .document-hero h1 {
    font-size: 32px;
  }

  .document {
    padding: 26px 18px 0;
  }

  .document table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media (min-width: 721px) {
  .mobile-download {
    display: none;
  }

  .desktop-store-options {
    display: flex;
  }
}

@media (min-width: 721px) and (max-width: 900px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 32px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .platform-button {
    padding: 0 14px 0 10px;
  }
}

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

  .nav-actions {
    gap: 8px;
  }

  .nav-social {
    gap: 0;
  }

  .nav-social a {
    width: 36px;
    height: 36px;
  }

  .brand-icon {
    width: 38px;
    height: 38px;
  }

  .hero h1 {
    font-size: 38px;
  }
}

@media (max-width: 360px) {
  .wordmark {
    width: 104px;
  }
}
