/* Design tokens from the madelabs.dev landing page handoff (v2). */
:root {
  --bg: #fcfcfd;
  --ink: #14161a;
  --secondary: #5b6472;
  --muted: #8b93a0;
  --placeholder: #c1c6ce;
  --rule: #e6e8ec;
  --underline: #c9ced6;
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
}

body {
  color: var(--ink);
  font-family: Archivo, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 120ms ease;
}

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

::selection {
  background: var(--ink);
  color: var(--bg);
}

/* Responsiveness is fluid — 8vw gutters, clamped type, vh vertical rhythm, and
   wrapping flex rows. The one breakpoint is the app row, which has to stack
   before its two columns get too narrow to hold the headline. */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 8vw;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 38px 0 0;
}

.lockup {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* The bare mark (treatment 2A), inlined so it inherits the ink text color.
   Sized to the wordmark's cap height; the viewBox keeps the 44:40 ratio. */
.mark {
  display: block;
  height: 13px;
  width: auto;
}

.wordmark {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.email {
  color: var(--secondary);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.main {
  padding: 15vh 0 12vh;
}

.headline {
  margin: 0;
  max-width: 19ch;
  font-size: clamp(44px, 7vw, 104px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.apps {
  border-top: 1px solid var(--rule);
  padding: 28px 0 14vh;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.app {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: end;
}

/* Apps are separated by the same hairline that opens the section. */
.app + .app {
  border-top: 1px solid var(--rule);
  padding-top: clamp(40px, 6vw, 72px);
}

/* The whole left column is the link; the visual deliberately is not. */
.app-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-bottom: 6px;
  color: inherit;
}

.app-icon {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 13px;
  border: 1px solid var(--rule);
}

.app-name {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 62px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
}

.app-description {
  margin: 0;
  max-width: 34ch;
  font-size: clamp(17px, 1.3vw, 21px);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--secondary);
  text-wrap: pretty;
}

.app-link {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--underline);
  padding-bottom: 3px;
  width: max-content;
}

/* Each visual is a finished 3:2 composition with its own background, so it only
   needs the hairline and a corner to sit on the page. */
.app-visual {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 1.5% / 2.25%;
}

.next {
  border-top: 1px solid var(--rule);
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 40px;
}

.next-name {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--placeholder);
}

.next-status {
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--muted);
}

.footer {
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding: 20px 0 32px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* Below this the 5fr column can no longer hold "TideApp" at its minimum size. */
@media (max-width: 640px) {
  .app {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  a {
    transition: none;
  }
}
