/* Safari to Maps — marketing site
   Mix: otty.sh quiet dark + product chrome; x.ai/bot cinematic type scale.
   Tokens from otty charcoal/cream and the Fold mark (coral, yellow). */

:root {
  --bg: oklch(0.145 0.004 80);
  --bg-2: oklch(0.175 0.005 80);
  --surface: oklch(0.21 0.006 80);
  --line: oklch(0.91 0.02 90 / 0.12);
  --text: oklch(0.925 0.018 90);
  --muted: oklch(0.68 0.018 80);
  --faint: oklch(0.55 0.015 80);
  --coral: oklch(0.67 0.155 35);
  --coral-2: oklch(0.72 0.16 35);
  --yellow: oklch(0.88 0.155 100);
  --paper: oklch(0.97 0.012 90);
  --ink: oklch(0.22 0.02 80);
  --ok: oklch(0.72 0.09 155);

  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "SF Pro Text", "Helvetica Neue", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --space: 1rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --measure: 38rem;
  --radius: 0.85rem;
  --max: 72rem;
}

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

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  hanging-punctuation: first last;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 80% -10%, oklch(0.67 0.155 35 / 0.08), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, oklch(0.88 0.155 100 / 0.05), transparent 50%),
    var(--bg);
}

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

a {
  color: inherit;
  text-underline-offset: 0.18em;
  text-decoration-thickness: from-font;
  text-underline-position: from-font;
}

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

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

::selection {
  background: oklch(0.67 0.155 35 / 0.35);
  color: var(--paper);
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 20;
  padding: 0.4rem 0.7rem;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 600;
}

.skip:focus {
  top: 0.75rem;
}

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

.kicker {
  margin: 0 0 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral-2);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: oklch(0.145 0.004 80 / 0.78);
  border-bottom: 1px solid var(--line);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}

.brand img {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.38rem;
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--muted);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--paper);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--yellow);
  color: var(--ink);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  border-color: oklch(0.91 0.02 90 / 0.28);
  color: var(--paper);
}

/* Hero */

.hero {
  padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5.5rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(2.45rem, 6vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.lede {
  margin: 1.15rem 0 0;
  max-width: 34rem;
  font-size: 1.12rem;
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}

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

.fine {
  margin: 0.9rem 0 0;
  font-size: 0.82rem;
  color: var(--faint);
}

/* Product chrome — otty-style hero object */

.stage {
  position: relative;
  isolation: isolate;
}

.stage-window {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.15rem);
  overflow: hidden;
  box-shadow:
    0 30px 80px oklch(0 0 0 / 0.45),
    0 0 0 1px oklch(0.91 0.02 90 / 0.04);
}

.chrome {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: oklch(0.19 0.005 80);
}

.dots {
  display: flex;
  gap: 0.35rem;
}

.dots span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: oklch(0.4 0.01 80);
}

.dots span:first-child { background: oklch(0.67 0.14 25); }
.dots span:nth-child(2) { background: var(--yellow); }
.dots span:nth-child(3) { background: var(--ok); }

.omnibox {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--faint);
  background: oklch(0.145 0.004 80);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stage-body {
  display: grid;
  grid-template-columns: 1fr;
}

.google-card,
.maps-card {
  padding: 1.15rem 1.2rem 1.3rem;
}

.google-card {
  border-bottom: 1px solid var(--line);
}

.place-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.place-meta {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.place-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--line);
}

.chip-go {
  background: var(--coral);
  border-color: transparent;
  color: var(--paper);
}

.maps-card {
  background:
    linear-gradient(180deg, oklch(0.24 0.02 155 / 0.18), transparent 40%),
    var(--bg-2);
}

.maps-kicker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ok);
}

.maps-kicker::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px oklch(0.88 0.155 100 / 0.18);
}

.route {
  margin-top: 0.9rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--yellow), var(--coral));
  transform-origin: left;
  animation: draw 1.2s 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes draw {
  from { transform: scaleX(0.12); opacity: 0.4; }
  to { transform: scaleX(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .route { animation: none; }
}

/* Sections */

.band {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
  border-top: 1px solid var(--line);
}

.band-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem 3rem;
}

.band h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.55rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.band p {
  margin: 0.8rem 0 0;
  max-width: var(--measure);
  color: var(--muted);
  text-wrap: pretty;
}

.split {
  display: grid;
  gap: 2rem;
}

.fact {
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.fact h3 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.fact p {
  margin: 0.4rem 0 0;
  font-size: 0.95rem;
}

.not-for {
  color: var(--muted);
  max-width: 42rem;
}

.not-for strong {
  color: var(--text);
  font-weight: 550;
}

/* Docs (support / privacy) */

.doc {
  padding: clamp(3rem, 6vw, 5rem) 0 5rem;
}

.doc h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.doc .intro {
  margin: 1rem 0 2.4rem;
  max-width: var(--measure);
  color: var(--muted);
}

.prose {
  max-width: var(--measure);
}

.prose h2 {
  margin: 2.4rem 0 0.7rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

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

.prose p {
  margin: 0 0 0.9rem;
  text-wrap: pretty;
}

.prose ul,
.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

.prose a {
  color: var(--paper);
}

.prose .btn,
.prose .btn:hover {
  color: var(--ink);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.steps li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.9rem;
  padding: 1.05rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.steps .n {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--yellow);
  padding-top: 0.2rem;
}

.steps h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 550;
}

.steps p {
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2.2rem;
}

.site-footer .inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
  font-size: 0.85rem;
  color: var(--faint);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
}

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

.site-footer a:hover {
  color: var(--text);
}

@media (min-width: 1080px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.95fr);
  }

  .band-grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }

  .split {
    grid-template-columns: 1fr 1fr;
  }

  .stage-body {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .google-card {
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .nav .hide-sm {
    display: none;
  }

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