/* ==========================================================================
   MyLog — mylogapp.app
   Shared stylesheet for all pages.
   Brand: navy #263248 · gold #e5b84b · coral #e8755a · cream #faf6ee
   Fonts: Lora (serif headlines) + Poppins (body)
   ========================================================================== */

/* ---- Brand tokens ---- */
:root {
  --navy:      #263248;
  --navy-2:    #1c2637;   /* darker navy for depth */
  --gold:      #e5b84b;
  --gold-dark: #cfa235;
  --coral:     #e8755a;
  --cream:     #faf6ee;
  --cream-2:   #f2ead9;
  --ink:       #263248;   /* body text on light */
  --ink-soft:  #55607a;   /* muted text on light */
  --line:      #e5ddcd;   /* hairline on cream */
  --white:     #ffffff;

  --maxw: 1120px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -18px rgba(28, 38, 55, 0.35);
  --shadow-soft: 0 10px 30px -14px rgba(28, 38, 55, 0.28);
}

/* ---- Reset-ish ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--coral); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: "Lora", Georgia, "Times New Roman", serif;
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

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

/* ---- Eyebrow label ---- */
.eyebrow {
  font-family: "Poppins", sans-serif;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--coral);
  margin: 0 0 .75rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: .98rem;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: var(--navy); box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: var(--gold-dark); }
.btn-ghost { background: transparent; color: var(--navy); border-color: rgba(38,50,72,.25); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-ghost-light:hover { border-color: var(--white); background: rgba(255,255,255,.08); }

/* ---- Header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,246,238,.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: .6rem; font-family: "Lora", serif; font-weight: 600; font-size: 1.25rem; color: var(--navy); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { color: var(--navy); font-family: "Poppins", sans-serif; font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--coral); text-decoration: none; }
.nav-cta { padding: .55rem 1.1rem; font-size: .9rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* ---- Hero ---- */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(229,184,75,.16), transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, #f6efe1 100%);
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(2rem, 5vw, 4rem);
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.25fr .75fr; gap: 3rem; align-items: center;
}
.hero p.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 34ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero-phone { position: relative; display: flex; justify-content: center; }
.hero-phone img {
  width: min(250px, 68%);
  border-radius: 32px;
  box-shadow: var(--shadow);
  border: 6px solid #10161f;
}

/* ---- Section rhythm ---- */
.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }
.section-dark { background: var(--navy); color: #dfe4ee; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .eyebrow { color: var(--gold); }

/* ---- Feature cards ---- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column;
}
.card .shot {
  background: linear-gradient(160deg, #eef2f8, #e4ebf5);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.2rem 0;
  margin: -.2rem 0 1.1rem;
  display: flex; justify-content: center; overflow: hidden;
}
.card .shot img { width: 190px; border-radius: 18px 18px 0 0; box-shadow: 0 -2px 20px rgba(0,0,0,.12); }
.card h3 { margin-bottom: .35rem; }
.card p { color: var(--ink-soft); font-size: .98rem; margin: 0; }

/* ---- Split rows (Why MyLog / feature detail) ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split.reverse .split-media { order: -1; }
.split-media { display: flex; justify-content: center; }
.split-media img { width: min(300px, 80%); border-radius: 30px; box-shadow: var(--shadow); border: 6px solid #10161f; }
.split-media.plain img { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft); }

/* ---- Three-up value props ---- */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.trio .item h3 { color: inherit; }
.trio .item p { color: inherit; opacity: .85; font-size: .98rem; }
.trio .dot { width: 42px; height: 42px; border-radius: 12px; background: rgba(229,184,75,.18); display: flex; align-items: center; justify-content: center; margin-bottom: .9rem; font-size: 1.3rem; }

/* ---- Long Plan band ---- */
.band {
  background: linear-gradient(135deg, var(--coral), #d85f45);
  color: #fff; border-radius: var(--radius); padding: clamp(2rem,4vw,3rem);
  text-align: center;
}
.band h2 { color: #fff; }
.band p { color: rgba(255,255,255,.92); max-width: 60ch; margin-left: auto; margin-right: auto; }

/* ---- Callout / CTA ---- */
.cta-final { text-align: center; }
.cta-final .hero-ctas { justify-content: center; }

/* ---- Footer ---- */
.site-footer { background: var(--navy-2); color: #aeb6c6; padding: 3rem 0 2rem; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; align-items: flex-start; }
.footer-brand { display: flex; align-items: center; gap: .6rem; color: #fff; font-family: "Lora", serif; font-size: 1.2rem; }
.footer-brand img { width: 32px; height: 32px; border-radius: 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-links a { color: #cdd4e2; font-size: .92rem; }
.footer-links a:hover { color: #fff; }
.socials { display: flex; gap: .8rem; margin-top: .3rem; }
.socials a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: #fff; }
.socials a:hover { background: var(--gold); color: var(--navy); text-decoration: none; }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; font-size: .85rem; }
.footer-bottom a { color: #cdd4e2; }

/* ---- Long-form legal / content pages ---- */
.doc { padding: clamp(2.5rem, 5vw, 4rem) 0 4rem; }
.doc h1 { margin-bottom: .3rem; }
.doc .updated { color: var(--ink-soft); font-size: .9rem; margin-bottom: 2rem; }
.doc h2 { font-size: 1.4rem; margin-top: 2.2rem; }
.doc h3 { font-size: 1.12rem; margin-top: 1.6rem; }
.doc ul { padding-left: 1.2rem; }
.doc li { margin-bottom: .5rem; }
.doc blockquote {
  border-left: 4px solid var(--gold); background: #fffdf7;
  margin: 1.4rem 0; padding: 1rem 1.2rem; border-radius: 0 8px 8px 0; color: var(--ink-soft);
}
.doc .summary-box { background: #fffdf7; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.6rem; margin: 1.6rem 0; }

/* ---- FAQ ---- */
.faq-group { margin-bottom: 2.2rem; }
.faq-group > .eyebrow { color: var(--coral); }
details.qa { border-bottom: 1px solid var(--line); padding: .3rem 0; }
details.qa summary {
  cursor: pointer; list-style: none; padding: 1rem 0; font-weight: 600; color: var(--navy);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: 1.03rem;
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: "+"; font-size: 1.4rem; color: var(--coral); font-weight: 400; }
details.qa[open] summary::after { content: "\2013"; }
details.qa .answer { padding: 0 0 1.1rem; color: var(--ink-soft); }

/* ---- "In testing" badge ---- */
.badge {
  display: inline-block; font-family: "Poppins", sans-serif; font-weight: 600;
  font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--coral); background: rgba(232,117,90,.12);
  padding: .25rem .6rem; border-radius: 999px; margin-bottom: .7rem;
}
.card .badge { align-self: flex-start; }

/* ---- Pricing plans ---- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: stretch; max-width: 900px; margin: 0 auto; }
.plan {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow-soft); display: flex; flex-direction: column;
}
.plan.featured { border: 2px solid var(--gold); position: relative; }
.plan .plan-tag {
  position: absolute; top: -13px; left: 1.8rem; background: var(--gold); color: var(--navy);
  font-family: "Poppins", sans-serif; font-weight: 600; font-size: .72rem; letter-spacing: .08em;
  text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px;
}
.plan h3 { font-size: 1.35rem; margin-bottom: .2rem; }
.plan .price { font-family: "Lora", serif; font-size: 2.4rem; color: var(--navy); font-weight: 700; line-height: 1.1; margin: .4rem 0 .1rem; }
.plan .price small { font-family: "Poppins", sans-serif; font-size: .95rem; font-weight: 500; color: var(--ink-soft); display: block; }
.plan ul { list-style: none; padding: 0; margin: 1.2rem 0; flex: 1; }
.plan ul li { padding: .45rem 0 .45rem 1.8rem; position: relative; color: var(--ink); font-size: .97rem; border-bottom: 1px solid #f2ecdf; }
.plan ul li::before { content: "\2713"; position: absolute; left: 0; color: var(--coral); font-weight: 700; }
.plan .btn { width: 100%; justify-content: center; }
.plan .plan-note { font-size: .84rem; color: var(--ink-soft); margin-top: .8rem; text-align: center; }

/* ---- Contact form ---- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow-soft); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .4rem; color: var(--navy); }
.field input, .field textarea {
  width: 100%; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 1rem; background: #fdfbf6; color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.field textarea { min-height: 140px; resize: vertical; }
.form-consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); margin-bottom: 1.2rem; }
.form-note { font-size: .86rem; color: var(--ink-soft); margin-top: 1rem; }
.form-status { margin-top: 1rem; font-weight: 600; }

/* ---- Utility ---- */
.center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }

/* ==========================================================================
   RESPONSIVE
   > 900px      : full desktop (2-column hero, 3-up cards)
   601–900px    : tablet — hero stacks & centers, cards go 2-up, hamburger nav
   <= 600px     : phone  — single column everything, tighter spacing
   ========================================================================== */

/* ---- Tablet & below (<= 900px) ---- */
@media (max-width: 900px) {
  /* Hero stacks, phone sits above the copy, both centered */
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-phone { order: -1; margin-bottom: 1.5rem; }
  .hero-phone img { width: min(230px, 60%); }

  /* Split rows (Why MyLog) stack, media on top */
  .split, .split.reverse { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .split.reverse .split-media { order: 0; }
  .split-media { order: -1; }
  .split .trio { text-align: left; max-width: 420px; margin-left: auto; margin-right: auto; }

  /* Feature / link cards go 2-up on tablet */
  .cards { grid-template-columns: repeat(2, 1fr); }
  .trio { grid-template-columns: 1fr; gap: 1.5rem; max-width: 440px; margin: 0 auto; }

  /* Hamburger nav */
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 1rem 24px 1.4rem; gap: 1rem;
  }
  .nav-links.open .nav-cta { align-self: stretch; text-align: center; justify-content: center; }
  .nav-toggle { display: block; }
}

/* ---- Phone (<= 600px) ---- */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap, .narrow { padding: 0 20px; }

  /* Single column cards */
  .cards { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }

  /* Tighter vertical rhythm so pages aren't endless scroll */
  .section { padding: 3rem 0; }
  .section-head { margin-bottom: 2rem; }
  .hero { padding: 2.5rem 0 2rem; }

  /* CTAs stack full-width and are easy to tap */
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }

  /* Footer stacks cleanly */
  .footer-top { flex-direction: column; gap: 1.6rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  /* Feature card screenshots scale with the card */
  .card .shot img { width: 62%; max-width: 190px; }

  /* Pricing plans stack */
  .plans { grid-template-columns: 1fr; max-width: 420px; }
}
