/* getlatitude.io: the Latitude site (the landing page, privacy, terms). The design is Claude
   Design's "Latitude Landing Page" in the Sailing tools rebrand project; colours and type are
   the app's (internal/web/static/latitude.css). */
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
:root { --night: #0E1024; --surface: #181B36; --raised: #23274A; --line: #2E3360; --mist: #F1F0FA; --peri: #A3A8FF; --peri-hi: #BCC0FF; --peri-deep: #4B4FD6; --muted: #A4A6C4; --muted-on-light: #4A4D6E; color-scheme: dark; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--mist); font-family: "IBM Plex Sans", system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; line-height: 1.5; }
a { color: var(--peri); text-decoration: none; }
a:hover { color: var(--mist); }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
.page { min-height: 100vh; display: flex; flex-direction: column; }

/* header */
.top { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding-block: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--mist); }
.brand svg { width: 28px; height: 28px; color: var(--peri); flex: none; }
.brand span { font-size: 23px; font-weight: 500; letter-spacing: -0.02em; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; flex-wrap: wrap; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--mist); }
.btn { display: inline-block; font-weight: 500; font-size: 16px; padding: 14px 22px; border-radius: 12px; color: var(--mist); box-shadow: inset 0 0 0 1px var(--line); }
.btn:hover { background: var(--surface); color: var(--mist); }
.btn.primary { background: var(--peri); color: var(--night); font-weight: 600; box-shadow: none; }
.btn.primary:hover { background: var(--peri-hi); color: var(--night); }
.btn.small { font-size: 15px; padding: 9px 16px; border-radius: 10px; }

/* hero */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 56px; align-items: center; padding-block: 64px 40px; }
.hero h1 { margin: 0; font-size: clamp(44px, 6.4vw, 84px); line-height: 1; font-weight: 500; letter-spacing: -0.035em; text-wrap: balance; }
.hero p { margin: 24px 0 28px; font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 30em; text-wrap: pretty; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .shot { justify-self: center; }

/* a phone screenshot */
.phone { width: min(100%, 340px); aspect-ratio: 700 / 1294; border-radius: 34px; overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(0, 0, 0, .45); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* the instrument strip */
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--raised); border-radius: 16px; overflow: hidden; margin-bottom: 96px; }
.strip div { background: var(--surface); padding: 18px 22px; display: flex; flex-direction: column; gap: 6px; }
.strip .k { font-size: 12px; letter-spacing: .12em; color: var(--muted); }
.strip .v { font-size: 44px; font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1; }
.strip .pill { align-self: flex-start; font-size: 14px; font-weight: 600; letter-spacing: .08em; padding: 7px 12px; border-radius: 8px; box-shadow: inset 0 0 0 1.5px var(--muted); margin-top: 4px; }

/* software (on the light ground) */
.light { background: var(--mist); color: var(--night); }
.light a { color: var(--peri-deep); }
section h2 { margin: 0 0 48px; font-size: clamp(30px, 3.6vw, 44px); font-weight: 500; letter-spacing: -0.025em; max-width: 18em; text-wrap: balance; line-height: 1.15; }
.section { padding-block: 96px; }
/* one app: the intro, then a row for each feature, the phone and the words taking turns */
.intro { max-width: 46em; margin-bottom: 88px; }
.intro h2 { margin-bottom: 20px; }
.intro p { font-size: 19px; line-height: 1.6; color: var(--muted-on-light); margin: 0 0 28px; text-wrap: pretty; }
.tabs { list-style: none; padding: 6px; margin: 0; display: inline-flex; flex-wrap: wrap; gap: 4px; background: var(--night); border-radius: 14px; }
.tabs li { font-size: 15px; font-weight: 500; color: var(--muted); padding: 9px 16px; border-radius: 10px; }
.tabs li:first-child { background: var(--raised); color: var(--mist); }
.feature { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(40px, 7vw, 104px); align-items: center; padding-block: 56px; border-top: 1px solid rgba(14, 16, 36, .1); scroll-margin-top: 24px; }
.feature:nth-of-type(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); }
.feature:nth-of-type(even) .phone { order: 2; }
.feature .phone { width: 100%; justify-self: center; box-shadow: 0 0 0 1px rgba(14, 16, 36, .08), 0 24px 60px rgba(14, 16, 36, .25); }
.copy { max-width: 32em; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--peri-deep); margin-bottom: 14px; }
.copy h3 { margin: 0 0 16px; font-size: clamp(28px, 3vw, 38px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.15; text-wrap: balance; }
.copy p { font-size: 18px; line-height: 1.6; color: var(--muted-on-light); margin: 0 0 22px; text-wrap: pretty; }
.copy ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.copy li { position: relative; padding-left: 30px; font-size: 16px; line-height: 1.5; }
.copy li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--peri) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.2l2.6 2.6L13 6.4' fill='none' stroke='%230E1024' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }

/* a sail in the logbook, and the picture it makes to share, over its corner */
.pair { position: relative; width: 100%; max-width: 300px; justify-self: center; padding-bottom: 150px; }
.pair .phone { width: 100%; }
.pair .share { position: absolute; left: -64px; bottom: 0; width: 58%; height: auto; border-radius: 14px; box-shadow: 0 0 0 1px rgba(14, 16, 36, .08), 0 24px 50px rgba(14, 16, 36, .35); }
.feature:nth-of-type(even) .pair { order: 2; }

/* the last word */
.closer { text-align: center; padding-block: 24px 112px; display: grid; justify-items: center; gap: 8px; }
.closer h2 { margin: 0 0 24px; max-width: none; }

/* hardware */
.hw { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 28px; }
.hw .ph { aspect-ratio: 1 / 1; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--raised); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hw .ph svg { width: 22%; color: var(--raised); }
.hw .ph img { width: 100%; height: 100%; object-fit: cover; }
.hw .n { font-size: 20px; margin-top: 18px; }
.hw .n b { font-weight: 500; }
.hw .n span { color: var(--muted); }
.hw .d { font-size: 16px; line-height: 1.55; color: var(--muted); margin-top: 6px; text-wrap: pretty; }

/* footer */
.foot { border-top: 1px solid var(--raised); margin-top: auto; }
.foot .wrap { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; padding-block: 32px; font-size: 14px; color: var(--muted); }
.foot .brand svg { width: 20px; height: 20px; }
.foot .brand span { font-size: 17px; }
.foot .links { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
.foot .links a { color: var(--muted); }
.foot .links a:hover { color: var(--mist); }

/* the legal pages */
.doc { max-width: 760px; padding-block: 48px 96px; }
.doc h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 8px; }
.doc .upd { color: var(--muted); font-size: 15px; margin: 0 0 40px; }
.doc h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin: 44px 0 12px; }
.doc p, .doc li { font-size: 17px; line-height: 1.65; color: #D6D5E8; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--mist); font-weight: 600; }
.doc .note { background: var(--surface); border-radius: 14px; padding: 18px 22px; margin: 24px 0; box-shadow: inset 0 0 0 1px var(--raised); }
.doc .note p { margin: 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--raised); vertical-align: top; color: #D6D5E8; }
.doc th { color: var(--muted); font-weight: 500; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.tbl { overflow-x: auto; }
/* a phone: the logo and Sign in on one line; the sections are a scroll away */
@media (max-width: 560px) {
  .nav { display: none; }
  .top .btn { margin-left: auto; }
  .hero { padding-block: 40px 32px; gap: 40px; }
  .section { padding-block: 72px; }
}
@media (max-width: 760px) {
  .feature, .feature:nth-of-type(even) { grid-template-columns: 1fr; gap: 32px; padding-block: 48px; }
  .feature:nth-of-type(even) .phone, .feature:nth-of-type(even) .pair { order: 0; }
  .pair { max-width: 260px; padding-bottom: 120px; }
  .pair .share { left: -28px; }
  .feature .phone { width: min(100%, 280px); }
  .intro { margin-bottom: 40px; }
}
