:root {
  --paper: #f6f2ea;
  --paper-soft: #efe9df;
  --paper-strong: #ffffff;
  --ink: #111827;
  --ink-soft: #263142;
  --muted: #677181;
  --line: #ddd5c9;
  --line-strong: #c9c0b2;
  --night: #08111e;
  --blue: #1b65c9;
  --green: #127344;
  --teal: #157c82;
  --gold: #b88a1d;
  --coral: #bd5a43;
  --shadow: 0 18px 48px rgba(17, 24, 39, 0.14);
  --shadow-soft: 0 10px 28px rgba(17, 24, 39, 0.08);
  --max: 1180px;
}

* {
  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", sans-serif;
  font-size: 16px;
  line-height: 1.58;
  letter-spacing: 0;
}

body::selection {
  background: rgba(27, 101, 201, 0.18);
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

p {
  margin: 0 0 1rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  padding: 0.6rem 0.8rem;
  background: var(--paper-strong);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 242, 234, 0.9);
  border-bottom: 1px solid rgba(201, 192, 178, 0.76);
  backdrop-filter: blur(18px);
}

.header-inner,
.section-inner,
.footer-inner,
.privacy-article {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.brand span {
  color: var(--ink);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.15rem;
  padding: 0.25rem;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(221, 213, 201, 0.78);
  border-radius: 8px;
}

.site-nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 0.74rem;
  border-radius: 6px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  background: var(--paper-strong);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.05);
}

.studio-hero,
.app-hero,
.legal-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
}

.studio-hero {
  min-height: min(820px, calc(88vh - 24px));
  display: grid;
  align-items: center;
  background:
    linear-gradient(115deg, rgba(8, 17, 30, 0.98) 0%, rgba(8, 17, 30, 0.92) 43%, rgba(8, 17, 30, 0.82) 100%),
    #08111e;
}

.studio-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.9), transparent 74%);
  opacity: 0.55;
}

.studio-hero::after,
.app-hero::after,
.legal-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 17, 30, 0.55);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 6.1rem 0 5.2rem;
}

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

.studio-visual {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.studio-watermark {
  position: absolute;
  right: clamp(1rem, 7vw, 7rem);
  top: 50%;
  width: min(720px, 48vw);
  transform: translateY(-46%);
  opacity: 0.12;
  filter: saturate(0.85) contrast(1.1);
}

.device-collage {
  position: absolute;
  right: clamp(2rem, 8vw, 9rem);
  top: 50%;
  width: min(520px, 34vw);
  height: min(620px, 62vh);
  transform: translateY(-50%);
}

.device-collage::before {
  content: "";
  position: absolute;
  inset: 7% 3% 4%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 32px 90px rgba(0, 0, 0, 0.32);
}

.device-shot {
  position: absolute;
  width: 34%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.38);
}

.device-main {
  z-index: 3;
  left: 34%;
  top: 4%;
  width: 40%;
}

.device-top {
  z-index: 2;
  left: 8%;
  top: 18%;
  opacity: 0.82;
}

.device-bottom {
  z-index: 2;
  right: 4%;
  bottom: 8%;
  opacity: 0.82;
}

.eyebrow,
.section-kicker,
.app-card-meta {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  color: #8bdcff;
}

.studio-hero h1,
.app-hero h1,
.legal-hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(3rem, 7.2vw, 6.25rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.lead {
  max-width: 660px;
  margin: 1.25rem 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.08rem, 2vw, 1.36rem);
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.9rem;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2rem;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.45rem 0.75rem;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.78rem 1.08rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.button.primary {
  background: #ffffff;
  color: var(--night);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.button.dark {
  background: var(--ink);
  color: #fff;
}

.button.light {
  background: var(--paper-strong);
  color: var(--ink);
  border-color: var(--line);
}

.button.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.06);
}

.button:hover,
.button:focus-visible,
.text-button:hover,
.text-button:focus-visible {
  transform: translateY(-1px);
}

.button.primary:hover,
.button.primary:focus-visible,
.button.dark:hover,
.button.dark:focus-visible {
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.22);
}

.section {
  padding: 5.6rem 0;
}

.section.compact {
  padding: 3.5rem 0;
}

.section.tinted {
  background: var(--paper-soft);
}

.section.dark {
  background: #111827;
  color: #fff;
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.44fr);
  gap: 2.5rem;
  align-items: end;
  margin-bottom: 2.3rem;
}

.section-kicker {
  color: var(--green);
}

.section h2,
.section h3,
.app-copy h2,
.privacy-article h2 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

.section h2,
.app-copy h2 {
  font-size: clamp(2rem, 4.2vw, 3.6rem);
}

.privacy-article h2 {
  font-size: 1.55rem;
}

.section-header p,
.app-copy p,
.privacy-article p,
.privacy-article li,
.app-card p {
  color: var(--muted);
}

.dark .section-header p,
.dark .section-kicker {
  color: rgba(255, 255, 255, 0.76);
}

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

.app-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(221, 213, 201, 0.92);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.app-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.app-card.featured {
  grid-column: span 2;
}

.app-card-image-wrap {
  position: relative;
  overflow: hidden;
  background: #d9d6ce;
}

.app-card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 260ms ease;
}

.app-card:hover .app-card-image {
  transform: scale(1.025);
}

.app-card:not(.featured) .app-card-image {
  aspect-ratio: 4 / 5;
  object-position: top center;
}

.app-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.15rem;
}

.app-card-meta {
  color: var(--coral);
}

.app-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.45rem;
  line-height: 1.08;
}

.app-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  margin-top: auto;
  padding-top: 0.35rem;
}

.text-button {
  min-height: auto;
  padding: 0;
  color: var(--blue);
  border: 0;
}

.text-button.subtle {
  color: var(--muted);
}

.studio-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.studio-stat {
  min-height: 150px;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(221, 213, 201, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.studio-stat strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.85rem;
  line-height: 1;
}

.studio-stat span {
  color: var(--muted);
}

.privacy-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.privacy-link {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 148px;
  padding: 1.1rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  text-decoration: none;
}

.privacy-link:hover,
.privacy-link:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.privacy-link strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.06rem;
}

.privacy-link span {
  color: rgba(255, 255, 255, 0.72);
}

.app-hero {
  min-height: calc(92vh - 76px);
  display: grid;
  align-items: center;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
}

.app-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 17, 30, 0.36);
}

.app-hero .hero-content {
  padding: 6rem 0 5rem;
}

.app-hero .lead {
  color: rgba(255, 255, 255, 0.9);
}

.app-portuguese-ed {
  --product-accent: #168a4d;
  --product-soft: #e6f3e8;
}

.app-pivotfall {
  --product-accent: #54c4e9;
  --product-soft: #e7edf8;
}

.app-liferadar {
  --product-accent: #c96f5c;
  --product-soft: #f4ece2;
}

.app-kids {
  --product-accent: #539a3e;
  --product-soft: #eef7e9;
}

.app-hero .eyebrow,
.product-accent {
  color: var(--product-accent);
}

.app-overview {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(360px, 1fr);
  gap: 3rem;
  align-items: start;
}

.app-copy {
  position: sticky;
  top: 104px;
}

.feature-list {
  display: grid;
  gap: 1rem;
  margin: 1.7rem 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 1rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(221, 213, 201, 0.92);
  border-left: 4px solid var(--product-accent);
  border-radius: 8px;
}

.feature-list strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--ink);
}

.phone-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.phone-shot {
  overflow: hidden;
  margin: 0;
  background: var(--paper-strong);
  border: 1px solid rgba(221, 213, 201, 0.94);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.phone-shot:nth-child(2) {
  transform: translateY(2rem);
}

.phone-shot img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top center;
}

.phone-shot figcaption {
  padding: 0.8rem 0.9rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.app-band {
  background: var(--product-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(260px, 0.45fr);
  gap: 2rem;
  align-items: center;
}

.mini-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.mini-list li + li {
  margin-top: 0.55rem;
}

.legal-hero {
  background: var(--night);
}

.legal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../logo.png");
  background-repeat: no-repeat;
  background-position: right 10vw center;
  background-size: min(520px, 60vw);
  opacity: 0.12;
}

.legal-hero .hero-content {
  padding: 4.7rem 0;
}

.legal-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
}

.privacy-article {
  max-width: 880px;
  padding: 4.5rem 0;
}

.privacy-article h2 {
  margin-top: 2.2rem;
}

.privacy-article ul {
  padding-left: 1.2rem;
}

.notice {
  padding: 1rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: 2.1rem 0;
  color: var(--muted);
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.1rem;
}

.footer-links a {
  color: var(--ink);
  font-weight: 800;
}

@media (max-width: 980px) {
  .section-header,
  .app-overview,
  .split {
    grid-template-columns: 1fr;
  }

  .app-copy {
    position: static;
  }

  .app-grid,
  .privacy-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .studio-strip,
  .phone-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-card.featured {
    grid-column: span 2;
  }

  .phone-shot:nth-child(2) {
    transform: none;
  }

  .studio-watermark {
    right: -6rem;
    width: min(640px, 78vw);
    opacity: 0.11;
  }

  .device-collage {
    right: -7rem;
    width: min(440px, 52vw);
    opacity: 0.54;
  }
}

@media (max-width: 720px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.85rem 0;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    font-size: 0.88rem;
  }

  .studio-hero,
  .app-hero {
    min-height: 72vh;
  }

  .hero-content {
    padding: 4.5rem 0;
  }

  .studio-watermark {
    right: -9rem;
    top: 58%;
    width: 520px;
    opacity: 0.08;
  }

  .device-collage {
    display: none;
  }

  .lead {
    font-size: 1.08rem;
  }

  .section {
    padding: 3.8rem 0;
  }

  .app-grid,
  .privacy-list,
  .studio-strip,
  .phone-gallery {
    grid-template-columns: 1fr;
  }

  .app-card.featured {
    grid-column: auto;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }

  .button:hover,
  .button:focus-visible,
  .text-button:hover,
  .text-button:focus-visible,
  .app-card:hover,
  .privacy-link:hover,
  .privacy-link:focus-visible {
    transform: none;
  }
}
