/* Tiger Breath — landing page styles. Black and white, except the icons of live products. */

:root {
  --black: #000000;
  --white: #ffffff;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: 48px;
  --max: 1344px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

img { display: block; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
em { font-style: italic; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.star { width: 10px; height: 10px; fill: currentColor; flex: 0 0 auto; }
.star-lg { width: 12px; height: 12px; }

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 4.6vw, 66px);
  line-height: 1;
  letter-spacing: -0.02em;
}

.link-italic {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 30px;
  border: 1px solid var(--black);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
}
.button:hover { background: var(--black); color: var(--white); text-decoration: none; }

/* Header */

.header {
  width: 100%;
  padding: 22px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--black);
}

.brand { display: flex; align-items: center; gap: 14px; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 83px; height: 83px; }
.brand-name {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nav a { display: inline-flex; align-items: center; min-height: 44px; }
.nav .star { width: 9px; height: 9px; }

.burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--black);
  border-radius: 999px;
  color: var(--black);
  cursor: pointer;
}
.burger svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.burger .burger-close { display: none; }
.burger[aria-expanded="true"] .burger-open { display: none; }
.burger[aria-expanded="true"] .burger-close { display: block; }

.mobile-nav {
  display: none;
  flex-basis: 100%;
  flex-direction: column;
  margin-top: 6px;
  border-top: 1px solid var(--black);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  border-bottom: 1px solid var(--black);
}
.mobile-nav a:last-child { border-bottom: none; }

/* Hero */

.hero {
  padding-top: 96px;
  padding-bottom: 104px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 64px 80px;
}

.hero-text {
  flex: 1 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 11vw, 110px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.hero-lede { font-size: 18px; line-height: 1.65; max-width: 520px; }

.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }

.hero-crest {
  flex: 0 1 460px;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.crest {
  width: 100%;
  max-width: 560px;
  height: auto;
  animation: breathe 7s ease-in-out infinite;
  transform-origin: 50% 50%;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

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

/* Wave band */

.wave {
  width: 100%;
  border-top: 1px solid var(--black);
  border-bottom: 1px solid var(--black);
  overflow: hidden;
  line-height: 0;
}
.wave svg { display: block; }

/* Products */

.products {
  padding-top: 112px;
  padding-bottom: 112px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.section-head > div { display: flex; flex-direction: column; gap: 20px; }

.product-list {
  display: grid;
  grid-template-columns: 96px minmax(0, 1.1fr) minmax(0, 1fr) auto;
  border-top: 1px solid var(--black);
}

.product {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid; /* rows share the list's columns, so a short pill does not shift the text */
  align-items: center;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--black);
}
.product:hover .product-name { font-style: italic; }

.product-name {
  font-family: var(--serif);
  font-size: clamp(36px, 3.8vw, 54px);
  line-height: 1;
  letter-spacing: -0.02em;
  min-width: 0;
}
.product-desc { font-size: 16px; line-height: 1.6; min-width: 0; }

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid var(--black);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Live products: the app icon, in its own colours, replaces the row number and the whole row links out. */
.product-live { position: relative; }
.product-icon { width: 64px; height: 64px; }
.product-name a::after { content: ""; position: absolute; inset: 0; }
.product-name a:hover { text-decoration: none; }
.product-name a:focus-visible { outline: 2px solid var(--black); outline-offset: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pill-live { justify-self: end; gap: 8px; background: var(--black); color: var(--white); }

.product-next-text { grid-column: 2 / 4; }
.product-next-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.1;
}
.product-next .label { white-space: nowrap; justify-self: end; }

/* About */

.about { border-top: 1px solid var(--black); }

.about-top {
  padding-top: 112px;
  padding-bottom: 80px;
  display: flex;
  flex-wrap: wrap;
  gap: 64px 80px;
}
.about-head { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.about-body { flex: 1.4 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; font-size: 18px; line-height: 1.65; }

.about-bottom { padding-bottom: 112px; }

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--black);
}
.principle { padding: 32px 32px 0 32px; border-left: 1px solid var(--black); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.principle:first-child { padding-left: 0; border-left: none; }
.principle:last-child { padding-right: 0; }
.principle p { font-family: var(--serif); font-size: 24px; line-height: 1.25; }

/* Footer */

.footer { background: var(--black); color: var(--white); }
.footer-inner { padding-top: 112px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 80px; }

.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 40px; }
.footer-contact { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.footer-title { font-size: clamp(52px, 6vw, 92px); line-height: 0.98; }
.email { align-self: flex-start; padding: 6px 0; border-bottom: 1px solid var(--white); font-size: 22px; letter-spacing: -0.01em; }
.email:hover { text-decoration: none; }

.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 24px; }
.footer-mark { width: 108px; height: 108px; filter: invert(1); }

.footer-bottom {
  border-top: 1px solid var(--white);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.footer-links { display: flex; gap: 28px; }
.footer-links a { padding: 6px 0; }

/* Legal pages */

.legal {
  max-width: 760px;
  padding-top: 96px;
  padding-bottom: 112px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.legal-head { display: flex; flex-direction: column; gap: 20px; padding-bottom: 40px; border-bottom: 1px solid var(--black); }
.legal-title { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 7vw, 88px); line-height: 0.98; letter-spacing: -0.02em; }
.legal-intro { font-size: 18px; line-height: 1.65; }

.legal-section { display: flex; flex-direction: column; gap: 16px; font-size: 16px; line-height: 1.7; }
.legal-section h2 { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.1; letter-spacing: -0.01em; }
.legal-section ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.legal-section li { position: relative; padding-left: 22px; }
.legal-section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  background: var(--black);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}
.legal-section a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

.legal-back { align-self: flex-start; }

/* Mobile */

@media (max-width: 760px) {
  :root { --gutter: 24px; }

  .header { padding: 14px var(--gutter); gap: 12px; }
  .brand-mark { width: 56px; height: 56px; }
  .brand-name { font-size: 16px; }
  .nav { display: none; }
  .burger { display: inline-flex; }
  .mobile-nav:not([hidden]) { display: flex; }

  .hero { padding-top: 48px; padding-bottom: 64px; flex-direction: column; align-items: stretch; gap: 28px; }
  .hero-text { display: contents; }
  .eyebrow { order: 1; }
  .hero-crest { order: 2; margin: 4px 0 8px; }
  .hero-title { order: 3; }
  .hero-lede { order: 4; }
  .hero-cta { order: 5; gap: 16px; flex-wrap: nowrap; }
  .button { padding: 0 20px; min-height: 48px; }
  .hero-cta .link-italic { font-size: 18px; white-space: nowrap; }

  .wave svg { height: 100px; }

  .products { padding-top: 72px; padding-bottom: 72px; }
  .product-list { grid-template-columns: minmax(0, 1fr); }
  .product { gap: 14px; padding: 28px 0; }
  .product-next-text { grid-column: auto; }
  .pill, .product-next .label { justify-self: start; }

  .about-top { padding-top: 72px; padding-bottom: 56px; }
  .about-bottom { padding-bottom: 72px; }
  .principles { grid-template-columns: minmax(0, 1fr); }
  .principle { border-left: none; padding: 24px 0 0; }
  .principle + .principle { border-top: 1px solid var(--black); margin-top: 24px; }

  .legal { padding-top: 56px; padding-bottom: 72px; gap: 40px; }
  .legal-head { padding-bottom: 32px; }

  .footer-inner { padding-top: 72px; padding-bottom: 32px; gap: 56px; }
  .footer-right { align-items: flex-start; }
}
