:root {
  --ink: #171512;
  --muted: #77716b;
  --line: #ebe6df;
  --paper: #ffffff;
  --surface: #ffffff;
  --couple: #e64b86;
  --megree: #f97316;
  --chicken: #d71920;
  --shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

img,
svg {
  display: block;
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 20px 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand-icon,
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.brand-icon {
  object-fit: cover;
}

.brand-mark {
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--ink);
  font-weight: 800;
}

.nav,
.portfolio-hero,
.apps-band {
  display: none;
}

.icon-links {
  display: flex;
  gap: 10px;
}

.icon-links a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: #1d1a16;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
}

.icon-links svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portfolio-main {
  padding: 10px 20px 36px;
}

.app-intro {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.app-card {
  min-width: 0;
  padding: 20px;
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-top: 5px solid transparent;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.app-card.couple {
  border-top-color: var(--couple);
}

.app-card.megree {
  border-top-color: var(--megree);
}

.app-card.chicken {
  border-top-color: var(--chicken);
}

.app-header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.app-card.chicken .app-header {
  grid-template-columns: 72px minmax(0, 1fr);
}

.app-icon,
.site-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.logo-icon {
  width: 72px;
  height: 42px;
  object-fit: contain;
  border-radius: 0;
}

.site-icon {
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--chicken);
  font-size: 13px;
  font-weight: 800;
}

.app-title {
  min-width: 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
}

.app-title a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.app-title span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.app-meta {
  min-width: 0;
}

.release-date {
  margin: 4px 0 0;
  color: #8d867f;
  font-size: 13px;
  line-height: 1.2;
}

.app-body {
  display: block;
}

.screenshot-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(145px, 31%);
  gap: 10px;
  max-width: 100%;
  padding: 2px 2px 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.screenshot {
  width: 100%;
  aspect-ratio: 1284 / 2778;
  object-fit: cover;
  border: 1px solid #eee;
  border-radius: 10px;
}

.site-screenshot {
  width: 100%;
  height: calc((31vw - 24px) * 2778 / 1284);
  max-height: 335px;
  min-height: 260px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
}

.mini-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  min-width: 58px;
  padding: 0 14px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.appstore {
  display: inline-flex;
  align-items: center;
  height: 34px;
}

.appstore img {
  width: auto;
  height: 34px;
}

.appstore-inline {
  justify-self: end;
}

.appstore-inline img {
  height: 32px;
}

.app-hero,
.feature-band,
.premium-band,
.contact-band {
  max-width: 1100px;
  margin: 0 auto;
  padding: 34px 20px;
}

.app-hero {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: center;
}

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

.product-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.app-icon.large {
  width: 72px;
  height: 72px;
  border-radius: 16px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--couple);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 10px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.18;
}

h3 {
  margin-bottom: 8px;
}

.lead,
.section-heading p,
.premium-band p,
.features p {
  color: var(--muted);
}

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

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.primary-button {
  color: #fff;
  background: var(--couple);
}

.secondary-button {
  background: #fff;
  border: 1px solid var(--line);
}

.app-hero-strip,
.screenshot-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 28%);
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scrollbar-width: thin;
}

.app-hero-strip img,
.screenshot-strip img {
  width: 100%;
  aspect-ratio: 1284 / 2778;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

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

.features article,
.premium-list li {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.feature-icon {
  display: none;
}

.premium-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
  gap: 18px;
}

.premium-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-band .section-heading {
  display: none;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.contact-links a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: transparent;
  background: #1d1a16;
  border-radius: 12px;
  overflow: hidden;
}

.contact-links a span,
.contact-links a strong {
  display: none;
}

.contact-links svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer {
  display: none;
}

@media (max-width: 860px) {
  .site-header {
    padding-top: 16px;
  }

  .app-intro,
  .app-hero,
  .premium-band {
    grid-template-columns: 1fr;
  }

  .app-body {
    grid-template-columns: 1fr;
  }

  .screenshot-rail {
    grid-auto-columns: 38%;
  }

  .screenshot {
    width: 100%;
  }

  .site-screenshot {
    height: calc((38vw - 20px) * 2778 / 1284);
    max-height: 360px;
  }

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

@media (max-width: 560px) {
  .brand span:last-child {
    max-width: 46vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .icon-links {
    gap: 8px;
  }

  .icon-links a {
    width: 36px;
    height: 36px;
  }

  .app-card {
    padding: 16px;
  }

  .screenshot-rail {
    grid-auto-columns: 52%;
  }

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