/* Ripe's landing page. Sizes, colours and type are the board's (ripe-pomodoro-for-mac-os-scene-concepts):
   desktop = Bg5Rn1-c2-preview + Rq5Tm3-footer (1280), tablet = Tb7Sh-page (800), mobile = Mb8Qe4-page (375).
   Layouts: desktop from 1100 px, tablet from 720 px, mobile below. */

/* The fonts are hosted here, not loaded from Google (fonts/, Google Fonts' Latin subsets, SIL Open Font License):
   Inter and IBM Plex Mono are the board's page type, Outfit Medium is the brand's wordmark (board v23, final logo sheet). */
@font-face { font-family: Inter; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/inter-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-mono-400-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Outfit; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/outfit-500-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #F2EEE6;
  --ink: #1D1A16;
  --red: #B23F2E;
  --muted: #7A7166;
  --tag: #9A9082;
  --night: #05070D;
  --foot: #1D1A16;
  --foot-dim: #8A8A8A;
  --foot-link: #BDBDBD;
  --foot-rule: #3A352E;
  --sans: Inter, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --wordmark: Outfit, var(--sans);
  --cream: #FFF1D0;  /* the wordmark on dark */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overscroll-behavior-y: none; }  /* no pull-to-refresh or bounce at the ends */
body {
  margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink); font-family: var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
h1, h2, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; margin: 0; padding: 0; text-align: inherit; cursor: pointer; }

/* ---------- The shader stage: everything above the footer ---------- */

.stage { position: relative; flex: 1 0 auto; overflow: hidden; background: var(--paper); }
.page-bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.content { position: relative; display: flex; flex-direction: column; align-items: center; }

.uvp { font-weight: 600; text-align: center; }
.uvp .l1, .uvp .l2 { display: block; }
.uvp .l2 { color: var(--red); }

.cta { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.download {
  display: inline-flex; align-items: center; padding: 15px 30px; border-radius: 12px;
  background: var(--red); color: #fff; font-size: 17px; font-weight: 600; line-height: 1.2;
}
.requires { color: var(--muted); font-size: 14px; line-height: 1.4; text-align: center; }

.ripe-window { position: relative; width: 360px; aspect-ratio: 5 / 9; border-radius: 16px; overflow: hidden; background: var(--night); }
.ripe-window canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* the list of backgrounds */
.bgs-head h2 { font-size: 24px; font-weight: 600; line-height: 1.2; letter-spacing: -0.5px; }
.list button, .list .more { display: flex; align-items: center; gap: 12px; width: 300px; padding: 6px; border-radius: 10px; }
.list .thumb { flex: none; width: 36px; height: 36px; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.list .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.list .name { flex: 1; min-width: 0; font-size: 15px; font-weight: 500; line-height: 1.3; color: var(--ink); }
.list .tag { flex: none; width: 46px; text-align: right; color: var(--tag); font-size: 10px; font-weight: 600; line-height: 1.2; letter-spacing: 0.8px; text-transform: uppercase; }
.list .on { background: #FFFFFF; }
.list .on .name { font-weight: 600; }
.list .more .name { color: var(--muted); }
.list .more .count { color: var(--muted); font-size: 13px; font-weight: 600; line-height: 1.2; }

/* ---------- Footer ---------- */

.foot { background: var(--foot); }
.foot-in { margin: 0 auto; }
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
/* the brand's dark lockup (board v23): the icon, then the Outfit Medium wordmark in cream, centred on each other; the
   sheet's 58 px icon, 13 px gap and 38 px wordmark, scaled to the footer's 28 px */
.brand-name { display: flex; align-items: center; gap: 10px; color: var(--cream); font-family: var(--wordmark); font-size: 28px; font-weight: 500; line-height: 1.2; letter-spacing: -0.25px; }
.brand-name img { flex: none; display: block; width: 43px; height: 43px; }  /* the app icon, cropped to its square */
.tagline, .legal a, .foot-bottom p { font-family: var(--mono); font-weight: 400; text-transform: uppercase; line-height: 1.5; }
.tagline { color: var(--foot-dim); font-size: 11px; letter-spacing: 2px; }
.legal { display: flex; }
.legal a { color: var(--foot-link); font-size: 11px; letter-spacing: 2px; }
.rule { height: 1px; background: var(--foot-rule); }
.foot-bottom { display: flex; margin-top: 16px; }
.foot-bottom p { color: var(--foot-dim); font-size: 10px; letter-spacing: 1px; }

/* ---------- Desktop (Bg5Rn1-c2-preview, 1280 × 1198, and Rq5Tm3-footer) ---------- */

@media (min-width: 1100px) {
  .stage { padding-bottom: 128px; }
  .uvp { margin-top: 112px; width: 1100px; font-size: 60px; line-height: 1.1; letter-spacing: -1.8px; }
  .cta { margin-top: 40px; }
  .demo { position: relative; margin-top: 56px; }
  .bgs { position: absolute; left: calc(100% + 48px); top: 16px; width: 300px; }
  .bgs-head { margin: 0 0 14px 6px; }
  .list { display: flex; flex-direction: column; gap: 2px; }

  .foot { padding: 56px 64px 32px; }
  .foot-in { max-width: 1152px; }
  .foot-top { display: flex; justify-content: space-between; align-items: flex-end; }
  .legal { gap: 28px; }
  .rule { margin-top: 36px; }
  .foot-bottom { justify-content: space-between; }
}

/* ---------- Tablet (Tb7Sh-page, 800) ---------- */

@media (min-width: 720px) and (max-width: 1099.98px) {
  .stage { padding-bottom: 96px; }
  .uvp { margin-top: 88px; width: 720px; max-width: calc(100% - 40px); font-size: 44px; line-height: 1.1; letter-spacing: -1.3px; }
  .cta { margin-top: 32px; }
  .demo { display: flex; flex-direction: column; align-items: center; margin-top: 48px; }
  .bgs { margin-top: 56px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
  .bgs-head { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
  .list { display: grid; grid-template-columns: 300px 300px; grid-template-rows: repeat(6, auto); grid-auto-flow: column; column-gap: 24px; row-gap: 2px; align-items: start; }

  .foot { padding: 48px 40px 28px; }
  .foot-in { max-width: 1152px; }
  .legal { margin-top: 28px; gap: 28px; }
  .rule { margin-top: 32px; }
  .foot-bottom { justify-content: space-between; }
}

/* ---------- Mobile (Mb8Qe4-page, 375) ---------- */

@media (max-width: 719.98px) {
  .stage { padding-bottom: 72px; }
  /* left-aligned between the 16 px side margins of the list; the lines are balanced */
  .uvp { margin-top: 56px; width: calc(100% - 32px); font-size: 38px; line-height: 1.1; letter-spacing: -1.3px; text-align: left; }
  .uvp .l1, .uvp .l2 { text-wrap: balance; }
  .cta { margin-top: 24px; }
  .demo { display: flex; flex-direction: column; align-items: center; margin-top: 36px; width: 100%; }
  .ripe-window { width: min(408px, calc(100% - 32px)); border-radius: 15px; }  /* 16 px each side up to a 440 px phone */
  .bgs { margin-top: 40px; width: 100%; display: flex; flex-direction: column; gap: 14px; }
  .bgs-head { margin-left: 16px; display: flex; flex-direction: column; gap: 4px; }
  .bgs-head h2 { font-size: 22px; }

  /* the strip scrolls sideways */
  .list { display: flex; gap: 10px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .list::-webkit-scrollbar { display: none; }
  .list li { flex: none; }
  .list button, .list .more { flex-direction: column; justify-content: flex-start; gap: 6px; width: 76px; padding: 0; border-radius: 0; background: none; }
  .list .on { background: none; }
  .list .thumb { width: 76px; height: 76px; border-radius: 14px; }
  .list .on .thumb { box-shadow: inset 0 0 0 2px var(--red); }
  .list .thumb img { width: 66px; height: 66px; border-radius: 10px; }
  .list .name { flex: none; width: 76px; text-align: center; font-size: 11px; line-height: 1.25; color: #3D372F; }
  .list .on .name { color: var(--ink); }
  .list .tag { width: 76px; text-align: center; font-size: 9px; letter-spacing: 0.6px; }
  .list .more .count { font-size: 16px; }

  .foot { padding: 40px 16px 24px; }
  .legal { margin-top: 28px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .rule { margin-top: 28px; }
  .foot-bottom { flex-direction: column; }
  .foot-bottom p + p { margin-top: 6px; }
}
