/* Personal PITA site — light, colorful, matched to the app icon */
:root {
  --bg: #f2f6fb;
  --surface: #ffffff;
  --border: #d9e3ef;
  --text: #1c2b3a;
  --text-dim: #4e6379;
  --blue: #1f6fe0;
  --blue-deep: #1758b8;
  --green: #58b31c;
  --green-text: #3f8a10;
  --orange: #f59e0b;
  --red: #e23b3b;
  --navy: #1e2c42;
  --grad: linear-gradient(135deg, #1f6fe0, #58b31c);
  --grad-bar: linear-gradient(90deg, #e23b3b, #f59e0b, #58b31c);
  --shadow: 0 6px 24px rgba(28, 43, 58, 0.08);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

/* soft colorful glow behind the hero */
.glow {
  position: fixed;
  top: -300px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 640px;
  background:
    radial-gradient(ellipse 420px 300px at 30% 40%, rgba(31, 111, 224, 0.14), transparent 70%),
    radial-gradient(ellipse 380px 280px at 70% 35%, rgba(88, 179, 28, 0.12), transparent 70%),
    radial-gradient(ellipse 300px 240px at 50% 70%, rgba(245, 158, 11, 0.10), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* nav */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  flex-wrap: wrap;
  gap: 12px;
}

.brand {
  font-weight: 800;
  font-size: 1.15rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* app icon in nav — clipped to an iOS-style squircle to trim the baked-in glow */
.brand-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex: none;
}

/* app icon above the hero headline */
.hero-icon {
  width: 116px;
  height: 116px;
  border-radius: 26px;
  box-shadow: 0 10px 30px rgba(28, 43, 58, 0.18);
  margin-bottom: 26px;
  animation: fadeUp 0.7s ease both;
}

nav .links { display: flex; gap: 8px; }

nav .links a {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 18px;          /* 44px+ touch target */
  border-radius: 12px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

nav .links a:hover, nav .links a.active {
  color: var(--blue-deep);
  background: rgba(31, 111, 224, 0.09);
}

/* hero */
.hero { text-align: center; padding: 72px 0 48px; }

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  font-weight: 800;
}

.hero h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p.sub {
  font-size: 1.2rem;
  color: var(--text-dim);
  max-width: 580px;
  margin: 0 auto 32px;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--blue);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 16px 32px;          /* comfortably over 44px tall */
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(31, 111, 224, 0.35);
}

.cta:hover { background: var(--blue-deep); }

/* Coming-soon state: button stays in DOM, inert + dimmed, badge on top */
.cta-wrap { position: relative; display: inline-block; }
.cta-wrap .cta {
  pointer-events: none;
  opacity: 0.5;
  filter: saturate(0.5);
  box-shadow: none;
}
.badge-soon {
  position: absolute;
  top: -14px;
  right: -22px;
  background: var(--orange);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  transform: rotate(5deg);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.45);
  white-space: nowrap;
}

.cta-note { display: block; margin-top: 14px; font-size: 0.9rem; color: var(--text-dim); }

/* page headers (support / privacy) */
.page-head { padding: 48px 0 8px; }
.page-head h1 { font-size: 2.2rem; margin-bottom: 8px; font-weight: 800; }
.page-head p { color: var(--text-dim); }

/* cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  margin-top: 24px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--blue);
}

/* rotate the icon's bar colors across cards */
.card:nth-of-type(3n+2) { border-top-color: var(--orange); }
.card:nth-of-type(3n)   { border-top-color: var(--green); }

.card h2 {
  font-size: 1.35rem;
  margin-bottom: 14px;
  font-weight: 700;
}

.card h2 .tick {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--grad);
  margin-right: 10px;
}

.card ul { list-style: none; }

.card ul li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--text-dim);
}

.card ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.card ul li:nth-child(3n+2)::before { background: var(--blue); }
.card ul li:nth-child(3n)::before   { background: var(--orange); }

.card p { color: var(--text-dim); margin-bottom: 12px; }
.card p:last-child { margin-bottom: 0; }
.card strong { color: var(--text); }

/* three-up feature grid */
.grid3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.grid3 .card { margin-top: 0; }
.grid3 .card:nth-child(1) { border-top-color: var(--blue); }
.grid3 .card:nth-child(2) { border-top-color: var(--orange); }
.grid3 .card:nth-child(3) { border-top-color: var(--green); }

/* voice grammar demo (static block) */
.grammar {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1rem;
  background: var(--navy);
  border-radius: 14px;
  padding: 22px;
  margin-top: 10px;
  overflow-x: auto;
  color: #e8eef7;
}

.grammar div { padding: 5px 0; white-space: nowrap; }
.grammar .kw { color: #8ee04e; font-weight: 700; }
.grammar .free { color: #f3b13c; }
.grammar .cm { color: #91a4bb; }

/* entrance animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

.hero h1        { animation: fadeUp 0.7s ease both; }
.hero p.sub     { animation: fadeUp 0.7s ease 0.15s both; }
.hero .cta      { animation: fadeUp 0.7s ease 0.3s both; }
.hero .cta-note { animation: fadeUp 0.7s ease 0.4s both; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* live dictation demo */
.demo {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  align-items: stretch;
  margin-top: 18px;
}

.demo-left { display: flex; flex-direction: column; gap: 14px; }

.mic-row { display: flex; align-items: center; gap: 14px; }

.mic {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.mic::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(31, 111, 224, 0.5);
  animation: micPulse 1.6s ease-out infinite;
}

@keyframes micPulse {
  0%   { transform: scale(0.9); opacity: 0.9; }
  100% { transform: scale(1.45); opacity: 0; }
}

.mic-row .rec { color: var(--text-dim); font-size: 0.9rem; font-weight: 600; }
.mic-row .rec b { color: var(--red); }

.transcript {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1rem;
  line-height: 1.8;
  background: var(--navy);
  border-radius: 14px;
  padding: 20px;
  min-height: 170px;
  flex: 1;
  position: relative;
  color: #e8eef7;
}

/* invisible full-length copy reserves the finished height so the card never jumps */
.transcript .ghost { visibility: hidden; }

.transcript .live {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
}

.transcript .kw2 { color: #8ee04e; font-weight: 700; }
.transcript .free2 { color: #91a4bb; font-style: italic; }

.caret {
  display: inline-block;
  width: 9px;
  height: 1.15em;
  vertical-align: text-bottom;
  background: #8ee04e;
  margin-left: 2px;
  animation: blink 0.9s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

/* mini dashboard that fills up */
.phone {
  background: #eaf1f9;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phone .ph-title {
  font-weight: 800;
  font-size: 1.05rem;
  min-height: 1.5em;
  color: var(--text);
}

.phone .ph-title .badge-live {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ffffff;
  background: var(--green);
  border-radius: 999px;
  padding: 3px 9px;
  margin-left: 8px;
  vertical-align: middle;
}

.pbar {
  height: 8px;
  border-radius: 999px;
  background: rgba(28, 43, 58, 0.10);
  overflow: hidden;
}

.pbar > div {
  height: 100%;
  width: 0%;
  background: var(--grad-bar);
  border-radius: 999px;
  transition: width 0.6s ease;
}

.task-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.task-item.in { opacity: 1; transform: none; }

.task-item .chk {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--green);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #ffffff;
}

.task-item.done .chk { background: var(--green); }
.task-item.done { color: var(--text); }

.demo-note { color: var(--text-dim); font-size: 0.88rem; margin-top: 12px; }

@media (max-width: 640px) {
  .demo { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hero h1, .hero p.sub, .hero .cta, .hero .cta-note { animation: none; }
  .mic::after, .caret { animation: none; }
  .reveal, .task-item { opacity: 1; transform: none; transition: none; }
}

/* contact button */
.mail-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 24px;
  border-radius: 14px;
  background: var(--blue);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  margin-top: 6px;
  box-shadow: 0 4px 14px rgba(31, 111, 224, 0.3);
}

.mail-btn:hover { background: var(--blue-deep); }

/* footer */
footer {
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

footer a { color: var(--text-dim); padding: 8px 4px; display: inline-block; }
footer a:hover { color: var(--blue-deep); }

a { color: var(--blue-deep); }

@media (max-width: 600px) {
  .hero { padding: 44px 0 36px; }
  footer { flex-direction: column; }
}
