/* ==========================================================================
   Dinny Web Design System & Unified Stylesheet
   ========================================================================== */

:root {
  --color-brand-primary: #006948;
  --color-brand-dark: #004d34;
  --color-brand-light: #e8f7f0;
  --color-brand-accent: #10b981;
  --color-bg: #fafaf9;
  --color-card-bg: #ffffff;
  --color-text-title: #0f172a;
  --color-text-body: #334155;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  --color-border-subtle: #f1f5f9;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-subtle: 0 2px 8px -2px rgba(0, 0, 0, 0.05), 0 1px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-card: 0 16px 36px -8px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  --shadow-mockup: 0 28px 60px -16px rgba(0, 77, 52, 0.22), 0 12px 28px -8px rgba(15, 23, 42, 0.1);
  --container-max: 1120px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
  width: 100%;
}

/* ==========================================================================
   Header & Sticky Navigation
   ========================================================================== */

header.site-header {
  padding: 18px 0;
  position: sticky;
  top: 0;
  background: rgba(250, 250, 249, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: var(--shadow-subtle);
}

.brand-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-brand-primary);
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-link {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--color-text-body);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-brand-primary);
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */

main {
  flex: 1;
}

/* Sub-page Card Layout (Contact, Delete Account, etc.) */
main.subpage-main {
  padding: 64px 0 88px;
  display: flex;
  align-items: center;
}

.page-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-card);
}

.page-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-brand-light);
  color: var(--color-brand-primary);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.page-badge.danger {
  background: #fee2e2;
  color: #991b1b;
}

.page-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-text-title);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.page-desc {
  font-size: 15px;
  color: var(--color-text-body);
  line-height: 1.6;
  margin-bottom: 28px;
}

/* Contact Info Box */
.contact-box {
  background: #fdfdfd;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-box:hover {
  border-color: var(--color-brand-primary);
  box-shadow: 0 2px 12px rgba(0, 105, 72, 0.08);
}

.contact-icon {
  font-size: 28px;
  line-height: 1;
}

.contact-info-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.contact-email-link {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-brand-primary);
  text-decoration: none;
}

.contact-email-link:hover {
  text-decoration: underline;
}

/* Info Box / Warning Box */
.info-box {
  background-color: #fefce8;
  border: 1px solid #fef08a;
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 14px;
  color: #854d0e;
  margin-bottom: 28px;
  line-height: 1.5;
}

.info-title {
  font-weight: 700;
  color: #713f12;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Action Button */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 24px;
  background-color: var(--color-brand-primary);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 105, 72, 0.25);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--color-brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 105, 72, 0.35);
}

.fallback-section {
  margin-top: 28px;
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
}

.fallback-text {
  font-size: 13.5px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.fallback-details {
  background-color: #f8fafc;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12.5px;
  color: var(--color-text-body);
  line-height: 1.6;
}

.response-note {
  font-size: 13.5px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Legal Document View */
.legal-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-subtle);
}

.legal-header {
  margin-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 24px;
}

.legal-header h1 {
  font-size: 30px;
  font-weight: 800;
  color: var(--color-text-title);
  margin-bottom: 8px;
}

.legal-date {
  font-size: 13.5px;
  color: var(--color-text-muted);
}

.legal-wrapper h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-title);
  margin-top: 36px;
  margin-bottom: 14px;
}

.legal-wrapper p,
.legal-wrapper ul {
  font-size: 15px;
  color: var(--color-text-body);
  line-height: 1.7;
  margin-bottom: 16px;
}

.legal-wrapper ul {
  padding-left: 24px;
}

.legal-wrapper a {
  color: var(--color-brand-primary);
  text-decoration: none;
  font-weight: 600;
}

.legal-wrapper a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Landing Page Specific Components
   ========================================================================== */

/* Ambient Hero Background Glow */
.bg-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  height: 700px;
  background: radial-gradient(ellipse at 50% 0%, rgba(16, 185, 129, 0.14) 0%, rgba(0, 105, 72, 0.05) 45%, rgba(250, 250, 249, 0) 75%);
  pointer-events: none;
  z-index: 0;
}

/* Hero Section */
section.hero {
  padding: 64px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-brand-light);
  color: var(--color-brand-primary);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 105, 72, 0.15);
}

.hero-title {
  font-size: clamp(34px, 4.8vw, 54px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.2px;
  color: var(--color-text-title);
  margin-bottom: 20px;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--color-brand-primary) 0%, var(--color-brand-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(16px, 1.8vw, 18.5px);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 580px;
}

/* App Store Download Button */
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: #0f172a;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}

.store-btn:hover {
  background-color: var(--color-brand-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 105, 72, 0.28);
}

.store-btn-icon {
  flex-shrink: 0;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.store-btn-sub {
  font-size: 10.5px;
  font-weight: 500;
  opacity: 0.85;
  letter-spacing: 0.2px;
}

.store-btn-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

/* Trust Badges */
.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-text-title);
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  padding: 6px 14px;
  border-radius: 20px;
  box-shadow: var(--shadow-subtle);
}

/* Phone Mockup Frames */
.hero-mockup-container {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-phone-frame {
  position: relative;
  max-width: 290px;
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.14), 0 2px 6px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.06);
  background-color: #ffffff;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-phone-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -15px rgba(15, 23, 42, 0.18), 0 4px 10px -2px rgba(0, 0, 0, 0.08);
}

.hero-phone-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* Showcase Feature Sections */
.showcase-section {
  padding: 72px 0;
  border-top: 1px solid var(--color-border);
}

.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 88px;
}

.showcase-row:last-child {
  margin-bottom: 0;
}

.showcase-row.reverse {
  grid-template-columns: 1fr 1fr;
}

.showcase-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.showcase-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-brand-primary);
  background-color: var(--color-brand-light);
  padding: 5px 14px;
  border-radius: 20px;
  width: fit-content;
}

.showcase-title {
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 800;
  color: var(--color-text-title);
  line-height: 1.25;
  letter-spacing: -0.6px;
}

.showcase-desc {
  font-size: 16px;
  color: var(--color-text-body);
  line-height: 1.65;
}

.showcase-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}

.showcase-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--color-text-title);
}

.check-icon {
  color: var(--color-brand-accent);
  font-size: 16px;
  font-weight: 800;
}

.showcase-visual {
  display: flex;
  justify-content: center;
}

.showcase-img-frame {
  max-width: 270px;
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 18px 36px -10px rgba(15, 23, 42, 0.12), 0 2px 6px -1px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: #ffffff;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.showcase-img-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.16), 0 4px 10px -2px rgba(0, 0, 0, 0.06);
}

.showcase-img-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* Bento Grid: Capabilities */
.bento-section {
  padding: 80px 0;
  background-color: #ffffff;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 52px;
}

.section-header h2 {
  font-size: clamp(28px, 3.8vw, 38px);
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--color-text-title);
  margin-bottom: 14px;
}

.section-header p {
  font-size: 16.5px;
  color: var(--color-text-muted);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 24px;
}

.bento-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-subtle);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bento-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 105, 72, 0.35);
  box-shadow: var(--shadow-card);
  background-color: #ffffff;
}

.bento-icon {
  width: 46px;
  height: 46px;
  background-color: var(--color-brand-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 4px;
}

.bento-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-title);
}

.bento-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* FAQ Section */
.faq-section {
  padding: 80px 0;
}

.faq-container {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  box-shadow: var(--shadow-subtle);
}

.faq-question {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--color-text-title);
  margin-bottom: 8px;
}

.faq-answer {
  font-size: 14.5px;
  color: var(--color-text-body);
  line-height: 1.6;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer.site-footer {
  background-color: #ffffff;
  border-top: 1px solid var(--color-border);
  padding: 56px 0 36px;
  margin-top: auto;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-brand-logo img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.footer-brand-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-brand-primary);
}

.footer-brand p {
  font-size: 13.5px;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.footer-links-group {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-text-title);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 13.5px;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--color-brand-primary);
}

.footer-bottom {
  border-top: 1px solid var(--color-border-subtle);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.footer-bottom a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--color-brand-primary);
  text-decoration: underline;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta-group,
  .hero-trust-row {
    justify-content: center;
  }
}

@media (max-width: 860px) {
  .showcase-row,
  .showcase-row.reverse {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .showcase-row.reverse .showcase-text {
    order: -1;
  }
  .showcase-tag {
    margin: 0 auto;
  }
  .showcase-bullets {
    align-items: center;
  }
}

@media (max-width: 640px) {
  .page-card,
  .legal-wrapper {
    padding: 32px 20px;
  }
  .footer-top {
    flex-direction: column;
    gap: 32px;
  }
  .footer-links-group {
    flex-direction: column;
    gap: 28px;
  }
}
