/* jaybooks.app home page. Converted from the Claude Design landing page
   ("Desktop 1440" and "Phone 390" frames, light and dark). No JavaScript.
   The legal pages use style.css and are not affected by this file.

   Font sizes are the design's pixel sizes written in rem (px / 16), so the page
   follows the reader's text size. Fluid sizes use container-query units (cqi) as
   in the design, with a vw fallback for browsers that lack them. */

:root {
  color-scheme: light dark;
  /* Light set (design: renderVals, dark = false) */
  --bg: #FBFBFE;
  --surf: #ECEEF5;
  --ink: #1A1C20;
  --slate: #43474E;
  --p: #235E9C;
  --onp: #FFFFFF;
  --pc: #D4E3FA;
  --onpc: #0A2E56;
  --line: #ECEEF5;
  --phone-body: #1A1C20;
  --phone-edge: #1A1C20;
  --screen-top: #FBFBFE;      /* the screenshots' own status-bar colours */
  --screen-top-bar: #FBFBFE;  /* screens with an app bar */
  --frame-line: #1A1C20;
  --plate: transparent;
  --plate-pad: 0;
  --plate-pad-art: 0;

  --serif: "Newsreader", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;

  /* Fluid values, vw fallback */
  --gutter: clamp(20px, 5vw, 64px);
  --hero-top: clamp(24px, 5vw, 64px);
  --hero-bottom: clamp(56px, 7vw, 112px);
  --hero-gap: clamp(40px, 5vw, 88px);
  --section-pad: clamp(48px, 7vw, 112px);
  --story-gap: clamp(32px, 5vw, 88px);
  --shop-pad: clamp(28px, 4vw, 56px);
  --close-pad: clamp(56px, 8vw, 128px);
  --fs-h1: clamp(2.5rem, 5.2vw, 4.625rem);
  --fs-lede: clamp(1.125rem, 1.4vw, 1.3125rem);
  --fs-story: clamp(1.375rem, 2vw, 1.8125rem);
  --fs-h2: clamp(2.125rem, 3.4vw, 3.125rem);
  --fs-shop: clamp(1.875rem, 2.8vw, 2.5rem);
  --fs-close: clamp(2.25rem, 4.4vw, 3.875rem);
}

@supports (width: 1cqi) {
  :root {
    --gutter: clamp(20px, 5cqi, 64px);
    --hero-top: clamp(24px, 5cqi, 64px);
    --hero-bottom: clamp(56px, 7cqi, 112px);
    --hero-gap: clamp(40px, 5cqi, 88px);
    --section-pad: clamp(48px, 7cqi, 112px);
    --story-gap: clamp(32px, 5cqi, 88px);
    --shop-pad: clamp(28px, 4cqi, 56px);
    --close-pad: clamp(56px, 8cqi, 128px);
    --fs-h1: clamp(2.5rem, 5.2cqi, 4.625rem);
    --fs-lede: clamp(1.125rem, 1.4cqi, 1.3125rem);
    --fs-story: clamp(1.375rem, 2cqi, 1.8125rem);
    --fs-h2: clamp(2.125rem, 3.4cqi, 3.125rem);
    --fs-shop: clamp(1.875rem, 2.8cqi, 2.5rem);
    --fs-close: clamp(2.25rem, 4.4cqi, 3.875rem);
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Dark set (design: renderVals, dark = true) */
    --bg: #12161C;
    --surf: #1B212A;
    --ink: #E2E6EE;
    --slate: #B9C1CC;
    --p: #7FB3E8;
    --onp: #0A2E56;
    --pc: #12406E;
    --onpc: #D4E3FA;
    --line: #2B323D;
    --phone-body: #07090C;
    --phone-edge: #3A424E;
    --screen-top: #12161C;
    --screen-top-bar: #161B22;
    --frame-line: #8C939E;
    /* Light-ink versions of the logo and the drawing are served in the dark
       theme (picture/source in the markup), so no plate. */
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

.lp {
  width: 100%;
  container-type: inline-size;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.5;
  overflow-wrap: break-word;
}

.lp h1,
.lp h2,
.lp h3,
.lp p,
.lp ul,
.lp ol {
  margin: 0;
}

.lp ul,
.lp ol {
  padding: 0;
  list-style: none;
}

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

.lp a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.lp .band-tint a:focus-visible {
  outline-color: var(--onpc);
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 24px;
  background: var(--p);
  color: var(--onp);
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.muted {
  color: var(--slate);
}

.serif {
  font-family: var(--serif);
  font-weight: 500;
}

/* Buttons and links */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 28px;
  background: var(--p);
  color: var(--onp);
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
}

.btn-small {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 24px;
  font-size: 1rem;
  white-space: nowrap;
}

.btn-outline {
  flex: none;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 24px;
  border: 1.5px solid var(--onpc);
  background: transparent;
  color: var(--onpc);
  font-size: 1rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--p);
  font-size: 1.0625rem;
  font-weight: 500;
  text-underline-offset: 4px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

/* Logo plate */

.logo {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  border-radius: 14px;
  background: var(--plate);
  padding: var(--plate-pad);
}

.logo img {
  width: 112px;
  height: auto;
}

/* Header */

.site-head {
  padding-top: 20px;
  padding-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
}

/* Hero */

.hero {
  padding-top: var(--hero-top);
  padding-bottom: var(--hero-bottom);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--hero-gap);
}

.hero-copy {
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 16px;
  background: var(--pc);
  color: var(--onpc);
  font-size: 0.875rem;
  font-weight: 600;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--fs-h1);
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.lede {
  max-width: 34em;
  font-size: var(--fs-lede);
  line-height: 1.5;
  color: var(--slate);
}

.hero .cta-row {
  padding-top: 4px;
}

.small {
  font-size: 0.9375rem;
  color: var(--slate);
}

.hero-shot {
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-self: flex-end;
  margin-bottom: calc(-1 * var(--hero-bottom));
}

/* App screenshots, in a plain phone frame drawn here (not baked into the PNGs).
   Each slot shows a full-width horizontal slice of a 1080x2400 screenshot.
   --crop-y and --crop-h are the slice's top and height in screenshot pixels;
   object-position slides the image so the slice starts at --crop-y.
   The phone runs off the bottom of its slot. A slot that shows a row from
   further down the screen puts a .shot-status picture first: the same
   screenshot cropped to its status bar, which stays put while the app
   scrolls. Replacing a PNG (and its -dark twin) is all it takes. */

.shot {
  --bezel: 7px;
  position: relative;
  flex: none;
  width: var(--shot-w);
  max-width: 100%;
  padding: var(--bezel) var(--bezel) 0;
  border-radius: 34px 34px 0 0;
  background: var(--phone-body);
  box-shadow: 0 0 0 1px var(--phone-edge);
  clip-path: inset(-1px -1px 0 -1px); /* no edge line along the cut-off bottom */
}

.shot::before {
  content: "";
  position: absolute;
  top: calc(var(--bezel) + 9px);
  left: 50%;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  border-radius: 50%;
  background: var(--phone-body);
  box-shadow: 0 0 0 1px var(--phone-edge);
}

.shot picture {
  display: block;
  overflow: hidden;
  border-radius: 27px 27px 0 0;
  padding-top: 12px; /* keeps the status bar clear of the rounded corners */
  background: var(--screen-top);
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1080 / var(--crop-h);
  object-fit: cover;
  object-position: 0 calc(var(--crop-y) / (2400 - var(--crop-h)) * 100%);
}

.shot picture + picture {
  border-radius: 0;
  padding-top: 0;
}

.shot .shot-status img {
  --crop-y: 0;
  --crop-h: 80;
}

.shot-hero {
  --shot-w: 340px;
  --bezel: 8px;
  --crop-y: 0;
  --crop-h: 1900;
}

.shot-find {
  --shot-w: 280px;
  --crop-y: 985;
  --crop-h: 985;
}

.shot-borrow,
.shot-handoff {
  --screen-top: var(--screen-top-bar);
}

.shot-borrow {
  --shot-w: 280px;
  --crop-y: 0;
  --crop-h: 1095;
}

.shot-handoff {
  --shot-w: 280px;
  --crop-y: 0;
  --crop-h: 1095;
}

/* Story */

.band {
  background: var(--surf);
}

.story {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--story-gap);
}

.story-art {
  flex: 0 1 340px;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.art-plate {
  width: 100%;
  max-width: 340px;
  border-radius: 18px;
  background: var(--plate);
  padding: var(--plate-pad-art);
}

.art-plate img {
  width: 100%;
  height: auto;
}

.story-copy {
  flex: 1 1 480px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.eyebrow-h {
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--slate);
}

.story-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: var(--serif);
  font-size: var(--fs-story);
  line-height: 1.45;
  max-width: 30em;
}

.story-text .turn {
  font-style: italic;
}

/* Section headings */

.section {
  padding-top: 0;
  padding-bottom: var(--section-pad);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.section-how {
  padding-top: var(--section-pad);
  gap: 40px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 40em;
}

.h-section {
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: 1.1;
}

.section-head p {
  font-size: 1.1875rem;
  color: var(--slate);
}

/* How it works */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 24px;
}

.step {
  background: var(--surf);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step-n {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--slate);
}

.step h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2rem;
  line-height: 1.1;
}

.lp .step p {
  margin: 0 0 12px;
  color: var(--slate);
}

.step .shot {
  margin: auto auto -28px; /* cancels the card's bottom padding */
}

/* It shares carefully */

.cares {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 24px 32px;
}

.cares li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 20px;
  border-top: 2px solid var(--ink);
}

.cares h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.3;
}

.cares p {
  color: var(--slate);
}

/* For bookstores */

.band-tint {
  background: var(--pc);
  color: var(--onpc);
  border-radius: 18px;
  padding: var(--shop-pad);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
}

.shop-copy {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shop-label {
  font-size: 0.9375rem;
  font-weight: 600;
}

.shop-copy h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--fs-shop);
  line-height: 1.15;
}

.shop-copy p:last-child {
  max-width: 34em;
}

/* Questions */

.faq {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  gap: 32px 64px;
}

.faq > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5625rem;
  line-height: 1.25;
}

.faq p {
  color: var(--slate);
}

.faq .text-link {
  align-self: flex-start;
  font-size: inherit;
}

/* Closing band */

.closing {
  padding-top: var(--close-pad);
  padding-bottom: var(--close-pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}

.closing h2 {
  max-width: 16em;
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--fs-close);
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.closing .cta-row {
  justify-content: center;
}

/* Footer */

.site-foot {
  border-top: 1px solid var(--line);
}

.site-foot .wrap {
  padding-top: 40px;
  padding-bottom: 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
}

.site-foot li a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--ink);
  text-underline-offset: 4px;
}

.site-foot .foot-note {
  flex-basis: 100%;
  font-size: 0.9375rem;
  color: var(--slate);
}

/* Phone layout (design prop: compact). Everything else reflows by itself
   through flex-wrap, auto-fit grids and the fluid sizes above. */

@media (max-width: 760px) {
  .site-head .logo img {
    width: 92px;
  }

  .btn-small {
    padding: 0 18px;
    font-size: 0.9375rem;
  }
}

@media (max-width: 340px) {
  .btn-small {
    white-space: normal;
  }
}

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