.site-shell {
  --home-desktop-max: 1152px;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--canvas);
}

.site-header {
  --home-header-row-height: 57px;
  position: relative;
  z-index: 20;
  height: var(--home-header-row-height);
  border-bottom: 1px solid rgba(109, 79, 51, 0.06);
  background: rgba(255, 255, 255, 0.96);
}

.site-header__inner {
  display: flex;
  width: calc(100% - 32px);
  height: var(--home-header-row-height);
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: "PingFang SC", var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  text-decoration: none;
}

.site-header__mark {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow:
    0 0 0 1px #ffedd5,
    0 4px 14px rgba(185, 71, 0, 0.12);
}

.site-header__ai {
  color: var(--orange-deep);
}

.site-header__login {
  display: none;
  position: absolute;
  top: calc(var(--home-header-row-height) + 13px);
  right: 20px;
  left: 20px;
  min-width: 58px;
  height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--button-gradient);
  box-shadow: 0 4px 10px rgba(185, 71, 0, 0.18);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
  transition: filter 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.site-header__menu {
  display: inline-flex;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
  border: 0;
  color: var(--secondary);
  background: transparent;
  cursor: pointer;
}

.site-header__menu span {
  display: block;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: opacity 160ms ease, transform 160ms ease;
}

.site-header[data-mobile-menu-open] {
  height: calc(var(--home-header-row-height) + 66px);
}

.site-header[data-mobile-menu-open] .site-header__inner {
  border-bottom: 1px solid #ffedd5;
}

.site-header[data-mobile-menu-open] .site-header__login {
  display: inline-flex;
  height: 40px;
}

.site-header[data-mobile-menu-open] .site-header__menu span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header[data-mobile-menu-open] .site-header__menu span:nth-child(2) {
  opacity: 0;
}

.site-header[data-mobile-menu-open] .site-header__menu span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.site-header[data-authenticated] {
  height: var(--home-header-row-height);
}

.site-header[data-authenticated] .site-header__menu {
  display: none;
}

.site-header__login:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 13px rgba(185, 71, 0, 0.24);
}

.site-header__login:active {
  transform: translateY(1px) scale(0.97);
}

.site-header__login--authenticated {
  display: inline-flex;
  position: static;
  width: auto;
  min-width: 0;
  max-width: 176px;
  height: 36px;
  gap: 8px;
  padding: 0 14px 0 4px;
  border: 1px solid #fed7aa;
  color: #3d2c1e;
  background: rgba(255, 247, 237, 0.9);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  cursor: default;
  font-weight: 500;
}

.site-header__login--authenticated:hover {
  border-color: #fed7aa;
  background: rgba(255, 247, 237, 0.9);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  filter: none;
  transform: none;
}

.site-header__login--authenticated:active {
  border-color: #fed7aa;
  background: rgba(255, 247, 237, 0.9);
  transform: none;
}

.site-header__user-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: var(--button-gradient);
}

.site-header__user-icon[hidden],
.site-header__phone[hidden] {
  display: none;
}

.site-header__user-svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.site-header__phone {
  overflow: hidden;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero {
  height: auto;
  overflow: hidden;
  padding: 0;
  background: #fdf8f1;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.hero__copy {
  grid-area: 1 / 1;
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 0 16px;
  font-family: var(--font-heading);
  transform: none;
}

.hero h1 {
  display: inline-block;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  transform: scaleX(0.975);
  transform-origin: left center;
  white-space: nowrap;
}

.hero h1 span {
  color: var(--orange-deep);
}

.hero__tagline,
.hero__description {
  margin: 0;
  white-space: nowrap;
}

.hero__tagline {
  margin-top: 8px;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.75;
}

.hero__tagline i {
  margin: 0;
  color: var(--orange-soft);
  font-style: normal;
}

.hero__description {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}

.hero__desktop-tagline {
  display: inline;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 28px;
  margin-top: 12px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--button-gradient);
  box-shadow: 0 7px 14px rgba(228, 111, 0, 0.2);
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  text-decoration: none;
  transition: filter 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.hero__cta .arrow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 0;
  padding: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  font-size: 15px;
}

.hero__cta:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 9px 18px rgba(228, 111, 0, 0.25);
}

.hero__cta:active {
  transform: translateY(1px);
}

.home-media {
  display: block;
  height: auto;
  object-fit: contain;
}

.home-media--hero {
  grid-area: 1 / 1;
  width: 100%;
  aspect-ratio: 786 / 616;
  transform: none;
}

.features {
  padding: 12px;
  background: var(--canvas);
}

.feature-grid {
  display: grid;
  margin: 0 auto;
}

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

.feature-grid--secondary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 10px;
  gap: 8px;
}

.feature-card {
  --card-copy-padding: 12px 12px 4px;
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(112, 74, 34, 0.07);
  font-family: var(--font-heading);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.feature-card:hover {
  border-color: rgba(255, 122, 0, 0.72);
  box-shadow: 0 6px 16px rgba(178, 92, 17, 0.13);
}

.feature-card__link {
  position: absolute;
  z-index: 4;
  inset: 0;
  border-radius: inherit;
  color: inherit;
  text-decoration: none;
}

.feature-card__link:focus-visible {
  outline: 3px solid rgba(255, 122, 0, 0.36);
  outline-offset: -3px;
}

.feature-card--primary {
  --card-copy-padding: 14px 14px 8px;
  height: 184px;
}

.feature-card--secondary {
  height: 108px;
}

.feature-card__copy {
  position: relative;
  z-index: 2;
  padding: var(--card-copy-padding);
}

.feature-card__heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.feature-card--secondary .feature-card__heading {
  align-items: flex-end;
}

.feature-card h2 {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.375;
  letter-spacing: 0;
}

.feature-card--primary h2 {
  font-size: 14px;
  line-height: 1.25;
}

.feature-card p {
  position: relative;
  z-index: 2;
  max-width: 100%;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.75;
}

.feature-card--secondary p {
  line-height: 1.5;
}

.feature-card__index {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  border-radius: 6px;
  color: #fff;
  background: var(--button-gradient);
  font-size: 10px;
  font-weight: 700;
}

.feature-card .home-media {
  position: absolute;
  z-index: 1;
}

.home-media--primary {
  right: 8px;
  bottom: 8px;
  width: calc(100% - 16px);
  max-width: none;
  height: 76%;
  object-fit: contain;
  object-position: center bottom;
}

.feature-card--primary:nth-child(2) .home-media--primary {
  height: 76%;
}

.home-media--secondary {
  right: 8px;
  bottom: 6px;
  width: 48px;
  height: 48px;
  aspect-ratio: 1;
}

.feature-card__action {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--button-gradient);
  box-shadow: 0 4px 8px rgba(210, 93, 0, 0.22);
  cursor: pointer;
  transition: filter 160ms ease, transform 160ms ease;
}

.feature-card__action svg {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
}

.feature-card__action:hover {
  filter: brightness(1.08);
  transform: translateX(2px);
}

.feature-card__action:active {
  transform: translateX(1px) scale(0.94);
}

.feature-card--primary .feature-card__action {
  display: none;
}

.feature-card--secondary .feature-card__action {
  bottom: 8px;
  left: 12px;
}

.feature-card__action[aria-hidden="true"] {
  pointer-events: none;
}

.site-footer {
  padding: 32px 16px;
  border-top: 1px solid #ffedd5;
  color: #8b7b6b;
  font-family: "PingFang SC", var(--font-heading);
  font-weight: 400;
  letter-spacing: 0;
}

.site-footer__inner {
  display: flex;
  max-width: 1152px;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  margin: 0 auto;
  gap: 16px;
}

.site-footer__brand,
.site-footer__links {
  display: flex;
  align-items: center;
}

.site-footer__brand {
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.site-footer__mark {
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  object-fit: contain;
}

.site-footer__links {
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
}

.site-footer__links a {
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease;
}

.site-footer__links a:hover {
  color: var(--ink);
}

@media (min-width: 640px) {
  .site-footer__inner {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .site-header {
    --home-header-row-height: 65px;
  }

  .site-header[data-mobile-menu-open] {
    height: var(--home-header-row-height);
  }

  .site-header__inner {
    width: 100%;
    max-width: var(--home-desktop-max);
    padding: 0 32px;
  }

  .site-header__brand {
    gap: 10px;
    font-size: 18px;
    line-height: 28px;
  }

  .site-header__mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .site-header__login {
    display: inline-flex;
    position: static;
    width: auto;
    min-width: 68px;
    height: 36px;
    padding: 0 20px;
    font-size: 14px;
  }

  .site-header__menu {
    display: none;
  }

  .site-header__login--authenticated {
    height: 36px;
    padding: 0 14px 0 4px;
  }

  .hero {
    height: auto;
    padding: 0 32px;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    width: min(var(--home-desktop-max), 100%);
    height: auto;
    gap: 40px;
  }

  .hero__copy {
    grid-area: 1 / 1;
    padding: 0;
    transform: none;
  }

  .hero h1 {
    font-size: 52px;
    line-height: 1.15;
  }

  .hero__tagline {
    margin-top: 16px;
    font-size: 18px;
    line-height: 28px;
  }

  .hero__description {
    margin-top: 8px;
    font-size: 16px;
    line-height: 24px;
  }

  .hero__desktop-tagline {
    display: inline;
  }

  .hero__cta {
    height: 52px;
    gap: 12px;
    margin-top: 32px;
    padding: 0 32px;
    font-size: 16px;
    line-height: 24px;
  }

  .hero__cta .arrow-icon {
    width: 24px;
    height: 24px;
    padding: 5px;
    font-size: 17px;
  }

  .home-media--hero {
    grid-area: 1 / 1 / 2 / 3;
    width: min(786px, 100%);
    max-width: none;
    aspect-ratio: 786 / 616;
    justify-self: end;
    margin-left: auto;
    transform: none;
  }

  .features {
    padding: 40px 32px 32px;
  }

  .feature-grid {
    width: min(var(--home-desktop-max), 100%);
    max-width: none;
  }

  .feature-grid--primary {
    gap: 24px;
  }

  .feature-grid--secondary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 72px;
    gap: 16px;
  }

  .feature-card {
    border-radius: 24px;
  }

  .feature-card--primary {
    --card-copy-padding: 32px;
    height: 360px;
    aspect-ratio: auto;
  }

  .feature-card--secondary {
    --card-copy-padding: 24px 24px 16px;
    height: 242px;
  }

  .feature-card__heading {
    gap: 10px;
  }

  .feature-card--secondary .feature-card__heading {
    gap: 6px;
  }

  .feature-card h2,
  .feature-card--primary h2 {
    font-size: 24px;
    line-height: 32px;
  }

  .feature-card--secondary h2 {
    font-size: 20px;
    line-height: 1.4;
  }

  .feature-card p {
    margin-top: 8px;
    font-size: 16px;
    line-height: 24px;
  }

  .feature-card--secondary p {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.75;
  }

  .feature-card__index {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 14px;
  }

  .home-media--primary {
    right: 16px;
    bottom: 16px;
    width: calc(100% - 32px);
    max-width: none;
    height: 88%;
    object-fit: contain;
    object-position: center bottom;
  }

  .feature-card--primary:nth-child(2) .home-media--primary {
    height: 88%;
  }

  .home-media--secondary {
    right: 24px;
    bottom: 24px;
    width: 116px;
    height: 116px;
  }

  .feature-card--primary .feature-card__action {
    top: 32px;
    right: 32px;
    bottom: auto;
    left: auto;
    display: inline-flex;
  }

  .feature-card__action {
    width: 32px;
    height: 32px;
  }

  .feature-card__action svg {
    width: 14px;
    height: 14px;
  }

  .feature-card--secondary .feature-card__action {
    bottom: 28px;
    left: 24px;
  }

  .site-footer {
    padding-right: 32px;
    padding-left: 32px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .site-header {
    --home-header-row-height: 65px;
  }

  .hero__copy {
    padding: 0 24px;
  }

  .hero h1 {
    font-size: 42px;
    line-height: 1.15;
  }

  .hero__tagline {
    margin-top: 12px;
    font-size: 16px;
    line-height: 24px;
  }

  .hero__description {
    margin-top: 6px;
    font-size: 14px;
    line-height: 22px;
  }

  .hero__cta {
    height: 44px;
    gap: 10px;
    margin-top: 24px;
    padding: 0 24px;
    font-size: 14px;
    line-height: 22px;
  }

  .hero__cta .arrow-icon {
    width: 22px;
    height: 22px;
    padding: 4px;
    font-size: 16px;
  }

  .feature-card--primary {
    height: clamp(280px, 34vw, 340px);
    aspect-ratio: auto;
  }
}

@media (max-width: 420px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-card h2 {
    font-size: 12px;
  }

  .feature-card--primary h2 {
    font-size: 14px;
  }

}
