/* /css/style.css */
:root{
  --bg1:#f6f9ff;
  --bg2:#f7fbf8;

  --text:#0f172a;
  --muted:#475569;

  --card:#ffffff;
  --border:rgba(15,23,42,.12);

  --accent:#2e7d32;
  --accent2:#22c55e;

  --shadow: 0 20px 60px rgba(15,23,42,.10);
  --shadow2: 0 10px 25px rgba(15,23,42,.08);

  --radius:18px;
  --radius2:14px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  color:var(--text);
  font: 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:
    radial-gradient(1200px 650px at 50% 42%, rgba(34,197,94,.16), transparent 62%),
    radial-gradient(1200px 650px at 70% 30%, rgba(59,130,246,.12), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
  padding-bottom: 60px; /* prevents overlap with sticky disclaimer */
}

a{ color:inherit; }

/* Layout wrappers */
.page{
  min-height:100%;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding:48px 18px;
}
.shell{
  width:100%;
  max-width:780px;
}

/* -------------------------------------------------
   PAGE HEADER (keep as-is)
   ------------------------------------------------- */
.brand{
  display:flex;
  justify-content:center; /* centers the header unit */
  align-items:center;     /* vertically aligns logo with text block */
  gap:40px;               /* requested spacing */
  margin-bottom:18px;
}
.brand > div{
  text-align:left;        /* text stays left aligned */
}
.logo{
  width:44px;
  height:44px;
  border-radius:14px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.95), rgba(255,255,255,.35)),
    linear-gradient(135deg, var(--accent2), var(--accent));
  box-shadow: var(--shadow2);
  position:relative;
  flex:0 0 auto;
}
.logo:after{
  content:"";
  position:absolute;
  inset:10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.55);
}

/* Page title + subhead (header-only) */
.brand h1{
  font-size: clamp(28px, 4vw, 40px);
  line-height:1.15;
  margin:0;
  letter-spacing:-0.02em;
}
.subhead{
  margin:8px 0 0;
  color:var(--muted);
  max-width:60ch;
}

/* -------------------------------------------------
   CONTENT TYPOGRAPHY (for future pages)
   ------------------------------------------------- */

/* Default content H1/H2/H3 remain tame; section headers get their own class */
h1, h2, h3{
  margin: 0;
  letter-spacing: -0.01em;
}
p{
  margin: 0 0 12px;
}

/* Section headings like "Purpose of the Prayer Registry" */
.section-title{
  margin: 22px 0 14px;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Optional: smaller section titles if needed later */
.section-title.sm{
  font-size: 22px;
}

/* -------------------------------------------------
   GRID + CARDS
   ------------------------------------------------- */
.grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:18px;
  margin-top:22px;
}
@media (max-width: 860px){
  .grid{ grid-template-columns: 1fr; }
}

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card-body{
  padding:22px;
}

/* Card titles (keeps your "Add a Name" look consistent) */
.card-title{
  font-size:18px;
  margin:0 0 6px;
  letter-spacing: -0.01em;
}
.card-note{
  margin:0 0 18px;
  color:var(--muted);
  font-size:14px;
}

/* Side card header text: use kicker style */
.kicker{
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--muted);
  margin:0 0 10px;
}

.side{
  padding:22px;
  background:
    radial-gradient(460px 240px at 50% 35%, rgba(34,197,94,.14), transparent 62%),
    radial-gradient(460px 240px at 70% 30%, rgba(59,130,246,.12), transparent 60%),
    #ffffff;
}

.list{
  margin:0;
  padding:0 0 0 18px;
  color:var(--muted);
}
.list li{ margin:8px 0; }

/* Form */
label{
  display:block;
  font-weight:600;
  margin:0 0 8px;
}
.field{
  width:100%;
  height:48px;
  padding:0 14px;
  border-radius:12px;
  border:1px solid rgba(15,23,42,.18);
  background:rgba(255,255,255,.8);
  outline:none;
  transition: box-shadow .15s ease, border-color .15s ease, transform .05s ease;
}
.field::placeholder{ color:rgba(71,85,105,.7); }
.field:focus{
  border-color: rgba(34,197,94,.75);
  box-shadow: 0 0 0 4px rgba(34,197,94,.18);
}

.actions{
  margin-top:14px;
  display:flex;
  gap:12px;
  align-items:center;
}

/* -------------------------------------------------
   BUTTON SYSTEM (variants)
   ------------------------------------------------- */

/* Base: matches your current green submit */
.btn{
  width:100%;
  height:48px;
  border:0;
  border-radius:12px;
  cursor:pointer;
  font-weight:700;
  letter-spacing:.01em;
  color:#fff;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  box-shadow: 0 10px 18px rgba(34,197,94,.18);
  transition: transform .08s ease, filter .15s ease, box-shadow .15s ease;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
}
.btn:hover{
  filter: brightness(1.02);
  box-shadow: 0 14px 26px rgba(34,197,94,.22);
}
.btn:active{ transform: translateY(1px); }

/* Light */
.btn-soft{
  background: rgba(255,255,255,.78);
  color: var(--text);
  border: 1px solid rgba(15,23,42,.14);
  box-shadow: none;
}
.btn-soft:hover{
  filter:none;
  box-shadow: 0 10px 22px rgba(15,23,42,.10);
}

/* Medium (subtle filled) */
.btn-mid{
  background: rgba(15,23,42,.08);
  color: var(--text);
  border: 1px solid rgba(15,23,42,.14);
  box-shadow: none;
}
.btn-mid:hover{
  background: rgba(15,23,42,.10);
  box-shadow: 0 10px 22px rgba(15,23,42,.10);
}

/* Dark (strong neutral) */
.btn-dark{
  background: rgba(15,23,42,.92);
  color: #fff;
  border: 1px solid rgba(15,23,42,.92);
  box-shadow: 0 10px 18px rgba(15,23,42,.16);
}
.btn-dark:hover{
  filter:none;
  box-shadow: 0 14px 26px rgba(15,23,42,.22);
}

/* Outline */
.btn-secondary{
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(15,23,42,.18);
  box-shadow: none;
}
.btn-secondary:hover{
  filter:none;
  box-shadow: 0 10px 22px rgba(15,23,42,.10);
}

/* Helper */
.helper{
  margin-top:12px;
  padding:12px 14px;
  border-radius:14px;
  background: rgba(59,130,246,.08);
  border:1px solid rgba(59,130,246,.18);
  color: rgba(30,58,138,.9);
  font-size:14px;
}

/* Footer */
.footer{
  margin-top:18px;
  color:rgba(71,85,105,.9);
  font-size:12px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

/* Debug */
.debug{
  margin-bottom:14px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(15,23,42,.14);
  background: rgba(255,255,255,.75);
  font-size:13px;
  color:rgba(15,23,42,.85);
}

/* Sticky LDS Disclaimer */
.lds-disclaimer{
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(250, 250, 250, 0.97);
  border-top: 1px solid #ddd;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  color: #555;
  z-index: 9999;
}
.lds-disclaimer a{
  color: #2a5db0;
  text-decoration: underline;
}

/* Purpose section (Why / What) */
.purpose-section{ margin-top: 18px; }
.purpose-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
  max-width:900px;
  margin:0 auto;
}
.purpose-card{
  background:#ffffff;
  border-radius:16px;
  padding:16px 18px;
  border:1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}
.purpose-title{
  margin:0 0 8px 0;
  font-size:14px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:0.04em;
  opacity:0.85;
}
.purpose-card p{
  margin:8px 0;
  font-size:14px;
  line-height:1.5;
}
@media (max-width: 700px){
  .purpose-grid{ grid-template-columns: 1fr; }
}

/* Examples link */
.examples-link{
  text-align:center;
  margin:28px 0 10px;
}
.examples-link a{
  display:inline-block;
  font-size:18px;
  font-weight:600;
  letter-spacing:0.02em;
  color:#1e40af;
  text-decoration:none;
  padding:10px 22px;
  border-radius:999px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(30, 64, 175, 0.15);
  backdrop-filter: blur(6px);
}
.examples-link a:hover{ text-decoration: underline; }

/* --- Received page helpers --- */
.received-card{ max-width: 860px; margin: 0 auto; }
.received-header-lines{
  margin-top: 10px;
  max-width: 70ch;
  color: rgba(15,23,42,.78);
}
.received-header-lines .line1{ font-weight: 700; margin: 0 0 4px; }
.received-header-lines .line2{ margin: 0; }

/* action row for received page */
.received-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:16px;
}
.received-actions .btn{
  flex: 1 1 240px;
  width:auto;
}
@media (max-width: 520px){
  .received-actions .btn{ flex: 1 1 100%; }
}
