/* jay.ph — one stylesheet for every page.
   Light ground, and the blue taken from the JAY.PH wordmark so the site and the logo agree. */

:root {
  --bg: #FFFFFF;
  --bg-soft: #F5F7FA;
  --ink: #10141A;
  --muted: #5C6672;
  --faint: #8A939F;
  --line: rgba(16, 20, 26, 0.10);
  --accent: #3074BA;
  --accent-dark: #245C9C;
  --accent-wash: rgba(48, 116, 186, 0.10);
  --radius: 14px;
  --max: 960px;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
/* Jumping to a section should glide rather than teleport, but never for anyone who has
   asked the system to cut animation down. */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }

/* Top bar */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; }
.brand img { height: 18px; width: auto; display: block; }
.nav { display: flex; gap: 22px; font-size: 14px; }
.nav a { color: var(--muted); }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }

/* Hero */
.hero { padding: 80px 0 48px; }
.hero .mark { width: 108px; height: 108px; display: block; margin-bottom: 26px; }
.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5.4vw, 50px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.06;
}
.hero p { margin: 0; font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 46ch; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.12s ease, transform 0.12s ease;
}
.btn:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn.quiet { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.quiet:hover { background: var(--bg-soft); color: var(--ink); }
.btn svg { width: 16px; height: 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* Cards */
.card {
  display: block;
  padding: 20px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: border-color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}
a.card:hover {
  border-color: rgba(48, 116, 186, 0.45);
  box-shadow: 0 8px 26px rgba(16, 20, 26, 0.07);
  transform: translateY(-2px);
  color: var(--ink);
}
.card h3 { margin: 0 0 4px; font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }
.card p { margin: 0; font-size: 14px; color: var(--muted); }

.app-row { display: flex; align-items: center; gap: 18px; }
.app-row img {
  width: 68px; height: 68px; border-radius: 15px; flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(16, 20, 26, 0.18);
}
.app-row .grow { flex-grow: 1; min-width: 0; }
.app-row .arrow { color: var(--faint); font-size: 22px; }

.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pill {
  font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 9px;
  color: var(--accent); background: var(--accent-wash);
}
/* The same badge, used as a jump to a section of this page. Bigger than the platform
   badges on the cards, because this one is a control and wants a real target to hit. */
.jumps { gap: 8px; margin-top: 20px; }
.jumps .pill {
  font-size: 14px; padding: 7px 15px; border-radius: 999px;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.jumps .pill:hover, .jumps .pill:focus-visible { background: var(--accent); color: #FFFFFF; }
/* So a jumped-to heading lands clear of the top edge rather than flush against it. */
.section[id] { scroll-margin-top: 28px; }

/* A filename or a literal, inline in a sentence. */
.k {
  font-family: var(--mono); font-size: 0.92em;
  padding: 1px 5px; border-radius: 5px;
  background: var(--bg-soft); color: var(--muted);
}

/* Sections */
.section { padding: 40px 0; }
.section h2 {
  margin: 0 0 18px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--faint);
}
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); }
.feature svg { width: 22px; height: 22px; color: var(--accent); margin-bottom: 12px; }

/* App page */
.app-hero { display: flex; align-items: center; gap: 26px; padding: 56px 0 28px; }
.app-hero img.icon {
  width: 116px; height: 116px; border-radius: 26px; flex-shrink: 0;
  box-shadow: 0 12px 32px rgba(16, 20, 26, 0.22);
}
.app-hero h1 { margin: 0 0 6px; font-size: clamp(30px, 4.6vw, 42px); letter-spacing: -0.03em; line-height: 1.06; }
.app-hero .tag { margin: 0; font-size: 18px; color: var(--muted); }
.banner { display: block; width: 100%; border-radius: var(--radius); margin: 4px 0 0; }

/* A product's own word logo, on a dark band. The JayResize logo has white letters, so it
   cannot sit on the site's white ground; the band is the app's own navy. */
.product-band {
  margin-top: 40px;
  padding: 56px 28px 50px;
  border-radius: var(--radius);
  background: #0A0C14;
  text-align: center;
}
.product-band h1 { margin: 0; line-height: 0; }
.product-band h1 img { width: min(460px, 100%); height: auto; display: inline-block; }
.product-band .tagline {
  margin: 20px 0 0; color: #C9D3E0;
  font-size: clamp(17px, 2.4vw, 21px); font-weight: 500; letter-spacing: 0.01em;
}
.app-meta { display: flex; align-items: center; gap: 16px; padding: 24px 0 4px; }
.app-meta img.icon {
  width: 64px; height: 64px; border-radius: 15px; flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(16, 20, 26, 0.18);
}
.app-meta .sub { margin: 0; font-size: 16px; font-weight: 600; color: var(--ink); }
.app-meta .pills { margin-top: 6px; }

/* A row of phone screenshots: four across, two on narrow screens. */
.shots { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.shots img {
  display: block; width: 100%; height: auto; border-radius: 16px;
  box-shadow: 0 8px 24px rgba(16, 20, 26, 0.16);
}
.shots figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); text-align: center; }
@media (max-width: 760px) { .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }

.prose { max-width: 68ch; color: var(--muted); font-size: 16px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose h3 { color: var(--ink); font-size: 17px; margin: 26px 0 8px; }
.prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; }
.prose code { font-family: var(--mono); font-size: 14px; color: var(--ink); background: var(--bg-soft); padding: 1px 6px; border-radius: 6px; white-space: nowrap; }

/* FAQ: a numbered contents list, then one folded question per row */
.toc { margin: 0 0 22px; padding-left: 26px; color: var(--ink); }
.toc li { margin: 6px 0; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
details.faq { border-top: 1px solid var(--line); }
details.faq:last-of-type { border-bottom: 1px solid var(--line); }
details.faq summary {
  list-style: none; cursor: pointer; padding: 14px 28px 14px 0; position: relative;
  color: var(--ink); font-size: 17px; font-weight: 600;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 8px; height: 8px;
  border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.15s ease;
}
details.faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details.faq .answer { padding: 0 0 18px; }
details.faq .answer p:first-child { margin-top: 0; }
details.faq:target summary { color: var(--accent); }

.price { display: flex; flex-wrap: wrap; gap: 12px; }
.price .card { flex: 1 1 258px; }
.price .label { font-size: 13px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em; margin: 0; }
.price .amount { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin: 6px 0 4px; }
.price .amount small { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 5px; }

/* Support form */
.form { max-width: 620px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 13px;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-wash);
}
.field .hint { font-size: 12px; color: var(--faint); margin-top: 5px; }
.two { display: flex; gap: 12px; flex-wrap: wrap; }
.two .field { flex: 1 1 220px; margin-bottom: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.note {
  padding: 13px 15px;
  border-radius: 11px;
  font-size: 14px;
  margin-bottom: 18px;
  border: 1px solid transparent;
}
.note.ok { background: rgba(45, 150, 80, 0.10); border-color: rgba(45, 150, 80, 0.35); color: #1F6E3C; }
.note.bad { background: rgba(200, 60, 50, 0.09); border-color: rgba(200, 60, 50, 0.32); color: #A32A22; }

/* Footer */
.foot {
  margin-top: 56px;
  padding: 26px 0 40px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  font-size: 13px; color: var(--faint);
}
.foot a { color: var(--faint); }
/* The site's own name in the copyright, set in small capitals so "jay.ph" reads as a
   wordmark rather than as a lowercase word. letter-spacing keeps the small caps legible
   at 13px; without it they crowd. */
.foot .copy { font-variant-caps: small-caps; letter-spacing: 0.3px; }
.foot a:hover { color: var(--ink); }

@media (max-width: 560px) {
  .hero { padding: 56px 0 36px; }
  .app-hero { flex-direction: column; align-items: flex-start; gap: 18px; padding-top: 40px; }
  .app-row img { width: 58px; height: 58px; }
  .product-band { margin-top: 24px; padding: 40px 20px 36px; }
}
