/*
Theme Name: My Landing
Author: Daiki
Description: A clean SaaS landing page theme.
Version: 2.0
Text Domain: mylanding
*/

:root {
  --ink:        #0f1115;
  --ink-2:      #2b303b;
  --muted:      #626b7d;
  --line:       #e6e9ef;
  --line-soft:  #f0f2f6;
  --bg:         #ffffff;
  --bg-soft:    #f8f9fc;
  --brand:      #5b5bd6;
  --brand-dark: #4646b8;
  --brand-soft: #eeeefc;
  --radius:     14px;
  --shadow-sm:  0 1px 2px rgba(16,20,35,.06), 0 1px 3px rgba(16,20,35,.04);
  --shadow-md:  0 4px 16px rgba(16,20,35,.07);
  --shadow-lg:  0 24px 60px rgba(16,20,35,.14);
  --container:  1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -.022em; margin: 0; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 104px 0; }
.section--soft { background: var(--bg-soft); border-block: 1px solid var(--line-soft); }

.section-head { max-width: 620px; margin: 0 auto 60px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 17px; }

.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 10px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; text-decoration: none;
  cursor: pointer; transition: background .15s, border-color .15s, transform .15s;
  white-space: nowrap;
}
.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-dark); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: #cfd4e0; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { transform: translateY(-1px); }
.btn--lg { padding: 15px 30px; font-size: 16px; }
.btn--block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .container {
  display: flex; align-items: center; gap: 32px; height: 70px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17px; text-decoration: none; letter-spacing: -.02em;
}
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, var(--brand), #8b5cf6);
  display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 800;
}
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; }
.site-nav a:hover { color: var(--ink); }
.header-cta { display: flex; gap: 10px; }

.nav-toggle { display: none; background: none; border: 0; font-size: 22px; cursor: pointer; padding: 6px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 96px 0 0; text-align: center;
  background:
    radial-gradient(60% 55% at 50% 0%, var(--brand-soft) 0%, rgba(255,255,255,0) 70%);
}
.hero h1 { font-size: clamp(36px, 6.2vw, 62px); margin-bottom: 22px; }
.hero-sub {
  font-size: clamp(17px, 2vw, 20px); color: var(--muted);
  max-width: 640px; margin: 0 auto 34px;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--muted); }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 14px 6px 6px;
  font-size: 14px; color: var(--ink-2); margin-bottom: 26px;
  box-shadow: var(--shadow-sm); text-decoration: none;
}
.badge span {
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 700;
  padding: 3px 9px; border-radius: 999px;
}

/* fake product window */
.hero-shot { margin-top: 68px; padding-bottom: 104px; }
.window {
  max-width: 940px; margin: 0 auto; text-align: left;
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: #fff; box-shadow: var(--shadow-lg);
}
.window-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px; border-bottom: 1px solid var(--line-soft); background: #fbfbfd;
}
.dot { width: 11px; height: 11px; border-radius: 50%; background: #e0e3ea; }
.window-body { display: grid; grid-template-columns: 190px 1fr; min-height: 330px; }
.window-side { border-right: 1px solid var(--line-soft); padding: 18px; background: #fcfcfe; }
.window-main { padding: 24px; }
.skeleton { height: 10px; border-radius: 6px; background: var(--line-soft); margin-bottom: 12px; }
.skeleton--brand { background: var(--brand-soft); }
.stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 24px; }
.stat-box { border: 1px solid var(--line-soft); border-radius: 10px; padding: 14px; }
.stat-box b { display: block; font-size: 22px; letter-spacing: -.02em; }
.stat-box small { color: var(--muted); font-size: 12px; }
.chart { display: flex; align-items: flex-end; gap: 10px; height: 130px; }
.chart i { flex: 1; border-radius: 6px 6px 0 0; background: var(--brand-soft); }
.chart i:nth-child(3), .chart i:nth-child(6) { background: var(--brand); }

/* ---------- logos ---------- */
.logos { padding: 44px 0; border-block: 1px solid var(--line-soft); background: var(--bg-soft); }
.logos p { text-align: center; font-size: 13px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 26px; }
.logo-row { display: flex; justify-content: center; align-items: center; gap: 52px; flex-wrap: wrap; }
.logo-row span { font-size: 19px; font-weight: 700; color: #aeb5c4; letter-spacing: -.02em; }

/* ---------- features ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px;
  transition: box-shadow .18s, transform .18s, border-color .18s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: #d9dee9; }
.card-icon {
  width: 42px; height: 42px; border-radius: 11px; margin-bottom: 18px;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center;
}
.card-icon svg { width: 21px; height: 21px; }
.card h3 { font-size: 17px; margin-bottom: 9px; }
.card p { color: var(--muted); font-size: 15px; }

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); }
.step { position: relative; padding-top: 56px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- pricing ---------- */
.price-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(290px,1fr)); align-items: start; }
.plan {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px; position: relative;
}
.plan--featured {
  border-color: var(--brand); box-shadow: var(--shadow-md);
  border-width: 2px;
}
.plan-tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 700;
  padding: 5px 14px; border-radius: 999px; letter-spacing: .03em; white-space: nowrap;
}
.plan h3 { font-size: 17px; margin-bottom: 6px; }
.plan-desc { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.plan-price { display: flex; align-items: baseline; gap: 5px; margin-bottom: 24px; }
.plan-price b { font-size: 42px; letter-spacing: -.03em; font-weight: 800; }
.plan-price small { color: var(--muted); font-size: 15px; }
.plan ul { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.plan li { display: flex; gap: 10px; font-size: 15px; color: var(--ink-2); align-items: flex-start; }
.plan li svg { width: 18px; height: 18px; flex: none; color: var(--brand); margin-top: 3px; }

/* ---------- faq ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--line); padding: 22px 0;
}
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 16px;
  list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--muted); font-weight: 400; flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); font-size: 15px; margin-top: 12px; padding-right: 40px; }

/* ---------- blog ---------- */
.post-list { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); }
.post-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; background: #fff; text-decoration: none; display: block;
  transition: box-shadow .18s, transform .18s;
}
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.post-card time { font-size: 13px; color: var(--muted); }
.post-card h3 { font-size: 17px; margin: 10px 0 8px; }
.post-card p { color: var(--muted); font-size: 15px; }
.empty-note { text-align: center; color: var(--muted); }

/* ---------- cta ---------- */
.cta {
  background: linear-gradient(135deg, #1a1b3a 0%, var(--brand) 100%);
  color: #fff; text-align: center; padding: 96px 0;
}
.cta h2 { font-size: clamp(30px,4.4vw,44px); margin-bottom: 16px; }
.cta p { color: rgba(255,255,255,.78); font-size: 18px; max-width: 520px; margin: 0 auto 32px; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 64px 0 32px; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 2fr 1fr 1fr 1fr; margin-bottom: 48px; }
.footer-about p { color: var(--muted); font-size: 15px; margin-top: 14px; max-width: 300px; }
.footer-col h4 { font-size: 14px; margin: 0 0 16px; letter-spacing: -.01em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: 15px; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 26px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--muted); font-size: 14px;
}

/* ---------- single / archive ---------- */
.entry { max-width: 720px; margin: 0 auto; padding: 72px 24px 96px; }
.entry h1 { font-size: clamp(30px,4.5vw,42px); margin-bottom: 14px; }
.entry .meta { color: var(--muted); font-size: 14px; margin-bottom: 36px; }
.entry p { margin-bottom: 20px; }
.entry a { color: var(--brand); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .window-body { grid-template-columns: 1fr; }
  .window-side { display: none; }
}
@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .hero { padding-top: 64px; }
  .hero-shot { margin-top: 48px; padding-bottom: 72px; }
  .site-nav, .header-cta .btn--ghost { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .site-nav.is-open {
    display: block; position: absolute; top: 70px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 18px 24px;
  }
  .site-nav.is-open ul { flex-direction: column; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
