/*
 * Trang ban Gridaboo — tu chua, khong dung app.css cua nen tang hay bundle cua app.
 * Bang mau "sampler co dien gap SaaS hien dai", giong app (gridaboo/frontend).
 */
:root {
  --linen-50: #fbf8f2;
  --linen-100: #f5efe4;
  --linen-200: #eae0cf;
  --linen-300: #d9cbb3;
  --ink-900: #23211f;
  --ink-700: #4a4540;
  --ink-500: #7a7268;
  --madder-50: #f8ece8;
  --madder-500: #a63a2b;
  --madder-600: #8e2f22;
  --sage-50: #eef1ea;
  --sage-500: #6f7f5e;
  --sage-700: #4f5c42;
  --mustard-50: #faf3df;
  --mustard-200: #ecd79c;
  --mustard-500: #c69a2e;
  --mustard-700: #8f6c17;
  --indigo-50: #e9ecf3;
  --indigo-500: #34416a;
  --serif: "Fraunces", ui-serif, Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--linen-100);
  color: var(--ink-900);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--madder-500); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; }

.g-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.g-narrow { max-width: 760px; }
.g-center { text-align: center; }
.g-center .g-lede, .g-center .g-sub { margin-left: auto; margin-right: auto; }
.g-stack > * + * { margin-top: 18px; }

.g-aida {
  background-color: var(--linen-50);
  background-image: radial-gradient(circle at 1px 1px, rgb(35 33 31 / 0.08) 0.8px, transparent 1px);
  background-size: 8px 8px;
}
.g-stitch {
  height: 2px; border: 0; margin: 0;
  background-image: repeating-linear-gradient(90deg, var(--madder-500) 0 8px, transparent 8px 13px);
  opacity: 0.45;
}

/* Nav */
.g-nav { position: sticky; top: 0; z-index: 20; background: rgb(251 248 242 / 0.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linen-200); }
.g-nav-in { display: flex; align-items: center; gap: 18px; height: 64px; }
.g-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink-900); }
.g-brand b { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.g-nav nav { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 0.9rem; }
.g-nav nav a:not(.g-btn) { color: var(--ink-700); text-decoration: none; }
.g-nav .g-btn { padding: 9px 16px; font-size: 0.9rem; }
@media (max-width: 640px) { .g-nav nav a:not(.g-btn) { display: none; } }

/* Buttons */
.g-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 28px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--madder-500); color: var(--linen-50) !important; text-decoration: none;
  font: 600 1.05rem/1.2 var(--sans);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.15), 0 10px 22px -10px rgb(166 58 43 / 0.75);
  transition: background .15s, transform .15s;
}
.g-btn:hover { background: var(--madder-600); transform: translateY(-1px); }
.g-btn-dark { background: var(--ink-900); box-shadow: 0 10px 22px -12px rgb(35 33 31 / 0.6); }
.g-btn-dark:hover { background: #2f2c29; }
.g-btn.is-waiting { background: #c9a29a; box-shadow: none; cursor: not-allowed; transform: none; }
.g-waiting-note { margin-top: 8px; font-size: 0.8rem; color: var(--ink-500); }
.g-no { display: inline-block; margin-top: 16px; color: var(--ink-500); font-size: 0.92rem; }
.g-under { margin-top: 10px; font-size: 0.85rem; color: var(--ink-500); }

/* Hero */
.g-hero { padding: 64px 0 56px; position: relative; overflow: hidden; }
.g-hero-grid { display: grid; gap: 44px; align-items: center; grid-template-columns: 1.1fr 1fr; }
@media (max-width: 900px) { .g-hero-grid { grid-template-columns: 1fr; } }
.g-kicker { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--madder-500); }
.g-lede { font-size: 1.15rem; color: var(--ink-700); max-width: 34em; }
.g-sub { color: var(--ink-700); max-width: 40em; }
.g-em { font-style: italic; color: var(--madder-500); }
.g-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.g-chip { font-size: 0.8rem; padding: 5px 11px; border-radius: 999px; background: var(--linen-50); border: 1px solid var(--linen-200); color: var(--ink-700); }
.g-price-line { display: flex; align-items: baseline; gap: 10px; margin-top: 26px; }
.g-price-line b { font-family: var(--serif); font-size: 2.2rem; }
.g-price-line span { color: var(--ink-500); font-size: 0.95rem; }
.g-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 14px; }

.g-window { border-radius: 16px; overflow: hidden; background: var(--linen-50); border: 1px solid var(--linen-300); box-shadow: 0 30px 60px -30px rgb(35 33 31 / 0.5); }
.g-window-bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--linen-200); }
.g-window-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--linen-300); }
.g-hoops { position: relative; }
.g-hoop {
  position: absolute; border-radius: 50%; padding: 9px;
  background: radial-gradient(circle at 35% 30%, #d8b98c, #a77a48 60%, #7b5530);
  box-shadow: 0 14px 30px -12px rgb(35 33 31 / 0.55);
}
.g-hoop > div { border-radius: 50%; overflow: hidden; background: #f3ece0; width: 100%; height: 100%; display: grid; place-items: center; }

/* Sections */
.g-sec { padding: 80px 0; }
.g-band { background: var(--linen-50); border-top: 1px solid var(--linen-200); border-bottom: 1px solid var(--linen-200); }
.g-dark { background: var(--ink-900); color: var(--linen-100); }
.g-dark h2, .g-dark h3 { color: var(--linen-50); }
.g-dark .g-sub { color: #cfc6b8; }
.g-head { margin-bottom: 36px; }
.g-head .g-sub { margin-top: 12px; }

.g-grid { display: grid; gap: 18px; }
.g-grid-4 { grid-template-columns: repeat(4, 1fr); }
.g-grid-3 { grid-template-columns: repeat(3, 1fr); }
.g-grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .g-grid-4 { grid-template-columns: repeat(2, 1fr); } .g-grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .g-grid-4, .g-grid-2 { grid-template-columns: 1fr; } }

.g-card { background: var(--linen-50); border: 1px solid var(--linen-200); border-radius: 18px; padding: 22px; box-shadow: 0 1px 2px rgb(35 33 31 / 0.04), 0 10px 26px -16px rgb(35 33 31 / 0.18); }
.g-card p { color: var(--ink-700); font-size: 0.93rem; margin-top: 6px; }
.g-type { padding: 0; overflow: hidden; }
.g-type .g-thumb { height: 120px; display: grid; place-items: center; border-bottom: 1px solid var(--linen-200); }
.g-type .g-body { padding: 16px 18px 18px; }
.g-type h3 { font-size: 1.05rem; }

.g-steps { counter-reset: s; }
.g-steps .g-card h3::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 10px; border-radius: 50%; background: var(--madder-50); color: var(--madder-500); font: 600 0.9rem var(--sans); }

.g-list { list-style: none; padding: 0; margin: 0; }
.g-list li { position: relative; padding-left: 28px; margin-top: 10px; }
.g-list li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 14px; height: 14px; background:
  linear-gradient(45deg, transparent 42%, var(--sage-500) 42% 58%, transparent 58%),
  linear-gradient(-45deg, transparent 42%, var(--sage-500) 42% 58%, transparent 58%); }
.g-dark .g-list li::before { background:
  linear-gradient(45deg, transparent 42%, var(--mustard-500) 42% 58%, transparent 58%),
  linear-gradient(-45deg, transparent 42%, var(--mustard-500) 42% 58%, transparent 58%); }
.g-cols-2 { columns: 2; column-gap: 32px; }
.g-cols-2 li { break-inside: avoid; }
@media (max-width: 640px) { .g-cols-2 { columns: 1; } }

.g-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; background: var(--linen-50); border-radius: 14px; overflow: hidden; border: 1px solid var(--linen-200); }
.g-table th, .g-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--linen-200); vertical-align: top; }
.g-table th { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-500); background: var(--linen-100); }
.g-table tr:last-child td { border-bottom: 0; }
.g-table .num { text-align: right; white-space: nowrap; }
.g-scroll { overflow-x: auto; }

.g-compare .g-card.is-us { background: var(--ink-900); color: var(--linen-100); border-color: var(--ink-900); }
.g-compare .g-card.is-us h3 { color: var(--mustard-200); }
.g-compare .g-card.is-us p, .g-compare .g-card.is-us li { color: #e2d9cb; }
.g-compare .g-card .g-label { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-500); }

.g-pricebox { max-width: 560px; margin: 0 auto; text-align: center; background: var(--linen-50); border: 1px solid var(--linen-300); border-radius: 22px; padding: 36px 28px; box-shadow: 0 30px 60px -36px rgb(35 33 31 / 0.5); position: relative; }
.g-pricebox .g-big { font-family: var(--serif); font-size: 3.4rem; line-height: 1; margin: 14px 0 4px; }
.g-pricebox .g-list { text-align: left; margin: 22px auto 26px; max-width: 420px; }
.g-tag { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--mustard-50); color: var(--mustard-700); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; }

.g-faq details { border-bottom: 1px solid var(--linen-200); padding: 16px 0; }
.g-faq summary { cursor: pointer; font-weight: 600; list-style: none; }
.g-faq summary::-webkit-details-marker { display: none; }
.g-faq summary::after { content: "+"; float: right; color: var(--madder-500); font-weight: 400; }
.g-faq details[open] summary::after { content: "–"; }
.g-faq details p { margin-top: 10px; color: var(--ink-700); }

.g-note { border-left: 3px solid var(--mustard-500); padding: 14px 18px; background: var(--mustard-50); border-radius: 0 12px 12px 0; color: var(--ink-700); font-size: 0.95rem; }

/* OTO */
.g-progress { display: flex; gap: 6px; justify-content: center; margin-bottom: 18px; }
.g-progress span { width: 34px; height: 5px; border-radius: 3px; background: var(--linen-300); }
.g-progress span.on { background: var(--madder-500); }
.g-banner-top { background: var(--ink-900); color: var(--linen-100); text-align: center; font-size: 0.9rem; padding: 10px 16px; }

/* Shots: anh that cua app dat vao public/img/gridaboo/; thieu tep thi ve hinh SVG thay */
.g-shot img { width: 100%; height: auto; }

/* JV */
.g-email { background: var(--linen-50); border: 1px solid var(--linen-200); border-radius: 16px; padding: 22px; }
.g-email pre { white-space: pre-wrap; font: 0.92rem/1.6 var(--sans); color: var(--ink-700); margin: 14px 0 0; background: #fff; border: 1px solid var(--linen-200); border-radius: 10px; padding: 16px; }
.g-email .g-subjects { margin-top: 10px; font-size: 0.9rem; }
.g-email .g-subjects li { margin-top: 4px; }
.g-copy { margin-top: 10px; font: 600 0.85rem var(--sans); border: 1px solid var(--linen-300); background: #fff; border-radius: 8px; padding: 6px 12px; cursor: pointer; color: var(--ink-900); }
.g-banner { border-radius: 12px; overflow: hidden; display: flex; align-items: center; gap: 16px; padding: 18px 22px; background: var(--ink-900); color: var(--linen-50); }
.g-banner b { font-family: var(--serif); font-size: 1.5rem; }
.g-banner span { color: var(--mustard-200); font-size: 0.9rem; display: block; }

/* Footer */
.g-foot { border-top: 1px solid var(--linen-200); padding: 34px 0 44px; text-align: center; font-size: 0.82rem; color: var(--ink-500); }
.g-foot a { color: var(--ink-500); }
.g-foot p + p { margin-top: 8px; }
.wplus_spdisclaimer { max-width: 70ch; margin: 14px auto 0; font-size: 11px; line-height: 1.6; }

/* Anh chup app that + bo suu tap mau (components/gridaboo/gallery.blade.php) */
.g-tour figure { margin: 0; padding: 0; overflow: hidden; }
.g-tour img { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--linen-200); }
.g-tour figcaption { padding: 16px 20px 20px; }
.g-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.g-gallery figure { margin: 0; }
.g-gallery .g-aida { aspect-ratio: 1; display: grid; place-items: center; padding: 14px; border-radius: 12px; border: 1px solid var(--linen-300); }
.g-gallery img { max-width: 100%; max-height: 100%; object-fit: contain; }
.g-gallery figcaption { margin-top: 8px; font-size: 13px; text-align: center; color: var(--ink-700); }
@media (max-width: 900px) { .g-gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .g-gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* Lua chon thu hai trong hop gia FE: Studio + ca 5 nang cap (san pham thu hai tren Main page W+) */
.g-alt { margin-top: 28px; padding-top: 24px; border-top: 1px dashed var(--linen-300); }
.g-alt h3 { margin: 8px 0 6px; }
.g-alt .g-btn { margin-top: 14px; }
