/* ============================================================
   Astra Communication — astracom.net
   Design system derived from the Fun Phone Call app:
   warm near-black #16140F + amber #EF9F27 (fun apps)
   plus signal cyan #4FC8D8 (AI translation apps)
   ============================================================ */

:root {
  --ink:      #16140F;   /* page background (matches the app) */
  --panel:    #201C13;   /* raised surfaces */
  --panel-2:  #2A2418;   /* hover / deeper surfaces */
  --line:     rgba(242, 236, 221, 0.12);
  --cream:    #F2ECDD;   /* primary text */
  --muted:    #A79F8C;   /* secondary text */
  --amber:    #EF9F27;   /* fun apps accent (matches the app) */
  --amber-deep: #C77B14;
  --signal:   #4FC8D8;   /* AI translation accent */
  --signal-deep: #2E97A6;

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --radius: 16px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--amber);
  color: var(--ink); padding: 8px 16px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Type ---------- */

h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; font-weight: 600; }
p  { margin: 0 0 1em; }
.lede { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); max-width: 42em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 1.2em;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor;
  animation: pulse 2s ease-in-out infinite;
}
.eyebrow--signal { color: var(--signal); }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: 0.35 } }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(22, 20, 15, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
  color: var(--cream);
}
.brand:hover { text-decoration: none; }
.brand-dim { color: var(--amber); }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  color: var(--muted); font-size: 0.95rem; font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
}
.site-nav a:hover { color: var(--cream); text-decoration: none; background: var(--panel); }
.site-nav a[aria-current="page"] { color: var(--amber); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 8px; padding: 10px; cursor: pointer;
}
.nav-toggle-bar {
  display: block; width: 20px; height: 2px; background: var(--cream);
  margin: 4px 0; transition: transform 0.2s, opacity 0.2s;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
  }
  .site-nav.open { display: flex; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child  { transform: translateY(-6px) rotate(-45deg); }
}

/* ---------- Hero ---------- */

.hero { padding: 80px 0 40px; text-align: center; }
.hero .lede { margin: 0 auto 2em; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 13px 26px; border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: #ffb03a; }
.btn-signal { background: var(--signal); color: var(--ink); }
.btn-signal:hover { background: #6ad9e8; }
.btn-ghost { border-color: var(--line); color: var(--cream); }
.btn-ghost:hover { background: var(--panel); }

/* Signature: pitch-shifting waveform */
.wave-box { max-width: 760px; margin: 0 auto 3rem; }
.wave-box svg { width: 100%; height: auto; }
.wave-low, .wave-high { fill: none; stroke-width: 3; stroke-linecap: round; }
.wave-low  { stroke: var(--amber); }
.wave-high { stroke: var(--signal); opacity: 0.85; }
.wave-anim { animation: waveshift 5s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) {
  .wave-anim { animation: none; }
  .eyebrow::before { animation: none; }
}
@keyframes waveshift {
  from { transform: scaleY(1); }
  to   { transform: scaleY(0.45); }
}

.stat-row {
  display: flex; justify-content: center; gap: clamp(24px, 6vw, 72px);
  flex-wrap: wrap; padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat { text-align: center; }
.stat b {
  display: block; font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--cream);
}
.stat span { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* ---------- Sections & cards ---------- */

.section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }

.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .card-grid { grid-template-columns: 1fr; } }

.app-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex; flex-direction: column; gap: 16px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.app-card:hover { background: var(--panel-2); }
.app-card--amber:hover  { border-color: var(--amber-deep); }
.app-card--signal:hover { border-color: var(--signal-deep); }
.app-card-head { display: flex; align-items: center; gap: 16px; }
.app-card-head img { width: 64px; height: 64px; border-radius: 14px; }
.app-card-head h3 { font-size: 1.35rem; margin: 0; }
.app-card-tag { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.app-card p { color: var(--muted); flex: 1; }
.app-card-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.store-badge img { height: 48px; width: auto; }

/* ---------- App page hero ---------- */

.app-hero { padding: 72px 0 56px; }
.app-hero-grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr;
  gap: 48px; align-items: center;
}
@media (max-width: 860px) { .app-hero-grid { grid-template-columns: 1fr; } }
.app-hero-icon { width: 88px; height: 88px; border-radius: 20px; margin-bottom: 20px; }
.app-hero .rating-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.85rem;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; color: var(--muted); margin-bottom: 20px;
}
.rating-chip b { color: var(--amber); }
.app-hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.phone-shot {
  max-width: 300px; margin: 0 auto;
  border-radius: 32px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

/* ---------- Features ---------- */

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
}
.feature h3 { color: var(--cream); }
.feature p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; font-size: 1.3rem;
 
  background: var(--amber);
  color: #ffffff;
}
.feature-icon--signal { background: rgba(79, 200, 216, 0.14); color: var(--signal); }

.feature-icon--amber { 
  background: var(--amber); 
  color: #ffffff; 
}

/* ---------- Steps (how to use) ---------- */

.steps { counter-reset: step; max-width: 680px; }
.step {
  counter-increment: step;
  display: flex; gap: 20px; padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: none; }
.step::before {
  content: counter(step);
  font-family: var(--font-display); font-weight: 800; font-size: 1.2rem;
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 50%; border: 1px solid var(--amber-deep);
  color: var(--amber);
  display: flex; align-items: center; justify-content: center;
}
.step p { margin: 0; color: var(--muted); align-self: center; }
.step p b { color: var(--cream); }

/* ---------- Quotes ---------- */

.quote-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .quote-row { grid-template-columns: 1fr; } }
.quote {
  background: var(--panel); border-radius: var(--radius);
  border: 1px solid var(--line); padding: 24px;
  font-size: 1.02rem; color: var(--cream);
}
.quote::before { content: "“"; display: block; font-family: var(--font-display); font-size: 2.2rem; color: var(--amber); line-height: 1; }

/* ---------- Notice / costs ---------- */

.notice {
  background: var(--panel);
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 28px; max-width: 720px;
}
.notice--signal { border-left-color: var(--signal); }
.notice p { margin: 0; color: var(--muted); }
.notice p + p { margin-top: 0.8em; }
.notice b { color: var(--cream); }

/* ---------- Contact form ---------- */

.contact-form { max-width: 560px; display: grid; gap: 18px; }
.contact-form label { font-weight: 600; font-size: 0.95rem; display: grid; gap: 8px; }
.contact-form input, .contact-form textarea {
  font: inherit; color: var(--cream);
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px; width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--amber);
}
.form-status { font-family: var(--font-mono); font-size: 0.9rem; }
.form-status.ok { color: #7fd88a; }
.form-status.err { color: #e2685a; }
.hp-field { position: absolute; left: -5000px; }

/* ---------- Legal ---------- */

.legal { max-width: 760px; padding: 56px 0 80px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.legal-body { color: var(--muted); }
.legal-body h2 { font-size: 1.3rem; margin-top: 2em; color: var(--cream); }
.legal-placeholder {
  border: 1px dashed var(--amber-deep); border-radius: var(--radius);
  padding: 28px; color: var(--muted);
}

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 56px 0 32px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px; padding-bottom: 40px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h3 {
  font-family: var(--font-mono); font-size: 0.75rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 4px;
}
.footer-col a { color: var(--cream); font-size: 0.95rem; }
.footer-col a:hover { color: var(--amber); }
.footer-brand p { margin: 12px 0 0; font-weight: 600; }
.footer-dim { color: var(--muted); font-weight: 400; font-size: 0.9rem; }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.88rem; color: var(--muted);
}
.footer-bottom p { margin: 0; }

.field-hint { font-weight: 400; color: var(--muted); font-size: 0.85rem; }

/* White frame on our Android badge, matching the App Store artwork */
.badge-framed {
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 12px;
}

/* Buy credit — same height/shape as the store badges, green block */
.btn-buy {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 28px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  background: #EF9F27;
  color: #16140F;
  font-weight: 900;
  font-size: 1.20rem;
}
.btn-buy:hover { background: #FFB03A; text-decoration: none; transform: translateY(-1px); }
/* Second action row: smaller Terms/Privacy with tighter corners */
.app-hero-actions--legal { margin-top: 14px; }
.btn-small {
  padding: 7px 18px;
  font-size: 0.88rem;
  border-radius: 8px;   /* overrides the pill shape */
}

/* ===== Buy credit page (append to assets/css/style.css) ===== */
.buy-section { margin-top: 40px; }
.user-info {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--amber);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: inline-block;
  padding: 10px 18px;
  margin-bottom: 24px;
}
.buy-grid { display: flex; gap: 20px; flex-wrap: wrap; margin: 20px 0 16px; }
.buy-btn {
  background: none; border: none; padding: 0; cursor: pointer;
  border-radius: 14px; transition: transform 0.15s ease;
}
.buy-btn:hover { transform: translateY(-2px); }
.buy-btn img { max-width: 320px; border-radius: 14px; display: block; }




