:root {
  --paper: #f7f3ea;
  --paper-2: #fffdf8;
  --ink: #171714;
  --muted: #65645e;
  --line: #d9d2c5;
  --lime: #dffe5d;
  --coral: #ff725e;
  --blue: #7bdff2;
  --radius: 28px;
  --shadow: 0 10px 0 rgba(23, 23, 20, .12);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-150%);
  border-radius: 999px;
}
.skip-link:focus { transform: none; }

.shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgba(247, 243, 234, .9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(23, 23, 20, .12);
}
.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--lime);
  border-radius: 14px;
  font-weight: 900;
  transform: rotate(-5deg);
}
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-size: 1.02rem; letter-spacing: .12em; }
.brand-copy small { color: var(--muted); font-size: .72rem; letter-spacing: .06em; margin-top: 5px; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { text-decoration: none; font-weight: 700; font-size: .94rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav-cta { padding: 10px 17px; background: var(--ink); color: #fff !important; border-radius: 999px; text-decoration: none !important; }
.menu-button { display: none; border: 0; background: transparent; padding: 8px; font-weight: 800; }

main { overflow: clip; }
.hero {
  padding: clamp(70px, 10vw, 130px) 0 clamp(84px, 10vw, 125px);
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: var(--lime);
  filter: blur(1px);
  opacity: .35;
  top: 30px;
  right: -180px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(50px, 8vw, 100px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: .8rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 3px; background: currentColor; border-radius: 99px; }
h1, h2, h3 { margin: 0; line-height: 1.02; letter-spacing: -.045em; }
h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.4rem, 7.4vw, 7.15rem); font-weight: 600; margin: 22px 0 28px; }
h1 em { font-weight: 400; color: #d64e39; }
h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.35rem, 5vw, 4.6rem); font-weight: 600; }
h3 { font-size: clamp(1.35rem, 2.2vw, 2rem); }
.lede { max-width: 640px; font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: #4f4e49; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 850;
  background: var(--ink);
  color: #fff;
  transition: transform .18s ease, box-shadow .18s ease;
}
.button:hover { transform: translateY(-3px); box-shadow: 0 5px 0 rgba(23, 23, 20, .2); }
.button.secondary { background: transparent; color: var(--ink); }
.button.play::before { content: "▶"; font-size: .78em; }

.app-mosaic { min-height: 570px; position: relative; }
.mosaic-card {
  position: absolute;
  width: 46%;
  aspect-ratio: .73;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 34px;
  background: #fff;
  box-shadow: var(--shadow);
}
.mosaic-card img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.mosaic-card.one { left: 5%; top: 7%; transform: rotate(-7deg); }
.mosaic-card.two { right: 0; top: 0; transform: rotate(6deg); }
.mosaic-card.three { left: 22%; bottom: -3%; width: 43%; transform: rotate(2deg); }
.floating-icon {
  position: absolute;
  z-index: 5;
  width: 112px;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 12px 12px rgba(23, 23, 20, .22));
}
.floating-icon.a { right: 3%; bottom: 4%; transform: rotate(8deg); }
.floating-icon.b { left: -4%; bottom: 18%; transform: rotate(-8deg); }

.section { padding: clamp(78px, 10vw, 130px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 50px; }
.section-head p { max-width: 470px; margin: 0; color: var(--muted); font-size: 1.05rem; }
.kicker { margin-bottom: 15px; color: #bd3e2d; font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 900; }
.app-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.app-card {
  --card: #fff0bf;
  position: relative;
  min-height: 430px;
  display: grid;
  grid-template-columns: 1fr .74fr;
  overflow: hidden;
  padding: clamp(26px, 4vw, 44px);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--card);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.app-card:hover { transform: translateY(-7px); box-shadow: 0 17px 0 rgba(23, 23, 20, .12); }
.app-card.smartbrain { --card: #c7efff; }
.app-card.reverse { --card: #ffd0a1; }
.app-card.tambola { --card: #f6c8ff; }
.card-copy { position: relative; z-index: 4; align-self: end; }
.app-card .app-icon { width: 86px; height: 86px; object-fit: contain; margin-bottom: 34px; }
.app-card h3 { max-width: 260px; font-size: clamp(2rem, 4vw, 3.25rem); }
.app-card p { max-width: 290px; color: #4b4842; font-weight: 600; }
.card-arrow { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--ink); border-radius: 50%; font-size: 1.35rem; background: rgba(255,255,255,.65); }
.card-phone { position: absolute; width: 47%; height: 86%; right: -5%; bottom: -10%; overflow: hidden; border: 2px solid var(--ink); border-radius: 28px 28px 0 0; background: #fff; transform: rotate(4deg); }
.card-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.app-card:nth-child(even) .card-phone { transform: rotate(-3deg); }

.moments { background: var(--ink); color: #fff; }
.moments h2 { color: var(--lime); }
.moment-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 48px; }
.moment { min-height: 230px; padding: 28px; border: 1px solid #474741; border-radius: 24px; background: #22221e; }
.moment span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: var(--lime); color: var(--ink); font-size: 1.4rem; margin-bottom: 40px; }
.moment h3 { font-size: 1.28rem; letter-spacing: -.02em; }
.moment p { color: #bdbdb5; font-size: .94rem; }

.studio-panel {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(35px, 8vw, 100px);
  align-items: center;
  padding: clamp(38px, 6vw, 70px);
  border: 2px solid var(--ink);
  border-radius: 36px;
  background: var(--paper-2);
  box-shadow: var(--shadow);
}
.studio-stamp {
  width: min(100%, 320px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 40px;
  background: var(--coral);
  border: 2px solid var(--ink);
  border-radius: 50%;
  text-align: center;
  transform: rotate(-4deg);
}
.studio-stamp strong { font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.5rem); line-height: .95; }
.studio-copy p { max-width: 610px; color: var(--muted); font-size: 1.08rem; }

.cta-band { padding: clamp(75px, 9vw, 110px) 0; background: var(--lime); border-block: 2px solid var(--ink); }
.cta-inner { display: flex; justify-content: space-between; gap: 50px; align-items: center; }
.cta-inner h2 { max-width: 700px; }

.site-footer { padding: 48px 0 28px; background: var(--ink); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 50px; padding-bottom: 48px; }
.footer-brand { font-family: Georgia, serif; color: var(--lime); font-size: 2.2rem; margin-bottom: 12px; }
.footer-grid p { color: #aaa9a2; max-width: 390px; }
.footer-col strong { display: block; margin-bottom: 14px; }
.footer-col a { display: block; width: fit-content; color: #d5d4ce; text-decoration: none; margin: 8px 0; }
.footer-col a:hover { color: var(--lime); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 25px; border-top: 1px solid #393934; color: #94938c; font-size: .84rem; }

/* Inner pages */
.page-hero { padding: clamp(70px, 10vw, 125px) 0 70px; }
.page-hero h1 { max-width: 990px; font-size: clamp(3.2rem, 7vw, 6.7rem); }
.page-hero .lede { max-width: 760px; }
.breadcrumbs { display: flex; gap: 8px; color: var(--muted); font-size: .86rem; margin-bottom: 26px; }
.breadcrumbs a { text-underline-offset: 4px; }
.apps-list { padding-bottom: 120px; }

.app-detail { --accent: #ffd863; --accent-2: #fff0bf; }
.app-detail.smartbrain { --accent: #38bdf8; --accent-2: #d6f4ff; }
.app-detail.reverse { --accent: #ff9238; --accent-2: #ffe0bd; }
.app-detail.tambola { --accent: #e64bd8; --accent-2: #f7d4ff; }
.app-hero { padding: clamp(50px, 7vw, 90px) 0 clamp(75px, 9vw, 120px); background: var(--accent-2); border-bottom: 2px solid var(--ink); }
.app-hero-grid { display: grid; grid-template-columns: 1fr .85fr; gap: clamp(50px, 8vw, 100px); align-items: center; }
.app-title-row { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.app-title-icon { width: 92px; height: 92px; object-fit: contain; filter: drop-shadow(0 10px 10px rgba(23,23,20,.16)); }
.app-hero h1 { font-size: clamp(3.3rem, 7vw, 6.7rem); margin: 0 0 24px; }
.app-hero .tag { display: inline-block; padding: 8px 13px; border: 1.5px solid var(--ink); border-radius: 999px; background: rgba(255,255,255,.5); font-weight: 800; font-size: .8rem; }
.showcase-phone { width: min(82%, 365px); margin-inline: auto; padding: 11px; border: 3px solid var(--ink); border-radius: 38px; background: var(--ink); box-shadow: 18px 18px 0 var(--accent); transform: rotate(4deg); }
.showcase-phone img { width: 100%; border-radius: 27px; }
.app-detail.reverse .showcase-phone { transform: rotate(-3deg); }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 50px; }
.benefit { padding: 30px; border: 1.5px solid var(--ink); border-radius: 24px; background: var(--paper-2); }
.benefit .num { display: block; color: var(--accent); font-size: .82rem; font-weight: 950; letter-spacing: .12em; margin-bottom: 32px; }
.benefit h3 { font-size: 1.35rem; }
.benefit p { margin-bottom: 0; color: var(--muted); }
.screens { overflow: hidden; }
.screen-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 280px); gap: 22px; overflow-x: auto; padding: 8px 8px 34px; scroll-snap-type: x mandatory; scrollbar-color: var(--ink) transparent; }
.screen-row img { width: 100%; aspect-ratio: .51; object-fit: cover; object-position: top; border: 2px solid var(--ink); border-radius: 26px; box-shadow: 8px 8px 0 rgba(23,23,20,.11); scroll-snap-align: start; }
.who-panel { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.check-list li { position: relative; padding: 18px 20px 18px 54px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper-2); font-weight: 700; }
.check-list li::before { content: "✓"; position: absolute; left: 19px; top: 16px; width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); font-size: .78rem; }

.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 8vw, 110px); align-items: start; }
.big-quote { padding: 40px; border: 2px solid var(--ink); border-radius: 30px; background: var(--blue); box-shadow: var(--shadow); font-family: Georgia, serif; font-size: clamp(1.7rem, 3.2vw, 2.7rem); line-height: 1.15; }
.copy-stack p { color: var(--muted); font-size: 1.08rem; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 45px; }
.value { padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper-2); }
.value strong { display: block; margin-bottom: 10px; }

.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 8vw, 100px); align-items: start; }
.contact-cards { display: grid; gap: 18px; }
.contact-card { padding: 28px; border: 1.5px solid var(--ink); border-radius: 24px; background: var(--paper-2); }
.contact-card:nth-child(2) { background: var(--blue); }
.contact-card h3 { margin-bottom: 12px; }
.contact-card p { color: #504f4a; }
.contact-card a { font-weight: 850; text-underline-offset: 4px; overflow-wrap: anywhere; }
.form-panel { padding: clamp(28px, 5vw, 50px); border: 2px solid var(--ink); border-radius: 32px; background: #fff; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 800; font-size: .9rem; }
.field input, .field select, .field textarea { width: 100%; border: 1.5px solid #aaa69d; border-radius: 14px; padding: 13px 15px; background: #fffdf8; color: var(--ink); }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(123,223,242,.5); border-color: var(--ink); }
.form-note { color: var(--muted); font-size: .83rem; margin-top: 13px; }
.form-status { margin-top: 16px; font-weight: 750; }

.legal { max-width: 820px; padding-bottom: 120px; }
.legal h2 { font-family: inherit; font-size: 1.8rem; letter-spacing: -.02em; margin: 45px 0 15px; }
.legal h3 { font-size: 1.2rem; margin: 28px 0 8px; }
.legal p, .legal li { color: #4f4e49; }
.legal .updated { display: inline-block; padding: 8px 13px; border-radius: 999px; background: #e9e3d7; font-weight: 750; font-size: .84rem; }
.data-table { width: 100%; border-collapse: collapse; margin-top: 25px; }
.data-table th, .data-table td { padding: 16px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table th { background: #ede7db; }
.not-found { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.not-found .code { font-family: Georgia, serif; font-size: clamp(7rem, 20vw, 15rem); line-height: .8; color: var(--coral); }

@media (max-width: 900px) {
  .hero-grid, .app-hero-grid, .studio-panel, .about-grid, .contact-layout, .who-panel { grid-template-columns: 1fr; }
  .app-mosaic { min-height: 500px; max-width: 600px; width: 100%; margin-inline: auto; }
  .app-grid { grid-template-columns: 1fr; }
  .moment-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .showcase-phone { max-width: 320px; }
  .benefit-grid, .value-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .menu-button { display: block; }
  .site-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; padding: 24px; background: var(--paper-2); border-bottom: 2px solid var(--ink); flex-direction: column; align-items: stretch; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 8px; }
  h1 { font-size: clamp(3.1rem, 15vw, 5rem); }
  .section-head, .cta-inner, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .app-card { grid-template-columns: 1fr .6fr; min-height: 400px; }
  .app-card h3 { font-size: 2.3rem; }
  .moment-grid { grid-template-columns: 1fr; }
  .moment { min-height: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .data-table, .data-table tbody, .data-table tr, .data-table td, .data-table th { display: block; }
  .data-table thead { display: none; }
  .data-table tr { margin: 16px 0; border: 1px solid var(--line); }
  .data-table td { border: 0; }
  .data-table td:first-child { font-weight: 900; background: #ede7db; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
