:root {
  color-scheme: light;
  --ink: #151b2d;
  --muted: #647086;
  --paper: #f7f8fb;
  --panel: #ffffff;
  --soft: #eef3f8;
  --line: #e2e7ef;
  --blue: #2f65f5;
  --blue-ink: #173b9b;
  --green: #119a83;
  --rose: #d84f6a;
  --amber: #df9d2f;
  --shadow: 0 22px 60px rgba(28, 39, 61, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans SC", "Noto Sans JP", sans-serif;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(247, 248, 251, 0.68) 42%),
    linear-gradient(90deg, rgba(47, 101, 245, 0.08), transparent 34%, rgba(17, 154, 131, 0.07));
  content: "";
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(226, 231, 239, 0.82);
  background: rgba(247, 248, 251, 0.86);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 56px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--ink), #2f65f5);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0;
  box-shadow: 0 10px 22px rgba(47, 101, 245, 0.2);
}

.brand-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.nav-links a {
  border-radius: 8px;
  padding: 8px 10px;
  text-decoration: none;
}

.nav-links a:hover {
  background: #fff;
  color: var(--ink);
}

.language-picker select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  padding: 0 34px 0 12px;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(38px, 6vw, 86px);
  align-items: center;
  width: min(1360px, 100%);
  min-height: calc(100vh - 68px);
  margin: 0 auto;
  padding: clamp(54px, 7vw, 90px) clamp(20px, 5vw, 72px) 62px;
  overflow: hidden;
}

.eyebrow,
.section-kicker,
.product-label {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid rgba(17, 154, 131, 0.18);
  border-radius: 8px;
  background: rgba(17, 154, 131, 0.1);
  color: var(--green);
  padding: 0 12px;
  font-size: 15px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(47, 101, 245, 0.16);
  border-radius: 8px;
  background: rgba(47, 101, 245, 0.08);
  color: var(--blue-ink);
  padding: 0 13px;
  font-size: 16px;
}

.products-section .section-kicker {
  border-color: rgba(17, 154, 131, 0.2);
  background: rgba(17, 154, 131, 0.12);
  color: var(--green);
  font-size: 17px;
}

.product-label {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid rgba(47, 101, 245, 0.18);
  border-radius: 8px;
  background: rgba(47, 101, 245, 0.1);
  color: var(--blue-ink);
  padding: 0 12px;
  font-size: 15px;
  text-transform: none;
}

.piggy .product-label {
  border-color: rgba(17, 154, 131, 0.18);
  background: rgba(17, 154, 131, 0.1);
  color: var(--green);
}

.hero-copy h1 {
  max-width: 660px;
  margin: 0;
  font-size: clamp(36px, 4.4vw, 58px);
  line-height: 1.09;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 20px);
}

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

.hero-product-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 620px;
  margin-top: 34px;
}

.hero-product-list a {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  padding: 14px;
  text-decoration: none;
}

.hero-product-list strong {
  font-size: 15px;
}

.hero-product-list span:last-child {
  grid-column: 2;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.product-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.younote-dot {
  background: var(--blue);
}

.piggy-dot {
  background: var(--green);
}

.button,
.store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  padding: 0 20px;
  text-decoration: none;
  font-weight: 850;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.button.primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 14px 30px rgba(47, 101, 245, 0.22);
}

.button.secondary,
.store-link {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

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

.hero-phones {
  position: relative;
  display: grid;
  min-height: 600px;
  place-items: center;
  isolation: isolate;
}

.phone-frame {
  position: absolute;
  width: min(32vw, 272px);
  margin: 0;
  overflow: hidden;
  border: 9px solid #101624;
  border-radius: 30px;
  background: #111722;
  box-shadow: 0 22px 54px rgba(19, 26, 42, 0.18);
  aspect-ratio: 1242 / 2688;
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
}

.phone-large {
  left: 15%;
  bottom: 52px;
  transform: rotate(-2deg);
}

.phone-small {
  right: 14%;
  top: 74px;
  width: min(25vw, 210px);
  transform: rotate(3deg);
}

.section {
  width: min(1360px, 100%);
  margin: 0 auto;
  padding: 74px clamp(20px, 5vw, 72px);
}

.intro-band,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
}

.intro-band h2,
.contact-section h2,
.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: 0;
}

.intro-band p:last-child,
.contact-section p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.products-section {
  display: grid;
  gap: 30px;
}

.section-heading {
  max-width: 720px;
}

.product-panel {
  display: grid;
  position: relative;
  grid-template-columns: minmax(300px, 0.76fr) minmax(0, 1.24fr);
  gap: clamp(30px, 4.6vw, 64px);
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(226, 231, 239, 0.96);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  padding: clamp(24px, 4vw, 50px);
  box-shadow: 0 16px 42px rgba(28, 39, 61, 0.07);
}

.product-panel::after {
  position: absolute;
  right: clamp(18px, 3vw, 44px);
  bottom: clamp(18px, 3vw, 44px);
  width: 68px;
  height: 68px;
  border: 1px solid rgba(21, 27, 45, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.52);
  content: "";
  pointer-events: none;
}

.product-panel.younote {
  background:
    linear-gradient(90deg, rgba(47, 101, 245, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.9);
}

.product-panel.piggy {
  background:
    linear-gradient(90deg, rgba(17, 154, 131, 0.09), transparent 42%),
    rgba(255, 255, 255, 0.9);
}

.product-copy h3 {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.14;
  letter-spacing: 0;
}

.product-copy p:not(.product-label) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

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

.feature-list li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  color: var(--ink);
  font-weight: 720;
}

.feature-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 9px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.34;
}

.screenshot-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(320px, 39vw, 470px);
  gap: 22px;
  align-items: stretch;
  overflow-x: auto;
  margin: -10px -10px;
  padding: 18px 10px 26px;
  scrollbar-color: var(--line) transparent;
}

.piggy .screenshot-strip {
  grid-auto-columns: clamp(350px, 43vw, 520px);
}

.screenshot-card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 18px 42px rgba(26, 34, 45, 0.12);
  aspect-ratio: 3 / 4;
}

.screenshot-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.contact-section {
  grid-template-columns: minmax(0, 1fr) auto;
  border-block: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.contact-section .section-kicker,
.contact-section p {
  color: var(--muted);
}

.contact-mail {
  align-self: center;
  justify-self: start;
  overflow-wrap: anywhere;
  border: 1px solid #727b8d;
  border-radius: 8px;
  background: #727b8d;
  color: #fff;
  padding: 18px 22px;
  box-shadow: 0 16px 38px rgba(28, 39, 61, 0.08);
  font-size: clamp(22px, 3.4vw, 38px);
  font-weight: 900;
  text-decoration: none;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .nav-links {
    display: none;
  }

  .hero-section,
  .intro-band,
  .contact-section,
  .product-panel {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-phones {
    min-height: 560px;
    margin-top: 28px;
    overflow: hidden;
  }

  .phone-frame {
    width: min(52vw, 265px);
  }

  .phone-large {
    left: 8%;
    right: auto;
    top: 16px;
    bottom: auto;
  }

  .phone-small {
    right: 8%;
    top: 118px;
    width: min(40vw, 200px);
  }
}

@media (max-width: 600px) {
  .site-header {
    gap: 12px;
    padding: 12px 16px;
  }

  .brand-name {
    max-width: 44vw;
    font-size: 14px;
  }

  .brand-mark {
    width: 50px;
    height: 34px;
    font-size: 11px;
  }

  .language-picker select {
    max-width: 138px;
    font-size: 14px;
  }

  .hero-section,
  .section {
    padding-inline: 16px;
  }

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

  .hero-actions {
    display: grid;
  }

  .hero-product-list {
    grid-template-columns: 1fr;
  }

  .hero-phones {
    min-height: 430px;
    margin-top: 26px;
    overflow: hidden;
  }

  .phone-frame {
    border-width: 7px;
    border-radius: 26px;
  }

  .phone-large {
    width: min(58vw, 228px);
    top: 12px;
    bottom: auto;
  }

  .phone-small {
    top: 100px;
    width: min(42vw, 168px);
  }

  .product-panel {
    padding: 20px 14px 14px;
  }

  .screenshot-strip {
    grid-auto-columns: minmax(300px, 86vw);
    gap: 14px;
  }

  .piggy .screenshot-strip {
    grid-auto-columns: minmax(318px, 90vw);
  }

  .contact-mail {
    font-size: 22px;
  }
}
