/* DOTO Marketing Website - Main Stylesheet */

:root {
  /* Brand colours */
  --navy:       #1E2761;
  --navy-sub:   #CADCFC;
  --blue:       #185FA5;
  --blue-light: #EFF6FF;
  --teal:       #1D9E75;
  --teal-light: #ECFDF5;
  --amber:      #BA7517;
  --amber-light: #FFFBEB;
  --pink:       #993556;
  --purple:     #534AB7;
  --red:        #E24B4A;

  /* Text */
  --text-primary:   #1E293B;
  --text-secondary: #475569;
  --text-muted:     #94A3B8;

  /* Backgrounds */
  --bg-page:    #F8FAFC;
  --bg-card:    #FFFFFF;
  --bg-border:  #E2E8F0;

  /* Typography */
  --font:       -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --section-padding-desktop: 80px;
  --section-padding-mobile:  48px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Section base */
.section {
  padding: var(--section-padding-desktop) 0;
}

.section-white {
  background: white;
}

.section-navy {
  background: var(--navy);
  color: white;
}

.section-offwhite {
  background: var(--bg-page);
}

/* Eyebrow text */
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* Headlines */
.headline-xl {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.headline-lg {
  font-size: 38px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

.headline-md {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

/* Body text */
.body-lg {
  font-size: 18px;
  line-height: 1.7;
}

.body-md {
  font-size: 17px;
  line-height: 1.6;
}

.body-sm {
  font-size: 15px;
  line-height: 1.5;
}

.text-muted {
  color: var(--text-muted);
}

.text-secondary {
  color: var(--text-secondary);
}

.text-teal {
  color: var(--teal);
}

.text-navy {
  color: var(--navy);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-teal {
  background: var(--teal);
  color: white;
}

.btn-teal:hover {
  background: #0F6E56;
}

.btn-outline {
  border: 1px solid var(--bg-border);
  color: var(--text-primary);
  background: white;
}

.btn-outline:hover {
  background: var(--bg-page);
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: 12px;
  padding: 28px 24px;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge-amber {
  background: var(--amber-light);
  color: #92400E;
}

.badge-teal {
  background: var(--teal-light);
  color: #065F46;
}

.badge-blue {
  background: var(--blue-light);
  color: var(--blue);
}

/* Check icons */
.check-icon {
  color: var(--teal);
  margin-right: 8px;
}

/* Phone mockup base */
.phone-mockup {
  width: 200px;
  background: #0F172A;
  border-radius: 32px;
  padding: 8px;
  border: 3px solid #1E293B;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.phone-inner {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  min-height: 400px;
}

.phone-notch {
  background: #0F172A;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notch-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #334155;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 1024px) {
  :root {
    --section-padding-desktop: 56px;
  }

  .headline-xl {
    font-size: 42px;
  }

  .headline-lg {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding-desktop: var(--section-padding-mobile);
  }

  .headline-xl {
    font-size: 36px !important;
    letter-spacing: -1px !important;
  }

  .headline-lg {
    font-size: 28px !important;
  }

  .headline-md {
    font-size: 22px !important;
  }

  .container {
    padding: 0 16px;
  }

  .phone-mockup {
    width: 180px;
  }

  .phone-inner {
    min-height: 360px;
  }
}

/* Navigation */
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 56px;
  transition: background 0.2s, box-shadow 0.2s;
  background: transparent;
}

#main-nav.scrolled {
  background: white;
  box-shadow: 0 1px 20px rgba(0,0,0,0.08);
}

#main-nav .nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#main-nav .nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

#main-nav .logo-wordmark {
  font-size: 20px;
  font-weight: 700;
  color: white;
  transition: color 0.2s;
}

#main-nav.scrolled .logo-wordmark {
  color: var(--navy);
}

#main-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

#main-nav .nav-link {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  transition: color 0.2s;
}

#main-nav.scrolled .nav-link {
  color: var(--text-secondary);
}

#main-nav .nav-link:hover {
  color: white;
}

#main-nav.scrolled .nav-link:hover {
  color: var(--navy);
}

#main-nav .nav-cta {
  background: var(--teal);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
}

#main-nav .nav-cta:hover {
  background: #0F6E56;
}

#main-nav .nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

#main-nav .nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 1px;
  transition: background 0.2s;
}

#main-nav.scrolled .nav-hamburger span {
  background: var(--navy);
}

/* Mobile nav drawer */
#nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  background: white;
  z-index: 101;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  padding: 80px 24px 24px;
}

#nav-drawer.open {
  transform: translateX(0);
}

#nav-drawer .drawer-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 24px;
  color: var(--text-secondary);
  cursor: pointer;
}

#nav-drawer .drawer-link {
  display: block;
  padding: 16px 0;
  font-size: 16px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--bg-border);
}

#nav-drawer .drawer-cta {
  display: block;
  margin-top: 24px;
  padding: 14px 24px;
  background: var(--teal);
  color: white;
  text-align: center;
  border-radius: 8px;
  font-weight: 600;
}

#nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

#nav-backdrop.visible {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px) {
  #main-nav .nav-links {
    display: none;
  }

  #main-nav .nav-hamburger {
    display: flex;
  }
}

/* Footer */
#main-footer {
  background: var(--navy);
  color: white;
  padding: 64px 0 32px;
}

#main-footer .footer-grid {
  display: grid;
  grid-template-columns: 240px 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

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

#main-footer .footer-brand .logo-wordmark {
  font-size: 20px;
  font-weight: 700;
}

#main-footer .footer-tagline {
  font-size: 14px;
  color: var(--navy-sub);
  margin-bottom: 20px;
  line-height: 1.5;
}

#main-footer .footer-heading {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  color: var(--navy-sub);
}

#main-footer .footer-link {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 12px;
  transition: color 0.2s;
}

#main-footer .footer-link:hover {
  color: white;
}

#main-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

@media (max-width: 768px) {
  #main-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  #main-footer .footer-brand {
    grid-column: 1 / -1;
  }

  #main-footer .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* App Store badge */
.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  padding: 10px 16px;
  border-radius: 10px;
  color: var(--text-primary);
}

.app-store-badge .apple-icon {
  font-size: 20px;
}

.app-store-badge .badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.app-store-badge .badge-text small {
  font-size: 9px;
  color: var(--text-muted);
}

.app-store-badge .badge-text strong {
  font-size: 14px;
  font-weight: 600;
}


/* ── Coming Soon strip ─────────────────────────────────────── */
.coming-soon-strip {
  background: var(--navy);
  padding: 18px 64px;
}
.coming-soon-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.coming-soon-pill {
  font-size: 10px;
  font-weight: 700;
  color: var(--navy);
  background: var(--teal);
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.coming-soon-text {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
}
@media (max-width: 768px) {
  .coming-soon-strip {
    padding: 16px 24px;
  }
  .coming-soon-inner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

/* ── iPhone 16 Pro Frame ─────────────────────────────────────
   Aspect ratio 1:2.165, Dynamic Island 68x22, outer r 44px, inner r 38px
── */
.iphone-pro { position: relative; display: inline-block; }

.iphone-frame {
  background: linear-gradient(145deg, #2c2c2c, #1a1a1a);
  border-radius: 44px;
  border: 1.5px solid #3a3a3a;
  box-shadow:
    0 0 0 1px #111,
    0 30px 80px rgba(0,0,0,0.5),
    inset 0 0 0 1px rgba(255,255,255,0.08);
  position: relative;
  overflow: visible;
}
.iphone-frame::before {
  content: '';
  position: absolute; inset: -1.5px;
  border-radius: 44px;
  background: linear-gradient(
    160deg,
    rgba(255,255,255,0.15) 0%,
    rgba(255,255,255,0.03) 40%,
    rgba(255,255,255,0.10) 100%
  );
  pointer-events: none;
  z-index: 10;
}

.iphone-screen {
  position: absolute;
  top: 6px; left: 6px; right: 6px; bottom: 6px;
  background: #000;
  border-radius: 38px;
  overflow: hidden;
}

.iphone-content {
  position: absolute; inset: 0;
  overflow: hidden;
  border-radius: 38px;
  background: #F8FAFC;
}

.dynamic-island {
  position: absolute;
  top: 10px; left: 50%; transform: translateX(-50%);
  width: 68px; height: 22px;
  background: #000; border-radius: 20px;
  z-index: 10;
  box-shadow: inset 0 0 0 0.5px rgba(255,255,255,0.08);
}

.iphone-frame .btn-action { position:absolute; left:-3px; top:80px;  width:3px; height:28px; background:#333; border-radius:2px 0 0 2px; }
.iphone-frame .btn-vol-up { position:absolute; left:-3px; top:120px; width:3px; height:36px; background:#333; border-radius:2px 0 0 2px; }
.iphone-frame .btn-vol-dn { position:absolute; left:-3px; top:166px; width:3px; height:36px; background:#333; border-radius:2px 0 0 2px; }
.iphone-frame .btn-power  { position:absolute; right:-3px;top:130px; width:3px; height:54px; background:#333; border-radius:0 2px 2px 0; }

.phone-hero-front { width: 200px; height: 433px; }
.phone-hero-back  { width: 190px; height: 411px; }
.phone-feature    { width: 180px; height: 390px; }

/* ── App UI mini components (inside iPhone screens) ─────────── */
.app-nav {
  background: var(--navy);
  padding: 6px 10px 5px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.mini-tabs {
  display: flex;
  justify-content: space-around;
  background: #fff;
  border-top: 1px solid var(--bg-border);
  padding: 4px 0 3px;
}
.mini-tab { font-size: 6.5px; text-align: center; color: var(--text-muted); line-height: 1.1; }
.mini-tab.active { color: var(--blue); font-weight: 600; }
.mini-tab-icon {
  width: 11px; height: 11px;
  display: block;
  margin: 0 auto 1px;
  color: inherit;
}
/* legacy dot still used in pricing/coming-soon? keep as fallback */
.mini-tab-dot {
  width: 14px; height: 2px; border-radius: 2px;
  background: var(--bg-border);
  margin: 0 auto 2px;
}
.mini-tab-dot.active { background: var(--blue); }

/* ── Segmented control (Day/Week/Month) in phone mockups ── */
.seg-ctl {
  display: flex;
  background: rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 2px;
  gap: 2px;
}
.seg-ctl > div {
  flex: 1;
  text-align: center;
  font-size: 6.5px;
  padding: 3px 0;
  color: rgba(255,255,255,0.7);
  border-radius: 10px;
}
.seg-ctl > div.active {
  background: #fff;
  color: var(--navy);
  font-weight: 700;
}

.av {
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 6px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}

.event-pill { border-radius: 4px; padding: 3px 6px; margin-bottom: 3px; }
.ep-title   { font-size: 7px; font-weight: 600; }
.ep-sub     { font-size: 6px; opacity: 0.8; margin-top: 1px; }

.task-row {
  display: flex; align-items: center; gap: 5px;
  padding: 3px 0;
  border-bottom: 1px solid #F8FAFC;
}
.check {
  width: 10px; height: 10px; border-radius: 2px;
  border: 1.5px solid #CBD5E1;
  flex-shrink: 0;
}
.check.done {
  background: var(--teal); border-color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-size: 6px; color: #fff;
}
