/* Shared base for akshaycp.com/apps/* pages. Each page owns its colours, fonts and hero on :root:
   --paper --card --ink --soft --line --accent --accent-ink --head-font --body-font */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body-font, system-ui, -apple-system, "Segoe UI", sans-serif);
  font-size: 17px; line-height: 1.6; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--head-font, var(--body-font, system-ui, sans-serif)); margin: 0; }
p { margin: 0; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Top bar */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; font-size: 14px; }
.topbar a { color: inherit; text-decoration: none; opacity: .7; }
.topbar a:hover { opacity: 1; }
.topbar .mini { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; opacity: 1; }
.topbar .mini img { width: 30px; height: 30px; border-radius: 8px; }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 26px; border-radius: 14px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; font-size: 16px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.fine { font-size: 14px; opacity: .72; margin-top: 14px; }

/* Phone frame around a raw 1080 x 2400 screen */
.phone {
  width: 280px; aspect-ratio: 1080 / 2400; padding: 9px; border-radius: 42px; flex: none;
  background: #0c0f12; box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset, 0 30px 60px -20px rgba(0,0,0,.45), 0 12px 24px -12px rgba(0,0,0,.3);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 34px; }

/* Section rhythm */
.sec { padding: 96px 0; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.sec h2 { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; max-width: 18em; }
.sec .intro { font-size: 19px; color: var(--soft); max-width: 36em; margin-top: 18px; }
.center { text-align: center; }
.center h2, .center .intro { margin-left: auto; margin-right: auto; }

/* Feature rows: picture and words, alternating sides */
.rows { display: grid; gap: 96px; margin-top: 72px; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.row:nth-child(even) .pic { order: 2; }
.row .pic { display: flex; justify-content: center; }
.row h3 { font-size: clamp(24px, 2.8vw, 32px); line-height: 1.15; letter-spacing: -0.015em; margin-bottom: 14px; }
.row p { color: var(--soft); font-size: 18px; max-width: 30em; }
.row ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.row li { display: flex; gap: 12px; align-items: baseline; color: var(--soft); }
.row li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; transform: translateY(-2px); }

/* FAQ */
.faq { max-width: 800px; margin: 40px auto 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { font-weight: 600; font-size: 19px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 28px; line-height: 1; font-weight: 300; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--soft); font-size: 17px; max-width: 40em; }

footer { padding: 32px 0 56px; font-size: 14px; color: var(--soft); }
footer a { color: inherit; }

@media (max-width: 860px) {
  .sec { padding: 64px 0; }
  .rows { gap: 64px; margin-top: 48px; }
  .row { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .row:nth-child(even) .pic { order: 0; }
  .phone { width: 240px; border-radius: 36px; padding: 8px; }
  .phone img { border-radius: 29px; }
  .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
