/* I Can Call — website styles.
   Same palette and type as the app: warm paper, deep green, one amber. */

:root {
  --paper: #f4f0e8;
  --paper-deep: #ece6db;
  --surface: #ffffff;
  --ink: #1b1a17;
  --ink-soft: #4f4b44;
  --muted: #696459;
  --line: #e4ddd1;
  --accent: #1f4d3a;
  --accent-pressed: #173b2c;
  --accent-soft: #dce8e0;
  --amber: #e8a33d;
  --amber-soft: #fbebd1;
  --amber-ink: #7a4e0b;
  --night: #0e1512;
  --night-raised: #18221d;
  --night-line: #26332c;
  --night-text: #f4f0e8;
  --night-muted: #92a399;
  --call-green: #3db37e;
  --call-red: #e0483a;
  --wrap: 1080px;
  --radius: 20px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  letter-spacing: -0.005em;
}

h1, h2, h3, h4 {
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.22rem; line-height: 1.3; }

p { margin: 0 0 1.1em; max-width: 62ch; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-pressed); }
img { max-width: 100%; display: block; }
hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 720px); margin-inline: auto; }
.lede { font-size: 1.2rem; color: var(--ink-soft); }
.small { font-size: 0.93rem; color: var(--muted); }
.center { text-align: center; }
.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

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

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 240, 232, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-head.scrolled { border-bottom-color: var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 1.5rem; padding: 0.9rem 0; }

.brand { display: flex; align-items: center; gap: 0.6rem; font-family: Fraunces, Georgia, serif; font-size: 1.12rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 1.6rem; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: 0.97rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
/* the call-to-action in the nav keeps the button colours, not the link colour */
.nav a.btn, .nav a.btn:hover, .nav a.btn[aria-current="page"] { color: #fff; }
.band a.btn, .band a.btn:hover { color: var(--accent); }

.nav-toggle { display: none; background: none; border: 0; padding: 0.4rem; cursor: pointer; }
.nav-toggle svg { display: block; }

@media (max-width: 760px) {
  .nav {
    position: absolute;
    inset: 100% 1.25rem auto 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0.4rem;
    box-shadow: 0 18px 40px rgba(27, 26, 23, 0.1);
  }
  .nav:not(.open) { display: none; }
  .nav a { padding: 0.75rem 0.8rem; border-radius: 10px; }
  .nav a:hover { background: var(--paper-deep); }
  .nav .btn { margin-top: 0.3rem; justify-content: center; }
  .nav-toggle { display: block; margin-left: auto; }
}

/* --- buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.82rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.12s;
}
.btn:hover { background: var(--accent-pressed); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { background: var(--paper-deep); color: var(--ink); }
.btn.small { padding: 0.6rem 1.05rem; font-size: 0.93rem; }
.btn svg { flex: none; }

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

.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero .wrap { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 span { font-style: italic; font-weight: 500; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.8rem 0 1rem; }
.hero .note { font-size: 0.93rem; color: var(--muted); max-width: 46ch; }

@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phone-stage { order: -1; }
}

/* --- phone mock --------------------------------------------------------- */

.phone-stage { display: flex; justify-content: center; }
.phone {
  width: 300px;
  max-width: 82vw;
  aspect-ratio: 9 / 19;
  background: var(--night);
  border-radius: 38px;
  border: 10px solid #141a17;
  box-shadow: 0 30px 70px rgba(14, 21, 18, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  padding: 1.5rem 1.15rem 1.1rem;
  color: var(--night-text);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.phone::before {
  content: "";
  position: absolute;
  top: 0.65rem; left: 50%;
  transform: translateX(-50%);
  width: 86px; height: 5px;
  border-radius: 999px;
  background: #26332c;
}
.phone .who { text-align: center; margin-top: 0.7rem; }
.phone .avatar {
  width: 78px; height: 78px;
  border-radius: 50%;
  margin: 0 auto 0.7rem;
  background: radial-gradient(circle at 35% 30%, #f7dec6, #e59e62);
  position: relative;
}
.phone .avatar::after {
  content: "";
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(61, 179, 126, 0.35);
  animation: ring 2.6s ease-out infinite;
}
@keyframes ring { 0% { transform: scale(0.94); opacity: 0.9; } 70% { transform: scale(1.12); opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .phone .avatar::after { animation: none; } }
.phone .name { font-family: Fraunces, Georgia, serif; font-size: 1.22rem; }
.phone .timer { color: var(--night-muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.phone .caption {
  margin-top: auto;
  background: var(--night-raised);
  border: 1px solid var(--night-line);
  border-radius: 16px;
  padding: 0.85rem 0.95rem;
  font-size: 0.93rem;
  line-height: 1.45;
}
.phone .caption .label { display: block; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--night-muted); margin-bottom: 0.3rem; }
.phone .cue {
  margin-top: 0.7rem;
  background: rgba(232, 163, 61, 0.14);
  border: 1px solid rgba(232, 163, 61, 0.3);
  color: #f6d9a8;
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
  font-size: 0.84rem;
}
.phone .controls { display: flex; justify-content: center; gap: 1rem; margin-top: 1rem; }
.phone .control { width: 46px; height: 46px; border-radius: 50%; background: var(--night-raised); border: 1px solid var(--night-line); display: grid; place-items: center; }
.phone .control.hang { background: var(--call-red); border-color: transparent; }

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

section { padding: clamp(3rem, 6vw, 5rem) 0; }
section.tint { background: var(--paper-deep); }
.section-head { max-width: 46ch; margin-bottom: 2.4rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.1rem; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
}
.card h3 { margin-bottom: 0.4rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
.card .num { font-family: Fraunces, Georgia, serif; font-size: 1.6rem; color: var(--accent); display: block; margin-bottom: 0.5rem; }

.steps { counter-reset: step; display: grid; gap: 1.6rem; }
.step { display: grid; grid-template-columns: 2.6rem 1fr; gap: 1.1rem; align-items: start; }
.step::before {
  counter-increment: step;
  content: counter(step);
  width: 2.6rem; height: 2.6rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: Fraunces, Georgia, serif;
  font-size: 1.1rem;
  display: grid; place-items: center;
}
.step h3 { margin-bottom: 0.25rem; }
.step p { margin: 0; color: var(--ink-soft); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.quote {
  border-left: 3px solid var(--accent-soft);
  padding-left: 1.3rem;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.3rem;
  line-height: 1.45;
  color: var(--ink);
}

.list { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: 0.7rem; }
.list li { display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.6rem; color: var(--ink-soft); }
.list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-top: 0.62rem; }
.list.plain li::before { background: var(--muted); }

.stat-row { display: flex; flex-wrap: wrap; gap: 2.2rem; margin-top: 1.5rem; }
.stat b { display: block; font-family: Fraunces, Georgia, serif; font-size: 1.9rem; color: var(--accent); line-height: 1.1; }
.stat span { font-size: 0.92rem; color: var(--muted); }

/* --- pricing ------------------------------------------------------------ */

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.2rem; align-items: start; }
.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  display: flex;
  flex-direction: column;
}
.plan.featured { border-color: var(--accent); box-shadow: 0 16px 44px rgba(31, 77, 58, 0.12); }
.plan .tag { display: inline-block; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 0.25rem 0.7rem; margin-bottom: 0.9rem; }
.plan .price { font-family: Fraunces, Georgia, serif; font-size: 2.3rem; line-height: 1; }
.plan .price small { font-family: Inter, sans-serif; font-size: 0.95rem; font-weight: 400; color: var(--muted); }
.plan .what { color: var(--ink-soft); margin: 0.5rem 0 1.2rem; font-size: 0.98rem; }
.plan .list { flex: 1; }

.notice {
  background: var(--amber-soft);
  border: 1px solid rgba(232, 163, 61, 0.4);
  color: var(--amber-ink);
  border-radius: 16px;
  padding: 1.1rem 1.3rem;
  font-size: 0.97rem;
}
.notice strong { color: var(--amber-ink); }
.notice p:last-child { margin-bottom: 0; }

.table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.table th, .table td { text-align: left; padding: 0.85rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-weight: 600; }
.table td:not(:first-child), .table th:not(:first-child) { text-align: center; }
.table-scroll { overflow-x: auto; }

/* --- faq ---------------------------------------------------------------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 0.3rem 0; }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 2.2rem 1.1rem 0;
  font-weight: 600;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute; right: 0.4rem; top: 1.45rem;
  width: 9px; height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.18s;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { margin: 0 0 1.1rem; color: var(--ink-soft); }

/* --- download ----------------------------------------------------------- */

.download-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
}
.download-box .meta { font-size: 0.9rem; color: var(--muted); margin-top: 0.8rem; }
.callout { background: var(--accent-soft); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.callout p:last-child { margin-bottom: 0; }

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

.legal { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.legal h2 { font-size: 1.45rem; margin-top: 2.4rem; }
.legal h3 { font-size: 1.08rem; margin-top: 1.6rem; }
.legal ul { color: var(--ink-soft); padding-left: 1.1rem; }
.legal li { margin-bottom: 0.5rem; }
.legal .updated { color: var(--muted); font-size: 0.92rem; }

/* --- cta band + footer -------------------------------------------------- */

.band { background: var(--accent); color: #fff; border-radius: 28px; padding: clamp(2.2rem, 5vw, 3.4rem); }
.band h2 { color: #fff; }
.band p { color: rgba(255, 255, 255, 0.82); }
.band .btn { background: #fff; color: var(--accent); }
.band .btn:hover { background: var(--paper); color: var(--accent-pressed); }

.site-foot { border-top: 1px solid var(--line); padding: 2.6rem 0 3.4rem; margin-top: 3rem; }
.site-foot .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.site-foot h4 { font-family: Inter, sans-serif; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 0.8rem; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.site-foot a { color: var(--ink-soft); text-decoration: none; font-size: 0.95rem; }
.site-foot a:hover { color: var(--ink); text-decoration: underline; }
.site-foot .fine { margin-top: 2.4rem; color: var(--muted); font-size: 0.88rem; }
@media (max-width: 760px) { .site-foot .cols { grid-template-columns: 1fr 1fr; } }

:where(a, button, summary, details):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
