/* capps.tech — one-person app studio, Dublin.
   Light "workbench" look: cool porcelain paper, ink, shamrock green.
   The color comes from the app icons themselves. */

:root {
  --paper: #f4f5f1;
  --card: #ffffff;
  --ink: #191d19;
  --muted: #5b635c;
  --line: #e0e4db;
  --line-soft: #e9ece5;
  --green: #0e7a3c;
  --green-deep: #0a5c2e;
  --green-tint: #e3efe6;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Instrument Sans", system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

a { color: var(--green); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}

.mono {
  font-family: "Spline Sans Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- header ---------- */

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 26px;
}

.brand {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.brand span { color: var(--green); }

.head-links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.head-links a {
  color: var(--muted);
  text-decoration: none;
}
.head-links a:hover { color: var(--green); }

/* ---------- hero ---------- */

.hero { padding-block: clamp(36px, 7vh, 84px) clamp(20px, 3vh, 36px); }

.hero h1 {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 640;
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.022em;
  max-width: 16ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--green);
}

.hero-sub {
  margin-top: 22px;
  max-width: 54ch;
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  color: var(--muted);
}
.hero-sub a { color: var(--ink); }
.hero-sub a:hover { color: var(--green); }

/* ---------- icon shelf (signature) ---------- */

.shelf {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: clamp(10px, 2vw, 22px);
  padding-block: clamp(26px, 5vh, 54px) clamp(30px, 5vh, 56px);
}

.sticker {
  width: clamp(74px, 8.4vw, 104px);
  height: auto;
  border-radius: 22.5%;
  box-shadow:
    0 1px 0 rgba(20, 26, 20, 0.05),
    0 14px 30px -12px rgba(20, 26, 20, 0.3);
  outline: 1px solid rgba(20, 26, 20, 0.07);
  outline-offset: -1px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.shelf .sticker:nth-child(odd)  { transform: rotate(-4deg); }
.shelf .sticker:nth-child(even) { transform: rotate(3deg) translateY(6px); }
.shelf .sticker:nth-child(3n)   { transform: rotate(-2deg) translateY(-5px); }
.shelf .sticker:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.05);
  box-shadow:
    0 1px 0 rgba(20, 26, 20, 0.05),
    0 24px 44px -14px rgba(20, 26, 20, 0.38);
}

/* ---------- sections ---------- */

.section { padding-block: clamp(40px, 7vh, 80px); }
.section + .section { border-top: 1px solid var(--line-soft); }

.eyebrow {
  display: block;
  color: var(--green);
  margin-bottom: 14px;
}

.section h2 {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 620;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.section-sub {
  margin-top: 14px;
  max-width: 54ch;
  color: var(--muted);
}

/* ---------- app grid ---------- */

.apps-grid {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 18px;
}

.app-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}
.app-card:hover {
  transform: translateY(-3px);
  border-color: var(--green);
  box-shadow: 0 18px 34px -18px rgba(20, 26, 20, 0.25);
}

.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 22.5%;
  flex-shrink: 0;
  outline: 1px solid rgba(20, 26, 20, 0.08);
  outline-offset: -1px;
}

.app-card h3 {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 640;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
}

.app-card p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.app-dest {
  display: inline-block;
  margin-top: 10px;
  color: var(--green);
}
.app-card:hover .app-dest { color: var(--green-deep); }

/* ---------- contact ---------- */

.contact-grid {
  margin-top: 38px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 7px;
}
.field input,
.field textarea {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
  font: inherit;
  color: var(--ink);
}
.field input:hover,
.field textarea:hover { border-color: var(--muted); }
.field textarea { min-height: 150px; resize: vertical; }

.send-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 14px 28px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 120ms ease, transform 120ms ease;
}
.send-btn:hover { background: var(--green-deep); transform: translateY(-1px); }

.contact-aside {
  background: var(--green-tint);
  border-radius: 20px;
  padding: 26px;
}
.contact-aside h3 {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 640;
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.contact-aside p { color: var(--muted); font-size: 0.95rem; }
.contact-ways {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}
.contact-ways a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.contact-ways a:hover { color: var(--green); }
.contact-ways .mono { color: var(--green); display: block; margin-bottom: 2px; }

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--line);
  margin-top: clamp(30px, 6vh, 60px);
  padding-block: 30px 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: var(--muted);
}
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--green); }

/* ---------- product page (Pick Me) ---------- */

.product-hero {
  display: flex;
  align-items: center;
  gap: clamp(22px, 4vw, 40px);
  padding-block: clamp(36px, 7vh, 72px) clamp(16px, 3vh, 28px);
  flex-wrap: wrap;
}
.product-hero .app-icon-lg {
  width: clamp(110px, 15vw, 150px);
  height: auto;
  border-radius: 22.5%;
  box-shadow: 0 20px 40px -16px rgba(20, 26, 20, 0.35);
  outline: 1px solid rgba(20, 26, 20, 0.08);
  outline-offset: -1px;
}
.product-hero h1 {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 640;
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.product-hero .tagline { margin-top: 10px; color: var(--muted); max-width: 50ch; }

.store-link { display: inline-block; margin-top: 20px; border-radius: 8px; }
.store-badge { height: 52px; width: auto; display: block; }

.feature-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 34px;
}
.feature-col {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
}
.feature-col h2 { font-size: 1.25rem; }
.feature-col ul {
  margin-top: 16px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--muted);
}
.feature-col li { padding-left: 24px; position: relative; }
.feature-col li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* ---------- legal pages ---------- */

.legal {
  max-width: 70ch;
  margin-inline: auto;
  padding-block: clamp(32px, 5vh, 60px) clamp(52px, 8vh, 96px);
}
.legal h1 {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 640;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin-bottom: 8px;
}
.legal .page-app {
  color: var(--muted);
  margin-bottom: 36px;
}
.legal h2 {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 620;
  font-size: 1.3rem;
  margin: 34px 0 12px;
}
.legal h3,
.legal h4 {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 620;
  font-size: 1.1rem;
  margin: 26px 0 10px;
}
.legal p { margin-bottom: 14px; }
.legal ul, .legal ol { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal strong { font-weight: 650; }

/* ---------- utility pages (404 / thanks) ---------- */

.hush {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
}
.hush h1 {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 640;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}
.hush p { color: var(--muted); max-width: 44ch; }
.hush .send-btn { text-decoration: none; }

/* ---------- responsive ---------- */

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
  .feature-cols { grid-template-columns: 1fr; }
  .head-links { gap: 14px; font-size: 0.95rem; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sticker, .app-card, .send-btn { transition: none; }
  .shelf .sticker:hover { transform: none; }
  .app-card:hover, .send-btn:hover { transform: none; }
}
