/* Shared styles for the Dotum landing pages. Page layout is inline in each page (from the canvas). */
html { scroll-behavior: smooth; }
body { margin: 0; background: #F5F4F0; }
img { max-width: 100%; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #B34E32; outline-offset: 3px; }

.lp-consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50;
  max-width: 720px; margin: 0 auto; box-sizing: border-box;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
  padding: 16px 20px; background: #FFFFFF; color: #15171C;
  border: 1px solid #DAD8D1; border-radius: 16px; box-shadow: 0 12px 32px rgba(21, 23, 28, 0.12);
  font-family: Inter, system-ui, sans-serif; font-size: 15px; line-height: 1.5;
}
.lp-consent p { margin: 0; flex: 1 1 280px; }
.lp-consent a { color: #B34E32; }
.lp-consent-actions { display: flex; gap: 10px; }
.lp-btn {
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: none; cursor: pointer;
  font: inherit; font-weight: 600; background: #FF7047; color: #15171C;
}
.lp-btn-quiet { background: #ECEBE6; }

/* Phone fixes. Layout is inline (from the canvas), so these override it and survive a rebuild. */
section { height: auto !important; } /* a fixed canvas height made stacked columns spill into the next section */
#feature-modal [role="dialog"] { max-height: calc(100dvh - 32px); overflow-y: auto; }

@media (max-width: 640px) {
  /* Header: logo and Book a call on one row, the three page links in a row below. */
  header > div { position: relative; padding-top: 14px !important; padding-bottom: 6px !important; row-gap: 4px !important; }
  header nav { width: 100%; justify-content: space-between; column-gap: 12px !important; font-size: 14px !important; }
  header nav a:not([data-position]) { padding: 10px 0; }
  header nav a[data-position="header"] { position: absolute; top: 6px; right: clamp(16px, 4vw, 48px); padding: 9px 16px !important; }

  /* Hero: tighter spacing and a smaller intro so the first screen shows the call to action. */
  header + section { padding-top: 40px !important; padding-bottom: 48px !important; gap: 40px !important; }
  header + section > div:first-child { gap: 22px !important; }
  header + section > div:first-child > p { font-size: 18px !important; }

  #feature-modal { padding: 16px !important; }
  #feature-modal [role="dialog"] > div:first-child { padding: 22px 20px 0 !important; }
  #feature-modal-body { padding: 12px 20px 0 !important; }
  #feature-modal [role="dialog"] > div:last-child { margin: 18px 20px 20px !important; }

  .lp-consent { left: 12px; right: 12px; bottom: 12px; padding: 14px 16px; font-size: 14px; }
  .lp-consent p { flex-basis: 100%; }
}
