:root {
  color-scheme: dark;
  --paper: #0b0b10;
  --ink: #f6f5fa;
  --muted: #b5b2c1;
  --rule: #ffffff22;
  --chrome: #0b0b10d9;
  --control: #ffffff0d;
  --selection: #ffffff20;
  --accent: #cdd7ff;
  --focus: #a0b7ff;
  --quote-ink: #f1e9dd;
  --quote-accent: #fff9ef;
  --dawn-core: #c5a8764d;
  --dawn-halo: #546d9d40;
  --horizon: #c2ac8d55;
  --feature-action: #eeedf5;
  --feature-action-ink: #232330;
  --frame: #25262c;
  --device-shadow: #0006;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: "Songti SC", "Noto Serif CJK SC", "Noto Serif SC", STSong, SimSun, serif;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

:root[data-theme="light"] {
  color-scheme: light;
  --paper: #f5f5f8;
  --ink: #191920;
  --muted: #545565;
  --rule: #20203924;
  --chrome: #f5f5f8df;
  --control: #27263c09;
  --selection: #fff;
  --accent: #334584;
  --focus: #425bbd;
  --quote-ink: #393338;
  --quote-accent: #242025;
  --dawn-core: #e4cda799;
  --dawn-halo: #b9c5e36b;
  --horizon: #9b826d6b;
  --feature-action: #292936;
  --feature-action-ink: #fff;
  --frame: #262a2f;
  --device-shadow: #1d28282b;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}
h1, h2, p, figure, blockquote { margin: 0; }
a { color: inherit; }
a:focus-visible, .theme-picker input:focus-visible + span {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
img { display: block; max-width: 100%; }
.sr-only, .theme-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.shell { width: min(100% - 5rem, 75rem); margin-inline: auto; }
.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 3;
  transform: translateY(-160%);
  padding: .65rem 1rem;
  color: var(--ink);
  background: var(--paper);
}
.skip-link:focus { transform: none; }

.masthead {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  min-height: 4.3rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--rule);
  background: var(--chrome);
  backdrop-filter: blur(22px) saturate(135%);
}
.masthead a, .footer a { display: inline-flex; align-items: center; min-height: 44px; }
.masthead-actions { display: flex; align-items: center; gap: clamp(.6rem, 2vw, 1.5rem); }
.masthead nav a, .footer a {
  color: var(--muted);
  font-size: .875rem;
  font-weight: 550;
  text-underline-offset: .3em;
}
.masthead nav a:hover, .footer a:hover { color: var(--ink); }
.masthead nav a { white-space: nowrap; }
.wordmark {
  gap: .65rem;
  text-decoration: none;
  font-size: 1.55rem;
  font-weight: 760;
  letter-spacing: -.07em;
}
.brand-mark {
  position: relative;
  width: 1.12rem;
  aspect-ratio: 1;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}
.brand-mark::before {
  position: absolute;
  inset: 20% 25% 47% 47%;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
}
.brand-period { color: var(--accent); }

.theme-picker {
  display: none;
  padding: 3px;
  min-width: 0;
  margin: 0;
  border: 1px solid var(--rule);
  border-radius: 99px;
  background: var(--control);
}
[data-theme-controls="ready"] .theme-picker { display: flex; }
.theme-picker label {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  cursor: pointer;
}
.theme-picker span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.65rem;
  min-height: 32px;
  padding-inline: .5rem;
  border-radius: 99px;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 620;
  white-space: nowrap;
}
.theme-picker input:checked + span {
  color: var(--ink);
  background: var(--selection);
  box-shadow: 0 1px 2px #0002;
}

.quote-section {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: clamp(20rem, 47svh, 31rem);
  padding: 3rem .5rem;
  text-align: center;
}
.quote-section::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(ellipse 36% 58% at 50% 97%, var(--dawn-core), transparent 100%),
    radial-gradient(ellipse 57% 74% at 50% 92%, var(--dawn-halo), transparent 96%);
  mask-image: linear-gradient(180deg, transparent 5%, #000 60%, #000 83%, transparent);
  content: "";
}
.quote-section::after {
  position: absolute;
  inset: 0 6% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--horizon), transparent);
  content: "";
}
.closing-quote { min-width: 0; }
.quote-text {
  color: var(--quote-ink);
  font-family: var(--serif);
  font-size: clamp(1.9rem, 5vw, 4.65rem);
  font-weight: 520;
  letter-spacing: .045em;
  line-height: 1.32;
}
.quote-text span {
  display: block;
  color: var(--quote-accent);
}
.closing-quote figcaption {
  margin-top: clamp(1.15rem, 3.4vw, 2rem);
  color: var(--muted);
  font-size: .875rem;
  letter-spacing: .07em;
  line-height: 1.55;
}
.closing-quote cite { font-style: normal; }
@media (forced-colors: active) {
  .quote-section::before, .quote-section::after { display: none; }
  .theme-picker input:checked + span { outline: 1px solid ButtonText; }
}

.catalog { padding-block: clamp(1.45rem, 3vw, 2.55rem) clamp(2.5rem, 6vw, 4.85rem); }
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.7rem 1.45rem;
}
.product {
  display: grid;
  grid-template-areas: "art" "copy";
  grid-template-rows: auto 1fr;
  min-width: 0;
}
.electric-product { --tint: #131f1a; --glow: #9cffc85e; --turn: 4deg; }
.camera-product { --tint: #171c17; --glow: #798d5d57; --turn: -4deg; }
.pawcare-product { --tint: #251b21; --glow: #a56a7457; --turn: 4deg; }
.timeline-product { --tint: #231e19; --glow: #a2834e5e; --turn: -4deg; }
.phonolab-product { --tint: #161b26; --glow: #526fab66; --turn: 2deg; }
[data-theme="light"] .electric-product { --tint: #e6f1eb; --glow: #7edcaaa0; }
[data-theme="light"] .camera-product { --tint: #e9eee4; --glow: #a9c284b0; }
[data-theme="light"] .pawcare-product { --tint: #f8eaeb; --glow: #e2a9b4b0; }
[data-theme="light"] .timeline-product { --tint: #f3ece1; --glow: #e1bd7db0; }
[data-theme="light"] .phonolab-product { --tint: #e8edf8; --glow: #a5b9eab0; }

.product-art {
  position: relative;
  grid-area: art;
  height: clamp(14rem, 27vw, 22rem);
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 1.6rem;
  background: radial-gradient(ellipse at 64% 68%, var(--glow), transparent 73%), var(--tint);
}
.device {
  position: absolute;
  left: 50%;
  top: 13%;
  height: auto;
  border: .35rem solid var(--frame);
  box-shadow: 0 1.2rem 2.4rem var(--device-shadow);
  background: var(--frame);
  transform: translateX(-50%) rotate(var(--turn));
}
.phone { width: clamp(9.5rem, 17vw, 13.75rem); border-radius: 1.4rem; }
.tablet { width: 82%; max-width: 29rem; border-radius: 1rem; }
.product-copy { grid-area: copy; display: flex; gap: 1rem; padding-top: 1.1rem; }
.app-icon { flex: 0 0 auto; border-radius: 23%; object-fit: cover; box-shadow: 0 1px 0 var(--rule); }
.product-note { margin-bottom: .35rem; color: var(--muted); font-size: .875rem; font-weight: 650; }
.product-copy h2 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); line-height: 1.25; letter-spacing: -.04em; }
.alternate { display: block; margin-top: .3rem; font-size: .875rem; color: var(--muted); letter-spacing: 0; }
.product-description { margin-top: .55rem; line-height: 1.65; color: var(--muted); }
.product-links { display: flex; flex-wrap: wrap; column-gap: 1.25rem; }
.store {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: .15rem;
  color: var(--accent);
  font-size: .9375rem;
  font-weight: 630;
  text-underline-offset: .25em;
  text-decoration-thickness: 1px;
}
.store:hover { text-decoration-thickness: 2px; }

.product:first-child {
  grid-column: 1 / -1;
  grid-template-areas: "copy art";
  grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr);
  grid-template-rows: auto;
  min-height: 27rem;
  overflow: hidden;
  background: var(--tint);
  border: 1px solid var(--rule);
  border-radius: 2rem;
}
.product:first-child .product-copy {
  align-self: center;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.15rem;
  padding: clamp(2rem, 5vw, 4.8rem);
  padding-right: clamp(1.5rem, 3vw, 2.6rem);
}
.product:first-child .app-icon { width: 72px; height: 72px; }
.product:first-child .product-note { margin-bottom: .65rem; }
.product:first-child h2 { font-size: clamp(2.25rem, 4.25vw, 3.75rem); line-height: 1.12; letter-spacing: -.05em; }
.product:first-child .alternate { margin-top: .5rem; font-size: 1rem; }
.product:first-child .product-description { margin-top: .95rem; max-width: 19em; font-size: 1.0625rem; line-height: 1.75; }
.product:first-child .product-links { margin-top: 1.45rem; gap: .35rem 1.15rem; }
.product:first-child .store:first-child {
  justify-content: center;
  padding: .65rem 1.1rem;
  background: var(--feature-action);
  color: var(--feature-action-ink);
  border-radius: 99px;
  text-decoration: none;
  transition: opacity 130ms ease;
}
.product:first-child .store:first-child:hover { opacity: .85; }
.product:first-child .product-art {
  min-height: 24rem;
  height: auto;
  border: 0;
  border-radius: 0;
  background: radial-gradient(ellipse at 53% 74%, var(--glow), transparent 67%);
}
.product:first-child .phone {
  width: clamp(12.5rem, 22vw, 18.5rem);
  border-radius: 1.7rem;
}
.product:first-child .tablet { max-width: 36rem; }

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5.25rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
}
.footer-name { font-size: .875rem; font-weight: 620; }
.footer-credit { margin-inline-start: .4em; font-weight: 460; }
.footer-credit a { font: inherit; }

@media (max-width: 52rem) {
  .shell { width: calc(100% - 2.5rem); }
}
@media (max-width: 36rem) {
  .shell { width: calc(100% - 2rem); }
  .masthead { min-height: 4rem; gap: .45rem; }
  .masthead-actions { gap: .6rem; }
  .wordmark { gap: .45rem; font-size: 1.35rem; }
  .quote-section { min-height: clamp(17rem, 42svh, 25rem); }
  .quote-text { font-size: clamp(1.56rem, 6.7vw, 2.5rem); }
  .product:first-child { grid-template-columns: 1fr; grid-template-areas: "copy" "art"; border-radius: 1.4rem; }
  .product:first-child .product-copy { padding: 1.6rem 1.35rem 0; }
  .product:first-child .product-art { min-height: 16rem; }
  .product:first-child .phone { width: 12rem; }
  .product:first-child .tablet { width: 85%; }
  .catalog-grid { grid-template-columns: 1fr; row-gap: 1.9rem; }
  .product-art { height: clamp(13rem, 53vw, 19rem); border-radius: 1.15rem; }
  .product-copy { gap: .85rem; padding-inline: .1rem; }
  .tablet { width: 78%; }
}
@media (prefers-reduced-motion: reduce) {
  .product:first-child .store:first-child { transition: none; }
}
