:root {
  --cream: #fff4e8;
  --cream-2: #ffe8d4;
  --peach: #eb7a56;
  --peach-deep: #bd5239;
  --ink: #242126;
  --muted: #70676c;
  --surface: rgba(255, 255, 255, 0.78);
  --line: rgba(75, 47, 38, 0.13);
  --mint: #37a983;
  --sky: #5d91d8;
  --rose: #dc6f8d;
  --violet: #7d67d4;
  --ember: #cf4d3f;
  --coral: #df6737;
  --teal: #19a9aa;
  --shadow: 0 24px 70px rgba(129, 68, 42, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.96) 0 13%, transparent 30%),
    radial-gradient(circle at 84% 12%, rgba(255, 206, 179, 0.78) 0 16%, transparent 34%),
    radial-gradient(circle at 58% 58%, rgba(255, 255, 255, 0.54) 0 12%, transparent 30%),
    linear-gradient(135deg, var(--cream), var(--cream-2) 54%, #fff8ef);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 32px));
  margin: 12px auto 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 26px;
  background: rgba(255, 250, 244, 0.62);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 42px rgba(129, 68, 42, 0.09);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 50px;
  padding: 5px 12px 5px 5px;
  border-radius: 20px;
  font-weight: 900;
  font-size: 1.04rem;
  background: rgba(255, 255, 255, 0.46);
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(189, 82, 57, 0.16);
}

.brand span {
  display: grid;
  gap: 1px;
}

.brand strong {
  line-height: 1.05;
}

.brand small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
}

.nav-links a {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--peach), var(--peach-deep));
  box-shadow: 0 10px 24px rgba(189, 82, 57, 0.20);
  font-size: 0.92rem;
  font-weight: 900;
  white-space: nowrap;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(280px, 0.56fr);
  align-items: center;
  gap: 54px;
  width: min(1120px, calc(100% - 32px));
  min-height: calc(100vh - 104px);
  margin: 0 auto;
  padding: 18px 0 42px;
}

.hero-copy {
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--peach-deep);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(3rem, 5.5vw, 4.7rem);
  line-height: 1.05;
  letter-spacing: 0;
  padding-bottom: 0.1em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.hero-text {
  max-width: 610px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 900;
}

.button.primary {
  color: white;
  background: linear-gradient(135deg, var(--peach), var(--peach-deep));
  box-shadow: 0 14px 30px rgba(189, 82, 57, 0.22);
}

.button.secondary {
  color: var(--peach-deep);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.56);
}

.phone-preview {
  display: flex;
  justify-content: center;
  perspective: 1400px;
}

.phone-shell {
  position: relative;
  width: min(270px, 100%);
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 42px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 221, 199, 0.62)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(189, 82, 57, 0.18));
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px rgba(189, 82, 57, 0.08);
  transform: rotate(0.8deg);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.phone-shell:hover {
  transform: rotate(0deg) scale(1.02);
  box-shadow: 
    0 32px 80px rgba(129, 68, 42, 0.24),
    inset 0 0 0 1px rgba(189, 82, 57, 0.12);
}

.phone-shell::before,
.phone-shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.phone-shell::before {
  inset: 10px;
  border-radius: 34px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.56);
  z-index: 2;
}

.phone-shell::after {
  right: -18px;
  bottom: 44px;
  width: 72px;
  height: 180px;
  border-radius: 999px;
  background: rgba(235, 122, 86, 0.16);
  filter: blur(28px);
  z-index: -1;
}

.phone-screen {
  position: relative;
  aspect-ratio: 9 / 19.45;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: #f4f7fa;
}

.app-preview-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.section-heading {
  display: grid;
  gap: 10px;
  max-width: 720px;
  margin-bottom: 28px;
}

.feature-grid,
.companion-grid,
.feature-suite {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card,
.companion-card,
.suite-card,
.privacy-band {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 248, 239, 0.58));
  box-shadow: 0 18px 50px rgba(129, 68, 42, 0.08);
}

.feature-card {
  min-height: 198px;
  padding: 22px;
  border-radius: 28px;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 22px;
  border-radius: 14px;
  color: var(--peach-deep);
  background: rgba(235, 122, 86, 0.14);
  font-weight: 900;
}

.feature-card p {
  color: var(--muted);
  line-height: 1.58;
}

.app-features {
  padding-top: 34px;
}

.feature-suite {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.suite-card {
  min-height: 190px;
  padding: 20px;
  border-radius: 26px;
  position: relative;
  overflow: hidden;
}

.suite-card::after {
  content: "";
  position: absolute;
  right: -38px;
  top: -38px;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: rgba(235, 122, 86, 0.14);
}

.primary-suite {
  grid-column: span 2;
  color: white;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.26) 0 18%, transparent 36%),
    linear-gradient(135deg, var(--peach), var(--peach-deep));
}

.primary-suite h3 {
  color: white;
}

.feature-suite .primary-suite .suite-label,
.feature-suite .primary-suite p {
  color: rgba(255, 255, 255, 0.92);
}

.primary-suite .suite-label,
.primary-suite.suite-card p {
  color: rgba(255, 255, 255, 0.92);
}

.suite-label {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--peach-deep);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.suite-card p {
  color: var(--muted);
  line-height: 1.55;
}

.privacy-band {
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  align-items: center;
  gap: 32px;
  width: min(1120px, calc(100% - 32px));
  margin: 12px auto 20px;
  padding: 34px;
  border-radius: 32px;
}

.privacy-band p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.companions {
  padding-bottom: 84px;
}

.companion-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.companion-card {
  min-height: 170px;
  padding: 20px;
  border-radius: 26px;
  position: relative;
  overflow: hidden;
}

.companion-card::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -34px;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.16;
}

.companion-card span {
  display: block;
  margin-bottom: 50px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.companion-card strong {
  display: block;
  max-width: 150px;
  font-size: 1.2rem;
  line-height: 1.1;
}

.companion-card.peach {
  color: var(--peach);
}

.companion-card.mint {
  color: var(--mint);
}

.companion-card.blue {
  color: var(--sky);
}

.companion-card.rose {
  color: var(--rose);
}

.companion-card.violet {
  color: var(--violet);
}

.companion-card.ember {
  color: var(--ember);
}

.companion-card.coral {
  color: var(--coral);
}

.companion-card.teal {
  color: var(--teal);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 750;
}

.site-footer span:first-child {
  color: var(--ink);
  font-weight: 900;
}

/* Active states and transitions for touch devices */
.button,
.feature-card,
.suite-card,
.companion-card,
.brand,
.header-cta {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.button:active,
.brand:active,
.header-cta:active {
  transform: scale(0.96);
}

.feature-card:active,
.suite-card:active {
  transform: scale(0.98);
  box-shadow: 0 10px 25px rgba(129, 68, 42, 0.05);
}

/* Companion Card Pastel Tints */
.companion-card.peach { background: rgba(235, 122, 86, 0.07); border-color: rgba(235, 122, 86, 0.15); color: var(--peach); }
.companion-card.mint { background: rgba(55, 169, 131, 0.07); border-color: rgba(55, 169, 131, 0.15); color: var(--mint); }
.companion-card.blue { background: rgba(93, 145, 216, 0.07); border-color: rgba(93, 145, 216, 0.15); color: var(--sky); }
.companion-card.rose { background: rgba(220, 111, 141, 0.07); border-color: rgba(220, 111, 141, 0.15); color: var(--rose); }
.companion-card.violet { background: rgba(125, 103, 212, 0.07); border-color: rgba(125, 103, 212, 0.15); color: var(--violet); }
.companion-card.ember { background: rgba(207, 77, 63, 0.07); border-color: rgba(207, 77, 63, 0.15); color: var(--ember); }
.companion-card.coral { background: rgba(223, 103, 55, 0.07); border-color: rgba(223, 103, 55, 0.15); color: var(--coral); }
.companion-card.teal { background: rgba(25, 169, 170, 0.07); border-color: rgba(25, 169, 170, 0.15); color: var(--teal); }

.companion-card:active {
  transform: scale(0.96);
  box-shadow: 0 8px 24px rgba(129, 68, 42, 0.04);
}

@media (max-width: 860px) {
  .site-header {
    align-items: center;
  }

  .nav-links {
    display: none;
  }

  .header-cta {
    min-height: 42px;
    padding: 0 13px;
  }

  .hero,
  .privacy-band {
    grid-template-columns: 1fr;
  }

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

  .hero-copy {
    max-width: none;
  }

  .phone-shell {
    width: min(300px, 100%);
    transform: rotate(0.8deg);
  }

  .phone-shell::after {
    display: none;
  }

  /* 2-Column Responsive Layouts */
  .feature-suite {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .primary-suite {
    grid-column: span 2;
  }

  .companion-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  /* Timeline step indicator for how-it-works */
  .feature-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-left: 20px;
    position: relative;
  }

  .feature-card {
    position: relative;
    margin-left: 32px; /* Offset card to make room for timeline gutter */
    padding: 20px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.85), rgba(255, 248, 239, 0.6));
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 12px 35px rgba(129, 68, 42, 0.05);
    min-height: auto;
  }

  .feature-card:active {
    transform: scale(0.98);
    box-shadow: 0 8px 24px rgba(129, 68, 42, 0.03);
  }

  /* Segmented Timeline Line */
  .feature-card:not(:last-child)::before {
    content: "";
    position: absolute;
    left: -32px; /* Center of timeline gutter */
    top: 36px; /* Center of current icon */
    bottom: -56px; /* Extend through gap to center of next icon */
    width: 2px;
    background: repeating-linear-gradient(to bottom, var(--peach) 0, var(--peach) 5px, transparent 5px, transparent 10px);
    opacity: 0.4;
    z-index: 1;
  }

  .feature-card .feature-icon {
    position: absolute;
    left: -48px; /* Center on line in gutter */
    top: 20px; /* Align with first line of card content */
    margin-bottom: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    box-shadow: 0 3px 8px rgba(189, 82, 57, 0.12);
    background: var(--cream-2);
    border: 2px solid var(--peach);
    color: var(--peach-deep);
    font-size: 0.82rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
  }

  .feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 6px;
    line-height: 1.2;
  }

  .feature-card p {
    font-size: 0.94rem;
    line-height: 1.5;
    color: var(--muted);
    margin: 0;
  }

  .privacy-band {
    padding: 28px;
  }
}

@media (max-width: 520px) {
  .hero,
  .section,
  .privacy-band,
  .site-header,
  .site-footer {
    width: min(100% - 24px, 1120px);
  }

  h1 {
    font-size: 2.45rem;
    line-height: 1.15;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, var(--ink) 65%, var(--peach-deep));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-bottom: 0.15em;
  }

  .hero-text {
    font-size: 1.06rem;
    line-height: 1.6;
    margin-bottom: 24px;
  }

  .hero-actions,
  .site-footer {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .phone-preview {
    position: relative;
  }

  /* Radial ambient glow behind phone */
  .phone-preview::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(255, 206, 179, 0.35) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
  }

  .phone-shell {
    transform: rotate(-1.5deg) scale(0.98);
    box-shadow: 
      0 20px 50px rgba(129, 68, 42, 0.15),
      0 0 35px rgba(235, 122, 86, 0.12);
  }

  .phone-screen {
    min-height: 520px;
  }

  .brand small {
    display: none;
  }

  .header-cta {
    display: inline-flex;
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.8rem;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(189, 82, 57, 0.15);
  }

  .site-header {
    top: 8px;
    margin-top: 8px;
    border-radius: 22px;
    padding: 6px 10px;
  }

  .brand {
    min-height: 44px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .privacy-band {
    padding: 24px;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 244, 232, 0.85));
    border: 1px solid rgba(235, 122, 86, 0.15);
    box-shadow: 0 12px 30px rgba(129, 68, 42, 0.05);
  }

  .privacy-band h2 {
    font-size: 1.7rem;
    line-height: 1.1;
  }

  .privacy-band p:last-child {
    font-size: 0.94rem;
    line-height: 1.6;
  }

  .checkin-card {
    min-height: 284px;
  }

  /* Single Card Layouts for Phones */
  .feature-suite,
  .companion-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .primary-suite {
    grid-column: auto;
  }
}

/* Image loading skeleton */
.phone-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, #f5e6d7 25%, #fdece0 50%, #f5e6d7 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  z-index: 2;
  transition: opacity 0.4s ease-out;
  border-radius: inherit;
}

.phone-screen.loaded::before {
  opacity: 0;
  pointer-events: none;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 20px;
  background: rgba(36, 33, 38, 0.95);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  z-index: 100;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-icon {
  font-size: 1.2rem;
}

/* Document/Info Pages */
.info-page-content {
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
}

.info-page-content h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 8px;
}

.info-page-content p.last-updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.info-page-content h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--ink);
}

.info-page-content p {
  margin-bottom: 16px;
  color: var(--muted);
}

.info-page-content ul {
  padding-left: 20px;
  margin-bottom: 24px;
  color: var(--muted);
}

.info-page-content li {
  margin-bottom: 8px;
}

.info-page-content a {
  color: var(--peach);
  font-weight: 700;
  text-decoration: underline;
}

.info-page-content a:hover {
  color: var(--peach-deep);
}
