/* ============================================
   RobinMail — Apple-style promotional website
   ============================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --green: #34c759;
  --orange: #ff9500;
  --red: #ff3b30;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --bg: #fff;
  --bg-secondary: #f5f5f7;
  --bg-elevated: #fff;
  --border: rgba(0, 0, 0, 0.08);
  --nav-bg: rgba(255, 255, 255, 0.72);
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
  --max-width: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #f5f5f7;
    --text-secondary: #a1a1a6;
    --bg: #000;
    --bg-secondary: #1d1d1f;
    --bg-elevated: #1c1c1e;
    --border: rgba(255, 255, 255, 0.1);
    --nav-bg: rgba(29, 29, 31, 0.72);
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.32);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.48);
  }
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 18px;
}

.nav-brand img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

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

.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 400;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff !important;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 980px;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--accent-hover);
  text-decoration: none !important;
}

.nav-cta svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 12px 24px;
    font-size: 16px;
  }

  .nav-links .nav-cta {
    margin: 8px 24px 12px;
    justify-content: center;
    padding: 10px 20px;
    font-size: 15px;
  }
}

/* --- Hero --- */
.hero {
  background: #cde0f5;
  text-align: center;
  padding: 100px 24px 0;
  overflow: hidden;
}

@media (prefers-color-scheme: dark) {
  .hero {
    background: #0d1b2a;
  }
}

.hero-text {
  max-width: 680px;
  margin: 0 auto;
}

.hero-icon {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  margin: 0 auto 36px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero p {
  font-size: 21px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.5;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  margin-bottom: 8px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  padding: 14px 32px;
  border-radius: 980px;
  transition: background 0.2s, transform 0.15s;
}

.hero-cta:hover {
  background: var(--accent-hover);
  text-decoration: none;
  transform: scale(1.02);
}

.hero-cta svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.hero-tagline {
  display: block;
  margin-top: 20px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-screenshot {
  max-width: 1080px;
  margin: 60px auto 0;
}

.hero-screenshot img {
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .hero {
    padding: 72px 24px 0;
  }

  .hero-icon {
    width: 88px;
    height: 88px;
    border-radius: 20px;
    margin-bottom: 28px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 18px;
  }

  .hero-tagline {
    font-size: 20px;
  }

  .hero-screenshot {
    margin-top: 40px;
  }
}

/* --- Section shared styles --- */
.section {
  padding: 100px 0;
}

.section-alt {
  background: #cde0f5;
}

@media (prefers-color-scheme: dark) {
  .section-alt {
    background: #0d1b2a;
  }
}

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

.section-header h2 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 19px;
  color: var(--text-secondary);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-header h2 {
    font-size: 30px;
  }

  .section-header p {
    font-size: 17px;
  }
}

/* --- Features grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
}

.feature-icon-blue { background: #0071e3; color: #fff; }
.feature-icon-green { background: #34c759; color: #fff; }
.feature-icon-orange { background: #ff9500; color: #fff; }
.feature-icon-purple { background: #af52de; color: #fff; }
.feature-icon-red { background: #ff3b30; color: #fff; }
.feature-icon-teal { background: #5ac8fa; color: #fff; }

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

@media (max-width: 960px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-card {
    padding: 28px 24px;
  }
}

/* --- How It Works --- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}

.step {
  text-align: center;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

.step-image {
  width: 100%;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.step h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* --- Screenshots gallery --- */
.screenshots {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 24px 20px;
  scrollbar-width: none;
}

.screenshots::-webkit-scrollbar {
  display: none;
}

.screenshot-item {
  flex: 0 0 auto;
  width: min(85vw, 720px);
  scroll-snap-align: center;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.screenshot-item img {
  width: 100%;
  display: block;
}

.screenshot-hint {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-secondary);
}

@media (min-width: 769px) {
  .screenshot-hint {
    display: none;
  }

  .screenshots {
    justify-content: center;
    flex-wrap: wrap;
    overflow-x: visible;
    padding: 0;
  }

  .screenshot-item {
    width: min(48%, 520px);
  }
}

.screenshot-item {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.screenshot-item:hover {
  transform: scale(1.02);
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: zoom-out;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.lightbox.open .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
  padding: 8px;
}

.lightbox-close:hover {
  opacity: 1;
}

/* --- Pricing --- */
.pricing-columns {
  display: flex;
  max-width: 1040px;
  margin: 0 auto;
  gap: 16px;
}

.pricing-col {
  flex: 1.2;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.pricing-col-features {
  flex: 1.8;
}

.pricing-col-plan {
  text-align: center;
}

.pricing-col-pro {
  position: relative;
  border: 2px solid var(--accent);
}

.pricing-col-header {
  padding: 20px 24px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.pricing-col .pricing-col-header {
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
}

.pricing-best-value {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 980px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.pricing-col-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pricing-col-list li {
  padding: 13px 24px;
  font-size: 15px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  min-height: 48px;
}

.pricing-col-features .pricing-col-list li {
  color: var(--text);
}

.pricing-col-plan .pricing-col-list li {
  justify-content: center;
}

.pricing-col-list li:last-child {
  border-bottom: none;
}

.pricing-check {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #34c759;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.pricing-dash {
  color: var(--text-secondary);
  font-size: 20px;
}

.pricing-cta {
  display: flex;
  max-width: 1040px;
  margin: 24px auto 0;
  gap: 16px;
}

.pricing-cta-spacer-features {
  flex: 1.8;
}

.pricing-cta-spacer-free {
  flex: 1.2;
}

.pricing-cta-pro {
  flex: 1.2;
  text-align: center;
}

.pricing-btn-pro {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 28px;
  border-radius: 980px;
  transition: background 0.2s, transform 0.15s;
}

.pricing-btn-pro:hover {
  background: var(--accent-hover);
  text-decoration: none;
  transform: scale(1.02);
}

@media (max-width: 700px) {
  .pricing-columns {
    flex-direction: column;
    max-width: 400px;
  }
}

/* --- Privacy callout --- */
.privacy-callout {
  text-align: center;
  padding: 80px 24px;
  background: var(--bg-secondary);
}

.privacy-callout-inner {
  max-width: 560px;
  margin: 0 auto;
}

.privacy-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #34c759;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 28px;
}

.privacy-callout h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.privacy-callout p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.privacy-callout a {
  display: inline-block;
  margin-top: 20px;
  font-size: 16px;
  font-weight: 500;
}

/* --- Footer --- */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.footer-brand span {
  font-size: 14px;
  font-weight: 500;
}

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

.footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  font-size: 12px;
  color: var(--text-secondary);
}

@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* --- Support & Privacy pages --- */
.page-header {
  text-align: center;
  padding: 80px 24px 48px;
  background: var(--bg-secondary);
}

.page-header h1 {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-header p {
  font-size: 19px;
  color: var(--text-secondary);
  margin-top: 12px;
}

.page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.page-content h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 40px 0 12px;
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content p,
.page-content ul,
.page-content ol {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.page-content ul,
.page-content ol {
  padding-left: 24px;
}

.page-content li {
  margin-bottom: 8px;
}

/* --- FAQ --- */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-question {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 0;
  font-family: inherit;
}

.faq-question::after {
  content: "+";
  font-size: 22px;
  font-weight: 300;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: transform 0.3s;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

.faq-answer p {
  padding-top: 12px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Contact card --- */
.contact-card {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  margin-bottom: 48px;
}

.contact-card h2 {
  margin-top: 0 !important;
  margin-bottom: 8px;
}

.contact-card p {
  margin-bottom: 20px;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 980px;
  transition: background 0.2s;
}

.contact-email:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

@media (max-width: 768px) {
  .page-header {
    padding: 60px 24px 36px;
  }

  .page-header h1 {
    font-size: 32px;
  }
}
