:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --muted: #5c5c5c;
  --line: #e4e0d8;
  --line-strong: #d4d0c8;
  --accent: #1a1a1a;
  --accent-hover: #333333;
  --badge: #1a1a1a;
  --badge-soon: #6b6b6b;
  --sans: "DM Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --max: 72rem;
  --gutter: 1rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
  background: var(--bg);
}

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

a {
  color: var(--ink);
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 20;
  padding: 0.5rem 0.75rem;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(calc(100% - (var(--gutter) * 2)), var(--max));
  margin-inline: auto;
}

/* Header: brand absolutely dead-centered on the viewport; nav right */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.site-header-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 3.5rem;
  padding-block: 0.65rem;
  padding-inline: var(--gutter);
  width: 100%;
  box-sizing: border-box;
}

.site-header-spacer {
  display: none;
}

.site-header-bar .brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.site-header-bar .nav {
  position: relative;
  z-index: 2;
  margin: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand:hover {
  color: inherit;
}

.mark {
  width: 1.65rem;
  height: 1.65rem;
  flex: none;
  border-radius: 6px;
}

.brand-name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}

.nav {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1.25rem;
  margin: 0;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  line-height: 1;
  padding-block: 0.35rem;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

/* Hero / title panel — fully centered on the page */
.hero {
  margin: 0;
  padding: 3.5rem 0 2rem;
  text-align: center;
  display: flex;
  justify-content: center;
}

.hero-inner {
  width: min(100%, 40rem);
  margin-inline: auto;
  text-align: center;
}

.hero-inner > * {
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 auto 0.6rem;
  font-family: var(--sans);
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-align: center;
}

.tm {
  font-size: 0.4em;
  vertical-align: super;
  font-weight: 500;
  letter-spacing: 0;
  opacity: 0.75;
}

.lede {
  max-width: 34rem;
  margin: 0 auto 1.35rem;
  color: var(--muted);
  font-size: 1.15rem;
  font-weight: 400;
}

.hero .lede {
  margin-inline: auto;
}

.apps {
  padding: 0.5rem 0 3.5rem;
}

.featured {
  display: grid;
  gap: 1.5rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.featured-copy h2 {
  margin: 0.25rem 0 0.5rem;
  font-family: var(--sans);
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.featured-copy p {
  margin: 0 0 1.1rem;
  color: var(--muted);
  max-width: 30rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: var(--badge);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge.soon {
  background: var(--badge-soon);
  color: #fff;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: none;
}

.button:hover {
  color: #fff;
  background: var(--accent-hover);
}

.preview-block {
  margin: 0;
}

.preview-label {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.phone {
  width: min(100%, 18rem);
  margin-inline: auto;
  padding: 8px;
  background: var(--line-strong);
  border-radius: 24px;
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.2);
}

.phone-bezel {
  overflow: hidden;
  background: #111;
  border-radius: 18px;
  aspect-ratio: 9 / 19.5;
  max-width: 18rem;
}

.phone-bezel .toolio-shot {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 390 / 844;
  object-fit: cover;
  object-position: top center;
  border: 0;
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  margin: 2.5rem 0 1rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.app-grid {
  display: grid;
  gap: 0.85rem;
}

.app-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 100%;
  padding: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.15s ease;
}

.app-card:hover {
  border-color: var(--line-strong);
}

.app-card h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

.app-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.app-card .card-shot {
  margin: 0 0 0.65rem;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  aspect-ratio: 9 / 16;
  max-height: 18rem;
}

.app-card .card-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.app-card .card-shot--soon {
  display: grid;
  place-items: center;
  padding: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}


/* Official-style store badges — small, bottom of each panel; <a> ready for live URLs */
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.featured-copy .store-buttons {
  margin-top: 0.9rem;
}

.store-badge {
  display: inline-flex;
  line-height: 0;
  text-decoration: none;
  opacity: 0.92;
  cursor: default;
  pointer-events: none; /* disabled until store listings are live */
}

.store-badge[aria-disabled="true"] {
  pointer-events: none;
}

.store-badge img {
  display: block;
  height: 1.65rem; /* ~26px — a little smaller */
  width: auto;
}

.app-card .store-buttons {
  margin-top: auto;
  padding-top: 0.7rem;
}

.app-card {
  display: flex;
  flex-direction: column;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 1.25rem 0 2rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
}

.footer-links {
  display: flex;
  gap: 1.1rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
  color: var(--ink);
}

.legal {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.page {
  padding: 2rem 0 3.5rem;
}

.page h1 {
  margin: 0 0 1rem;
  font-family: var(--sans);
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.prose {
  max-width: 40rem;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose h2 {
  margin: 1.7rem 0 0.55rem;
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
}

.prose ul {
  padding-left: 1.15rem;
}

.not-found {
  margin: 2rem 0 3rem;
  padding: 3.5rem 1.25rem;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.not-found h1 {
  margin: 0 0 0.7rem;
  font-family: var(--sans);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  color: var(--ink);
}

.not-found p {
  margin: 0 0 1.2rem;
  color: var(--muted);
}

@media (min-width: 860px) {
  .featured {
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 18rem);
    align-items: center;
    padding: 1.5rem 1.75rem;
  }

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

@media (min-width: 1040px) {
  .app-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

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

  .app-card {
    transition: none;
  }
}

@media (max-width: 560px) {
  .site-header-bar {
    gap: 0.5rem;
  }

  .brand-name {
    font-size: 0.92rem;
  }
}
